Segfault during D1 writefln output of double value

Jonathan Crapuchettes jcrapuchettes at gmail.com
Fri Aug 12 14:03:40 PDT 2011


I think I've run into a problem with DMD's compilation. Can anyone suggest a 
work around? In the middle of a function I called writefln to output a double 
value for testing, but the code is now segfaulting during the execution of 
writefln. Backtrace from gdb follows.

Thanks,
JC

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffee750700 (LWP 12638)]
0x0000000000aff2a8 in std.stdio.writefln() ()
(gdb) bt
#0  0x0000000000aff2a8 in std.stdio.writefln() ()
#1  0x00007fffdf3e4c50 in ?? ()
#2  0x00007fffdf3e1000 in ?? ()
#3  0x00007fffdf3e4c50 in ?? ()
#4  0x0000000000000058 in ?? ()
#5  0x0101010101010101 in ?? ()
#6  0x00007fffdf4119e0 in ?? ()
#7  0x0000000000af1258 in _aaGetRvalueX ()
#8  0xe8db520676ab551a in ?? ()
#9  0x00007ffff7ed2580 in ?? ()
#10 0x00007ffff7ed2580 in ?? ()
#11 0x00007fffee74fac8 in ?? ()
#12 0x0000000000471749 in ccb.matrix.Vector.NamedVector.this (this=Cannot access 
memory at address 0x74eafb0f9fdc830e
) at ../ccb/matrix/Vector.d:990
Cannot access memory at address 0x74eafb0f9fdc8326


More information about the Digitalmars-d mailing list