[Issue 11630] New: shared library segv

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Nov 28 01:55:42 PST 2013


https://d.puremagic.com/issues/show_bug.cgi?id=11630

           Summary: shared library segv
           Product: D
           Version: D2
          Platform: x86_64
        OS/Version: Linux
            Status: NEW
          Severity: critical
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: braddr at puremagic.com


--- Comment #0 from Brad Roberts <braddr at puremagic.com> 2013-11-28 01:55:23 PST ---
Daniel Murphy's ubuntu 12.10 box
libc-2.15
using ld.bfd (not ld.gold)
g++ 4.7.2

druntime/test/shared/obj/linux/64/host test fails very reliably, but not 100%.
>From the core file:

#0  0x00007ffff7908c1d in get_nprocs () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007ffff789513e in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#2  0x00007ffff78990cb in malloc () from /lib/x86_64-linux-gnu/libc.so.6
#3  0x00007ffff7ddb371 in ?? () from /lib64/ld-linux-x86-64.so.2
#4  0x00007ffff7dec5e0 in __tls_get_addr () from /lib64/ld-linux-x86-64.so.2
#5  0x00007ff80cb13324 in core.thread.thread_suspendHandler() () from
/home/user/d-tester/client/master-test-Linux_64_64/druntime/lib/libdruntime-linux64.so
#6  0x00007ff80cb14938 in core.thread.callWithStackShell() () from
/home/user/d-tester/client/master-test-Linux_64_64/druntime/lib/libdruntime-linux64.so
#7  0x00007ff80cb13302 in thread_suspendHandler () from
/home/user/d-tester/client/master-test-Linux_64_64/druntime/lib/libdruntime-linux64.so
#8  <signal handler called>
#9  0x00007ff80d0583c1 in clone () from /lib/x86_64-linux-gnu/libc.so.6
#10 0x00007ff80c697dc0 in ?? () from /lib/x86_64-linux-gnu/libpthread.so.0
#11 0x00007ff80c190700 in ?? ()
#12 0x0000000000000000 in ?? ()

disassembly of frame 5 from objdump (looks the same from inside gdb):

000000000005e308 <_D4core6thread21thread_suspendHandlerUiZv2opMFPvZv>:
   5e308:       55                      push   %rbp
   5e309:       48 8b ec                mov    %rsp,%rbp
   5e30c:       48 81 ec 98 00 00 00    sub    $0x98,%rsp
   5e313:       53                      push   %rbx
   5e314:       66 48 8d 3d ac e8 23    data32 lea 0x23e8ac(%rip),%rdi        #
29cbc8 <_DYNAMIC+0x7b0>
   5e31b:       00 
   5e31c:       66 66 48 e8 1c 4d ff    data32 data32 callq 53040
<__tls_get_addr at plt>
   5e323:       ff
   5e324:       48 8b 18                mov    (%rax),%rbx
   5e327:       48 85 db                test   %rbx,%rbx
   ...

The main linux tester boxes all pass this test quite reliably.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list