digitalmars.D.bugs - va_list segfault on AMD64
- Simon Buerger (30/30) Apr 18 2008 Im compiling the following with gdc-0.25-4.2.3-2ubuntu2 on Ubuntu 8.04
Im compiling the following with gdc-0.25-4.2.3-2ubuntu2 on Ubuntu 8.04
AMD64 and it gets a segmentation fault.
import std.stdio;
void main(){
writefln(42);
}
Writing strings works fine as far as I see. Following is the
stackframe given by gdb. And there you see the reason why I think its
something with the va_list stuff (which is pretty different on AMD64
than x86, because parameters are passed inside registers). But I'm not
really familiar with the internals of phobos, so maybe that guess is
wrong.
_D3std6format11doFormatPtrFDFwZvAC8TypeInfoG1S6object13__va_list_tagPvZv9formatArg
FaZv6putstrMFAaZv()
(??:??)
_D3std6format11doFormatPtrFDFwZvAC8TypeInfoG1S6object13__va_list_tagP
Zv9formatArgMFaZv()
(??:??)
_D3std6format11doFormatPtrFDFwZvAC8TypeInfoG1S6object13__va_list_tagPvZv()
(??:??)
_D3std5stdio7writefxFPS3std1c5stdio6_iobufAC8TypeInfoG1S6object
3__va_list_tagiZv()
(??:??)
Apr 18 2008








Simon Buerger <krox gmx.net>