Thread overview
Debugging compiler crashes?
Jul 02, 2012
Wouter Verhelst
Jul 02, 2012
Timon Gehr
Jul 02, 2012
Wouter Verhelst
Jul 02, 2012
Trass3r
Jul 02, 2012
Wouter Verhelst
Jul 02, 2012
Wouter Verhelst
Jul 03, 2012
Trass3r
July 02, 2012
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
July 02, 2012
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
July 02, 2012
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
July 02, 2012
> 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
July 02, 2012
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
July 02, 2012
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
July 03, 2012
> ... the order of files matters? Yuck.

Yep it's a bug.