D programs segfault when vararg functions are used
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gdc-4.2 (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: gdc-4.2
Programs that are compiled with the Ubuntu build of GDC give a segmentation fault whenever vararg functions, such as writef and writefln are used. The following hello-world program, for instance, will crash:
import std.stdio;
void main() {
writefln("Hello %s!", "world");
}
This program compiles without errors, and the segfault happens when running the program. I am running Ubuntu 8.04 with GDC build 0.25-4.
This issue has been discussed on the official D forum, and it seems only the Ubuntu version has this problem:
http://
I forgot to mention: I am using the AMD64 version of Hardy.