[Bug 206384] llvm libunwind segfaults while building lang/polyml

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Jan 18 22:04:40 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=206384

            Bug ID: 206384
           Summary: llvm libunwind segfaults while building lang/polyml
           Product: Base System
           Version: 11.0-CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: misc
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: emaste at freebsd.org

As reported in PR206039 the lang/polyml build fails when using LLVM's
libunwind, due to a segfault during the build. The segfault can be reproduced
by running (in the workdir):

echo | LD_LIBRARY_PATH=libpolyml/.libs .libs/polyimport -H 50 polytemp.txt -I .

The crash looks like:
volta% lldb .libs/polyimport -c polyimport.core 
(lldb) target create ".libs/polyimport" --core "polyimport.core"
Core file
'/home/emaste/src/ports/lang/polyml/work/polyml.5.5.2/polyimport.core' (x86_64)
was loaded.
(lldb) bt
* thread #1: tid = 0, 0x0000000800efa731
libgcc_s.so.1`libunwind::UnwindCursor<libunwind::LocalAddressSpace,
libunwind::Registers_x86_64>::setInfoBasedOnIPRegister(this=0x00007fffdfffd648,
isReturnAddress=false) + 33 at UnwindCursor.hpp:1171, name = 'polyimport', stop
reason = signal SIGSEGV
  * frame #0: 0x0000000800efa731
libgcc_s.so.1`libunwind::UnwindCursor<libunwind::LocalAddressSpace,
libunwind::Registers_x86_64>::setInfoBasedOnIPRegister(this=0x00007fffdfffd648,
isReturnAddress=false) + 33 at UnwindCursor.hpp:1171
    frame #1: 0x0000000800ef960e
libgcc_s.so.1`::unw_init_local(cursor=0x00007fffdfffd648,
context=0x00007fffdfffdae0) + 190 at libunwind.cpp:73
    frame #2: 0x0000000800ef8ed6
libgcc_s.so.1`unwind_phase2_forced(uc=<unavailable>,
exception_object=<unavailable>, stop=<unavailable>,
stop_parameter=<unavailable>) + 54 at UnwindLevel1.c:244
    frame #3: 0x0000000800ef923c
libgcc_s.so.1`_Unwind_ForcedUnwind(exception_object=0x0000000801e155f0,
stop=0x0000000800ab4dd0, stop_parameter=0x0000000000000000) + 108 at
UnwindLevel1.c:414
    frame #4: 0x0000000800ab4c55 libthr.so.3`_pthread_exit_mask [inlined]
_Unwind_ForcedUnwind(ex=<unavailable>, stop_func=<unavailable>,
stop_arg=<unavailable>) + 501 at thr_exit.c:106
    frame #5: 0x0000000800ab4c46 libthr.so.3`_pthread_exit_mask [inlined]
thread_unwind + 41 at thr_exit.c:167
    frame #6: 0x0000000800ab4c1d
libthr.so.3`_pthread_exit_mask(status=<unavailable>, mask=<unavailable>) + 445
at thr_exit.c:242
    frame #7: 0x0000000800ab4a5b
libthr.so.3`_pthread_exit(status=<unavailable>) + 11 at thr_exit.c:188
    frame #8: 0x0000000800aa982c
libthr.so.3`thread_start(curthread=<unavailable>) + 300 at thr_create.c:288

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list