Thread overview | |||||||||
---|---|---|---|---|---|---|---|---|---|
|
July 02, 2012 Debugging compiler crashes? | ||||
---|---|---|---|---|
| ||||
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 Re: Debugging compiler crashes? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Wouter Verhelst | 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 Re: Debugging compiler crashes? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Timon Gehr | 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 Re: Debugging compiler crashes? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Wouter Verhelst | > 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 Re: Debugging compiler crashes? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Trass3r | 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 Re: Debugging compiler crashes? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Wouter Verhelst | 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 Re: Debugging compiler crashes? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Wouter Verhelst | > ... the order of files matters? Yuck.
Yep it's a bug.
|
Copyright © 1999-2021 by the D Language Foundation