www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11630] New: shared library segv

reply d-bugmail puremagic.com writes:
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 puremagic.com
        ReportedBy: braddr puremagic.com



---
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:







/home/user/d-tester/client/master-test-Linux_64_64/druntime/lib/libdruntime-linux64.so

/home/user/d-tester/client/master-test-Linux_64_64/druntime/lib/libdruntime-linux64.so

/home/user/d-tester/client/master-test-Linux_64_64/druntime/lib/libdruntime-linux64.so






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

29cbc8 <_DYNAMIC+0x7b0>
   5e31b:       00 
   5e31c:       66 66 48 e8 1c 4d ff    data32 data32 callq 53040
<__tls_get_addr 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: -------
Nov 28 2013
next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11630




I remember that I had a dead lock with this test once, but I couldn't reproduce
it.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 30 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11630




---
It's deadlocked a few times in the tester.  When that happens, I eventually
notice and kill it.  I'll try to remember to gather a stack trace next time.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 30 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11630




Maybe related to bug 11684?

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 20 2014
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11630


safety0ff.bugz <safety0ff.bugz gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |safety0ff.bugz gmail.com



19:57:22 PST ---

the fix for 11981 applied ? (The fix has already been merged.)

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 10 2014
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11630


Brad Roberts <braddr puremagic.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|code dawg.eu                |yebblies gmail.com



---
Daniel, when you get a chance, can you confirm that this is fixed on that older
ubuntu vm you have?  I just tried to login to it and it's not up right now,
apparently.  If you can't reproduce it by running the druntime unit tests
several times, go ahead mark this bug resolved.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 13 2014
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11630


yebblies <yebblies gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE



It does appear to be fixed after updating to head, I agree it's most likely a
duplicate.

*** This issue has been marked as a duplicate of issue 11684 ***

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 15 2014
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11630




*** This issue has been marked as a duplicate of issue 11981 ***

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 17 2014
prev sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11630


Stanislav Blinov <stanislav.blinov gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |stanislav.blinov gmail.com



14:30:00 PST ---

 It does appear to be fixed after updating to head, I agree it's most likely a
 duplicate.
 
 *** This issue has been marked as a duplicate of issue 11684 ***
Martin notified me that there's a bounty on this issue, so I went to explicitly double check that it was indeed an incidental fix in case I go claiming someone else's merit. On a VM with an environment from the OP (Ubuntu 12.10, libc-2.15) 'host' test indeed segfaults on every single run up to and including commit https://github.com/D-Programming-Language/druntime/commit/932c05ce386d9ee585c67745e268867c10a6e337 (last commit before the 11981 fix). On https://github.com/D-Programming-Language/druntime/commit/4ce7f1d36008ec9c00f4ec8d3a1b38fc2ef3452f (merge for 11981 fix) segfaults are gone. I guess in later libc versions the persistent segfault transformed into an occasional deadlock, but the reason remained the same. -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Feb 18 2014