Bug 14607 – dmd crashes intermittently when building in 32 bit mode
Status
RESOLVED
Resolution
WONTFIX
Severity
major
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Mac OS X
Creation time
2015-05-19T03:59:04Z
Last change time
2020-07-30T05:38:40Z
Assigned to
No Owner
Creator
Andrei Alexandrescu
Comments
Comment #0 by andrei — 2015-05-19T03:59:04Z
I've been spending a fair amount of time on this, thinking the problem is with the D program; I'd been using -run to run after compilation, but compiler crashes even without -run. The command line is:
../dmd/src/dmd -conf= -I../druntime/import -w -dip25 -m32 -g -debug -main -unittest generated/osx/debug/32/libphobos2.a -defaultlib= -debuglib= -L-lcurl -cov std/experimental/allocator/affix_allocator.d
On OSX it sometimes works, sometimes (about one in 10 times) crashes. The crash messages:
segmentation fault ../dmd/src/dmd -conf= -I../druntime/import -w -dip25 -m32 -g -debug -main
dmd(38716,0x7fff709b1300) malloc: *** error for object 0x101a37208: incorrect checksum for freed object - object was probably modified after being freed.
I'm using the master dmd as of right now. Will get back when I have a reduced test case.
Comment #1 by ketmar — 2015-05-19T12:36:27Z
can you try valgrind with debug build of DMD? valgrind log probably will show any incorrect memory operations, along with line numbers and some traces.
Comment #2 by dlang-bugzilla — 2015-05-20T02:38:12Z
Please include a test case (reduced or not). At the moment this bug report is non-actionable.