Several segmentation faults
Chris Wright
dhasenan at gmail.com
Thu May 29 05:29:19 PDT 2008
downs wrote:
> Josh wrote:
>> Has anyone had segmentation faults running the tutorials? This segfaults on my computer (Ubuntu 8.04) using dgc. It's taken from one of the tutorials, but several similar tutorials also fail.
>>
>> import std.stdio;
>>
>> int magicNumber = 42;
>> char[] password = "sesame";
>>
>> void main() {
>> writefln("Magic number: ", magicNumber);
>> writefln("Password: ", password);
>> }
>
> All I can say is there is nothing in there that I could possibly imagine segfaulting.
>
> Ergo it has to be a problem with your system. If you have too much free time, try to build GDC from sources.
>
> Out of curiosity, could you gdb the crashing program?
>
> --downs
I've tried using gdc as installed from the Ubuntu repositories. The
programs it produces always segfault on vararg calls.
More information about the Digitalmars-d
mailing list