|
Archives
D Programming
DD.gnu digitalmars.D digitalmars.D.bugs digitalmars.D.dtl digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript electronics |
D.gnu - [Issue 1554] New: Segfault in generated code.
http://d.puremagic.com/issues/show_bug.cgi?id=1554 Summary: Segfault in generated code. Product: DGCC aka GDC Version: 0.24 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: glue layer AssignedTo: dvdfrdmn users.sf.net ReportedBy: dlang davidb.org The attached example code exhibits a segfault on x86 when compiled with "-O3 --fomit-frame-pointer". This is the binary gdc downloaded from the web. % gdc --version gdc (GCC) 4.1.2 20070214 ( (gdc 0.24, using dmd 1.020)) ... % gdc -o bug -O3 bug.d % ./bug 10,240kB % gdc -o bug -O3 -fomit-frame-pointer bug.d % ./bug Segmentation fault % gdc -g -o bug -O3 -fomit-frame-pointer bug.d % gdb ./bug (gdb) run Starting program: /home/davidb/wd/adump/2.1/bug/bug warning: Lowest section in system-supplied DSO at 0xffffe000 is .hash at ffffe0b4 [Thread debugging using libthread_db enabled] [New Thread -136127808 (LWP 14962)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -136127808 (LWP 14962)] _D3bug10formatSizeFlZAa (size=578398486928556032) at bug.d:9 9 foreach (ind, ch; text.reverse) { Current language: auto; currently minimal The example works fine on x86_64. -- Oct 07 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1554 ------- Comment #1 from dlang davidb.org 2007-10-07 21:51 ------- Created an attachment (id=189) --> (http://d.puremagic.com/issues/attachment.cgi?id=189&action=view) Demonstration of compilation bug. -- Oct 07 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1554 dvdfrdmn users.sf.net changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Comment #2 from dvdfrdmn users.sf.net 2007-10-13 13:33 ------- Fixed in svn 181 / release 0.25. -- Oct 13 2007
|