D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 3767 - All programs compiled with DMD 2.040 on Mac OS X 10.5.8 are Segmentation fault.
Summary: All programs compiled with DMD 2.040 on Mac OS X 10.5.8 are Segmentation fault.
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86 Mac OS X
: P2 blocker
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-03 20:18 UTC by kamaboco
Modified: 2015-06-09 01:27 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description kamaboco 2010-02-03 20:18:06 UTC
Crash on static ctor?

$ cat main.d
void main(){}
$ dmd main.d
$ ./main
Segmentation fault
$ cat crash.d 
import std.c.stdio;

shared static this ()  { fprintf(stderr,"shared static this ()\n"); }
shared static ~this () { fprintf(stderr,"shared static ~this ()\n");}

static this () { fprintf(stderr,"static this ()\n"); }
static ~this () { fprintf(stderr,"static ~this ()\n"); }

void main(){ fprintf(stderr,"ok\n"); }
$ dmd crash.d
$ ./crash
shared static this ()
Segmentation fault
$
Comment 1 Don 2010-02-03 23:57:39 UTC
Is this the same as bug 3428?
Comment 2 Sean Kelly 2010-06-07 21:07:39 UTC
Can't reproduce with DMD 2.046.