Bug 4797 – onOutOfMemoryError in dmd unit test causes segv
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
druntime
Product
D
Version
D2
Platform
Other
OS
Windows
Creation time
2010-09-03T03:09:00Z
Last change time
2010-09-05T19:17:56Z
Assigned to
sean
Creator
braddr
Comments
Comment #0 by braddr — 2010-09-03T03:09:09Z
to reproduce, from the dmd test directory:
make test_results/runnable/testdstress.d.out
gdb stacktrace:
(gdb) bt
#0 rt.dmain2._d_setunhandled (o=0x80a3aec) at src/rt/arrayshort.d:64
#1 0x080878cb in rt.deh2._d_throw (h=0x80a3aec) at src/rt/deh2.d:103
#2 0x0808702e in core.exception.onOutOfMemoryError () at src/core/demangle.d:57
#3 0x08081baa in dstress.run.module_01.test35 () at runnable/testdstress.d:710
#4 0x08081fa6 in D main () at runnable/testdstress.d:903
#5 0x08087d56 in rt.dmain2.main.runMain (this=0xbffff248) at src/rt/arrayint.d:198
#6 0x08087cb0 in rt.dmain2.main.tryExec (this=0xbffff248, dg=578850251989840456) at src/rt/arrayfloat.d:240
#7 0x08087d9a in rt.dmain2.main.runAll (this=0x80bc390) at src/core/thread.d:411
#8 0x08087cb0 in rt.dmain2.main.tryExec (this=0xbffff248, dg=578850440968401480) at src/rt/arrayfloat.d:240
#9 0x08087c56 in rt.dmain2.main (argc=1, argv=0x1f6770) at src/rt/arrayint.d:111
The file/lineno look rather suspect, but the function names look fairly sane.