[Bug 136] New: Corrupt GDB backtrace
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu May 11 05:46:33 PDT 2006
http://d.puremagic.com/bugzilla/show_bug.cgi?id=136
Summary: Corrupt GDB backtrace
Product: D
Version: 0.157
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: oskar.linde at gmail.com
void main() {
static int i = 0;
while(i++ < 10)
main();
*(cast(int *)0) = 0;
}
On DMD 0.157 compiling with dmd -g -debug and running in gdb and printing a
backtrace gives:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1208064320 (LWP 23068)]
0x0804b1fa in _Dmain () at debug.d:5
5 *(cast(int *)0) = 0;
Current language: auto; currently minimal
(gdb) bt
#0 0x0804b1fa in _Dmain () at debug.d:5
#1 0x0012d4f8 in ?? ()
#2 0xbfffecc0 in ?? ()
#3 0x0804b1f4 in _Dmain () at debug.d:4
Previous frame inner to this frame (corrupt stack?)
Compared to DMD 0.156:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1208064320 (LWP 23192)]
0x0804b1fa in _Dmain () at debug.d:5
5 *(cast(int *)0) = 0;
Current language: auto; currently minimal
(gdb) bt
#0 0x0804b1fa in _Dmain () at debug.d:5
#1 0x0804b1f4 in _Dmain () at debug.d:4
#2 0x0804b1f4 in _Dmain () at debug.d:4
#3 0x0804b1f4 in _Dmain () at debug.d:4
#4 0x0804b1f4 in _Dmain () at debug.d:4
#5 0x0804b1f4 in _Dmain () at debug.d:4
#6 0x0804b1f4 in _Dmain () at debug.d:4
#7 0x0804b1f4 in _Dmain () at debug.d:4
#8 0x0804b1f4 in _Dmain () at debug.d:4
#9 0x0804b1f4 in _Dmain () at debug.d:4
#10 0x0804b1f4 in _Dmain () at debug.d:4
#11 0x0804b26f in main ()
--
More information about the Digitalmars-d-bugs
mailing list