digitalmars.D - Segfault during D1 writefln output of double value
- Jonathan Crapuchettes <jcrapuchettes gmail.com> Aug 12 2011
- bearophile <bearophileHUGS lycos.com> Aug 12 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
Aug 12 2011
Jonathan Crapuchettes: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.
Is it segfaulting with a printf too? Don't you want to show the code too? Maybe in the D.learn newsgroup? Bye, bearophile
Aug 12 2011








bearophile <bearophileHUGS lycos.com>