Segfault with DMD optimization switch
ixid
nuaccount at gmail.com
Tue Jan 22 17:00:32 PST 2013
On Tuesday, 22 January 2013 at 18:28:08 UTC, Jonathan M Davis
wrote:
> On Tuesday, January 22, 2013 19:21:33 Stephan wrote:
>> Unfortunately, in my case the code crashed in a position late
>> in
>> some iteration loop, so I can't easily reproduce it in a simple
>> program to file a bug report.
>
> DustMite might be able to help you reduce your code to a
> simpler program which
> also has the failure:
>
> https://github.com/CyberShadow/DustMite
>
> - Jonathan M davis
Using DMD 2.061 on Windows XP with VisualD and turning on
optimization in debug mode, this will throw an exception:
import std.datetime;
void main() {
StopWatch sw;
sw.start;
}
What seems to cause it is adding a break point on the last line.
It exits successfully with code 0 without the break point. This
just happens to be the minimal case the first program I could
think of reduces to and still has the issue, I have no idea if
it's anything to do with std.datetime nor if I am demonstrating
the same issue, apologies if this is irrelevant.
More information about the Digitalmars-d
mailing list