Bug 225990 - [NEW PORT] devel/snowman: native code to C/C++ decompiler
Summary: [NEW PORT] devel/snowman: native code to C/C++ decompiler
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords: needs-qa
Depends on:
Blocks:
 
Reported: 2018-02-17 17:34 UTC by Tassilo Philipp
Modified: 2018-10-21 13:53 UTC (History)
1 user (show)

See Also:


Attachments
shar (1.91 KB, text/plain)
2018-02-17 17:34 UTC, Tassilo Philipp
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tassilo Philipp 2018-02-17 17:34:38 UTC
Created attachment 190736 [details]
shar
Comment 1 Tobias Kortkamp freebsd_committer freebsd_triage 2018-05-09 13:30:16 UTC
Hi,

this builds fine but immediately segfaults when trying to run it on
12.0-CURRENT:

* thread #1, name = 'snowman', stop reason = signal SIGSEGV
  * frame #0: 0x00000000003c116c snowman`nc::core::ir::MemoryLocation::size(this=0x0000000000000018) const at MemoryLocation.h:81
    frame #1: 0x000000000048499b snowman`nc::core::irgen::expressions::MemoryLocationExpression::MemoryLocationExpression(this=0x000000000088c600, memoryLocation=0x0000000000000018) at Expressions.h:336
    frame #2: 0x000000000048420f snowman`nc::core::irgen::expressions::regizter(reg=0x0000000000000000) at Expressions.h:491
    frame #3: 0x000000000064d9a8 snowman`::__cxx_global_var_init.3() at X86InstructionAnalyzer.cpp:59
    frame #4: 0x000000000070de18 snowman`_GLOBAL__sub_I_X86InstructionAnalyzer.cpp at X86InstructionAnalyzer.cpp:0
    frame #5: 0x0000000000818782 snowman`__do_global_ctors_aux + 34
    frame #6: 0x00000000008187a6 snowman`_init + 14
    frame #7: 0x000000080082607a ld-elf.so.1`objlist_call_init(list=<unavailable>, lockstate=<unavailable>) at rtld.c:2678
    frame #8: 0x0000000800824fcc ld-elf.so.1`_rtld(sp=<unavailable>, exit_proc=0x00007fffffffe720, objp=0x00007fffffffe728) at rtld.c:767
    frame #9: 0x0000000800823019 ld-elf.so.1`.rtld_start at rtld_start.S:39

Any ideas?
Comment 2 Tobias Kortkamp freebsd_committer freebsd_triage 2018-05-09 13:53:21 UTC
(In reply to Tobias Kortkamp from comment #1)
Correction: It does *not* build fine in Poudriere because of missing
dependencies:

CMake Error at /usr/local/share/cmake/Modules/FindBoost.cmake:2045 (message):
  Unable to find the requested Boost libraries.

  Unable to find the Boost header files.  Please set BOOST_ROOT to the root
  directory containing Boost or BOOST_INCLUDEDIR to the directory containing
  Boost's headers.
Call Stack (most recent call first):
  CMakeLists.txt:115 (find_package)


CMake Error at /usr/local/lib/cmake/Qt5Core/Qt5CoreConfig.cmake:15 (message):
  The imported target "Qt5::Core" references the file

     "/usr/local/lib/qt5/bin/qmake"

  but this file does not exist.  Possible reasons include:

  * The file was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and contained

     "/usr/local/lib/cmake/Qt5Core/Qt5CoreConfigExtras.cmake"

  but not all the files it references.

Call Stack (most recent call first):
  /usr/local/lib/cmake/Qt5Core/Qt5CoreConfigExtras.cmake:6 (_qt5_Core_check_file_exists)
  /usr/local/lib/cmake/Qt5Core/Qt5CoreConfig.cmake:172 (include)
  CMakeLists.txt:120 (find_package)
Comment 3 Tassilo Philipp 2018-05-09 14:02:25 UTC
Interesting... thanks for checking. Guess I need to setup some FreeBSD 12 somewhere for the crash, and then setup poudriere also to be able to test this more verbosely.

Thanks for the work, and sorry for the troubles. Give me a few days to correct this (might also depend on reporting the crash bug upstream if necessary).
Comment 4 Tobias Kortkamp freebsd_committer freebsd_triage 2018-06-05 08:39:17 UTC
(In reply to Tassilo Philipp from comment #3)
Any ideas yet what could be the problem?
Comment 5 Kirill Ponomarev freebsd_committer freebsd_triage 2018-06-06 00:01:08 UTC
I think you're missing boost-libs and qmake deps.
Comment 6 Tobias Kortkamp freebsd_committer freebsd_triage 2018-06-06 20:56:18 UTC
(In reply to Kirill Ponomarev from comment #5)
Yes, but I doubt that this will fix the runtime crash.
Comment 7 Tassilo Philipp 2018-06-06 21:20:22 UTC
(In reply to Tobias Kortkamp from comment #6)

Yeah, the runtime crash wouldn't be fixed.

Sorry, I haven't found time to look at it, yet, and given my current day-job workload and many other unexpected things going on, I doubt that I'll actually find time to look at this soon.

I'm currently leaning towards closing this PR, actually, worrying about not being able to maintain this at the moment.

Thoughts?
Comment 8 Kirill Ponomarev freebsd_committer freebsd_triage 2018-06-06 23:59:35 UTC
(In reply to Tobias Kortkamp from comment #6)
Well, before talking about runtime crash, we need to build it first
Comment 9 Tobias Kortkamp freebsd_committer freebsd_triage 2018-06-07 06:06:01 UTC
(In reply to Tassilo Philipp from comment #7)
Let's leave it open for now.  Maybe someone with free time on their
hands will volunteer to fix any remaining issues and take over
maintainership.
Comment 10 Tobias Kortkamp freebsd_committer freebsd_triage 2018-10-21 13:53:07 UTC
(In reply to Tobias Kortkamp from comment #9)
Let's close for now 4 months later.