www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 4795] New: new demangler + dmd test suite --> a problem

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4795

           Summary: new demangler + dmd test suite --> a problem
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: druntime
        AssignedTo: sean invisibleduck.org
        ReportedBy: braddr puremagic.com



---
One of the tests in the dmd test suite is having an issue with the new demangle
code in druntime.  To reproduce, from the dmd test directory:

make test_results/runnable/eh.d.out

The stack trace via gdb:



src/core/cpuid.d:569

src/core/demangle.d:1188

src/core/demangle.d:1208

src/core/demangle.d:1226

(this=0x2e0fc0, dg=578088651209044196) at src/core/cpuid.d:428

src/object_.d:1170



src/rt/arrayint.d:198

dg=578102996399813208) at src/rt/arrayfloat.d:240


dg=578103185378374232) at src/rt/arrayfloat.d:240

src/rt/arrayint.d:111
(gdb) up

The string in question, if gdb isn't lying to me: "_Dmain+0x27) [0x805ae63]"

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Sep 03 2010
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4795


Brad Roberts <braddr puremagic.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |regression


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Sep 03 2010
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4795


Brad Roberts <braddr puremagic.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|new demangler + dmd test    |druntime demangler
                   |suite --> a problem         |unittests fail



---
Rather than debugging via the dmd test suite.. the demangler fails the druntime
unittests too.

I just checked out a clean druntime trunk (I forgot mine has changes to call
the demangler during stack trace dumping right now, so the original report
might not be reproducable there.

druntime$ make -f posix.mak unittest
druntime$ ./unittest 
./unittest(_D4core7runtime18runModuleUnitTestsUZb19unittestSegvHandlerUiPS4core3sys5posix6signal9siginfo_tPvZv+0x2c)[0x807cc08]
[0xad7410]
./unittest(_d_throw+0x1b)[0x809803f]
./unittest(_D4core8demangle8demangleFAyaAaZAa5errorFAyaZv+0xe)[0x807a4da]
./unittest(_D4core8demangle8demangleFAyaAaZAa4testMFaZv+0x21)[0x807a925]
./unittest(_D4core8demangle8demangleFAyaAaZAa5matchMFaZv+0x11)[0x807a96d]
./unittest(_D4core8demangle8demangleFAyaAaZAa16parseMangledNameMFZv+0x19)[0x807c419]
./unittest(_D4core8demangle8demangleFAyaAaZAa+0x18)[0x807a404]
./unittest(_D4core8demangle11__unittest9FZv+0x50)[0x807c49c]
./unittest(_D4core8demangle9__modtestFZv+0x8)[0x807c4b8]
./unittest(_D4core7runtime18runModuleUnitTestsUZb16__foreachbody149MFKPS6object10ModuleInfoZi+0x24)[0x807cc68]
./unittest(_D6object10ModuleInfo7opApplyFMDFKPS6object10ModuleInfoZiZi+0x41)[0x807789d]
./unittest(runModuleUnitTests+0x87)[0x807cb83]
./unittest(_D2rt6dmain24mainUiPPaZi6runAllMFZv+0x20)[0x80986b4]
./unittest(_D2rt6dmain24mainUiPPaZi7tryExecMFMDFZvZv+0x24)[0x80985dc]
./unittest(main+0x96)[0x8098582]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe6)[0x126bd6]
./unittest[0x8074e01]
Segmentation fault

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Sep 04 2010
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4795


Brad Roberts <braddr puremagic.com> changed:

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



---
Fixed by Sean in druntime commits r384 and r385

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