www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Debugging compiler crashes?

reply Wouter Verhelst <wouter grep.be> writes:
Hi,

I have a body of code which makes the compiler frontend segfault.

Is there some automated tool which will help me produce a minimal
testcase so I can file a bugreport? The body in question is fairly
large, just posting that to a bugreport doesn't sound like a good idea
to me.

Thanks,

-- 
The volume of a pizza of thickness a and radius z can be described by
the following formula:

pi zz a
Jul 02 2012
parent reply Timon Gehr <timon.gehr gmx.ch> writes:
On 07/02/2012 08:38 PM, Wouter Verhelst wrote:
 Hi,

 I have a body of code which makes the compiler frontend segfault.

 Is there some automated tool which will help me produce a minimal
 testcase so I can file a bugreport? The body in question is fairly
 large, just posting that to a bugreport doesn't sound like a good idea
 to me.

 Thanks,
https://github.com/CyberShadow/DustMite
Jul 02 2012
parent reply Wouter Verhelst <wouter grep.be> writes:
Timon Gehr <timon.gehr gmx.ch> writes:

 On 07/02/2012 08:38 PM, Wouter Verhelst wrote:
 Hi,

 I have a body of code which makes the compiler frontend segfault.

 Is there some automated tool which will help me produce a minimal
 testcase so I can file a bugreport? The body in question is fairly
 large, just posting that to a bugreport doesn't sound like a good idea
 to me.

 Thanks,
https://github.com/CyberShadow/DustMite
Thanks, that sounds like just the thing I need. However, it doesn't seem to compile for me: wouter carillon:~/code/d/DustMite$ dmd -ofdustmite -release *d dmd: glue.c:542: virtual void FuncDeclaration::toObjFile(int): Assertion `semanticRun == PASSsemantic3done' failed. Aborted wouter carillon:~/code/d/DustMite$ ... and I'm not yet that fluent in D to understand what's going on. Any ideas? (dmd 2.059, in case that matters) -- The volume of a pizza of thickness a and radius z can be described by the following formula: pi zz a
Jul 02 2012
parent reply Trass3r <un known.com> writes:
 dmd: glue.c:542: virtual void FuncDeclaration::toObjFile(int): Assertion  
 `semanticRun == PASSsemantic3done' failed.
 Aborted
 wouter carillon:~/code/d/DustMite$

 ... and I'm not yet that fluent in D to understand what's going on. Any
 ideas?
pass dustmite.d before dsplit.d known problem, but the error message has changed
Jul 02 2012
parent reply Wouter Verhelst <wouter grep.be> writes:
Trass3r <un known.com> writes:

 dmd: glue.c:542: virtual void FuncDeclaration::toObjFile(int):
 Assertion `semanticRun == PASSsemantic3done' failed.
 Aborted
 wouter carillon:~/code/d/DustMite$

 ... and I'm not yet that fluent in D to understand what's going on. Any
 ideas?
pass dustmite.d before dsplit.d known problem, but the error message has changed
... the order of files matters? Yuck. Oh well. -- The volume of a pizza of thickness a and radius z can be described by the following formula: pi zz a
Jul 02 2012
next sibling parent Wouter Verhelst <wouter grep.be> writes:
Wouter Verhelst <wouter grep.be> writes:

 Trass3r <un known.com> writes:

 dmd: glue.c:542: virtual void FuncDeclaration::toObjFile(int):
 Assertion `semanticRun == PASSsemantic3done' failed.
 Aborted
 wouter carillon:~/code/d/DustMite$

 ... and I'm not yet that fluent in D to understand what's going on. Any
 ideas?
pass dustmite.d before dsplit.d known problem, but the error message has changed
... the order of files matters? Yuck. Oh well.
Anyway, this helped tracking the problem down, and I've now filed a bug: http://d.puremagic.com/issues/show_bug.cgi?id=8337 thanks, -- The volume of a pizza of thickness a and radius z can be described by the following formula: pi zz a
Jul 02 2012
prev sibling parent Trass3r <un known.com> writes:
 ... the order of files matters? Yuck.
Yep it's a bug.
Jul 02 2012