Can anyone reproduce this?

Martin Nowak dawg at dawgfoto.de
Sun Jan 1 19:36:05 PST 2012


On Mon, 02 Jan 2012 03:23:00 +0100, Timon Gehr <timon.gehr at gmx.ch> wrote:

> On 01/02/2012 03:02 AM, Caligo wrote:
>>
>>
>> On Sun, Jan 1, 2012 at 7:51 PM, Timon Gehr <timon.gehr at gmx.ch
>> <mailto:timon.gehr at gmx.ch>> wrote:
>>
>>     On my machine, the following program causes an access violation in
>>     druntime instead of throwing an AssertError.
>>
>>     module test;
>>     void foo(int x){assert(x);}
>>     void main(){foo(0);}
>>
>>     dmd -run test
>>     -- killed by signal 11
>>
>>
>>     Is this a regression or a problem with my setup (DMD 2.057 on Ubuntu
>>     11.10 64 bit)?
>>     Can anyone reproduce this?
>>
>>
>> mine throws an AssertError.
>>
>> DMD 2.057, Ubuntu 11.10 64bit
>
> Ok, thank you.
>
> I wonder what might cause this...
>
> I have the same issue with the following program with the -m32 flag.  
> With -m64 it terminates normally instead of throwing.
> void main(){throw new Throwable("moo");}

The latter might be related to
http://d.puremagic.com/issues/show_bug.cgi?id=7076.


More information about the Digitalmars-d mailing list