www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - dmd 0.90 linux seg fault

reply Mike Swieton <mike swieton.net> writes:
This may belong it the bugs NG, but whatever.

I am compiling some code I've just ported from the concurrent library, and the
code parses with no syntactic objections, but segfaults during the
code-generation step. I'll post some code when I've pared the example down
below 2000 lines and multiple modules. Below's a stack trace. I'm hoping
someone may be able to suggest a starting place:

#0  0x080caab6 in ForStatement::usesEH() ()
#1  0x080ca423 in CompoundStatement::usesEH() ()
#2  0x080a58d2 in FuncDeclaration::toObjFile() ()
#3  0x0804a596 in AttribDeclaration::toObjFile() ()
#4  0x0804a596 in AttribDeclaration::toObjFile() ()
#5  0x080a4ce5 in ClassDeclaration::toObjFile() ()
#6  0x0804a596 in AttribDeclaration::toObjFile() ()
#7  0x080a42b5 in Module::genobjfile() ()
#8  0x080b27a7 in main ()
#9  0x400e9d06 in __libc_start_main () from /lib/libc.so.6

Aside from the obvious (the source code), is there anything else that may help
debug this?

Mike Swieton
__
"You miss 100% of the shots you never take."
	- Wayne Gretzky
May 25 2004
parent Mike Swieton <mike swieton.net> writes:
In case it wasn't clear (I don't think it was), the compiler itself
segfaults during compilation.

On Tue, 25 May 2004 22:59:35 -0400, Mike Swieton wrote:

 This may belong it the bugs NG, but whatever.
 
 I am compiling some code I've just ported from the concurrent library, and the
 code parses with no syntactic objections, but segfaults during the
 code-generation step. I'll post some code when I've pared the example down
 below 2000 lines and multiple modules. Below's a stack trace. I'm hoping
 someone may be able to suggest a starting place:
 
 #0  0x080caab6 in ForStatement::usesEH() ()
 #1  0x080ca423 in CompoundStatement::usesEH() ()
 #2  0x080a58d2 in FuncDeclaration::toObjFile() ()
 #3  0x0804a596 in AttribDeclaration::toObjFile() ()
 #4  0x0804a596 in AttribDeclaration::toObjFile() ()
 #5  0x080a4ce5 in ClassDeclaration::toObjFile() ()
 #6  0x0804a596 in AttribDeclaration::toObjFile() ()
 #7  0x080a42b5 in Module::genobjfile() ()
 #8  0x080b27a7 in main ()
 #9  0x400e9d06 in __libc_start_main () from /lib/libc.so.6
 
 Aside from the obvious (the source code), is there anything else that may help
 debug this?
 
 Mike Swieton
 __
 "You miss 100% of the shots you never take."
 	- Wayne Gretzky

Mike Swieton __ Freedom lies in being bold. - Robert Frost
May 25 2004