mystery crashes

H. S. Teoh via Digitalmars-d digitalmars-d at puremagic.com
Wed Jan 20 09:38:53 PST 2016


On Tue, Jan 19, 2016 at 04:00:32PM -0800, H. S. Teoh via Digitalmars-d wrote:
> On Tue, Jan 19, 2016 at 10:19:22PM +0000, tsbockman via Digitalmars-d wrote:
> > Could I persuade someone from the compiler team to take a look at
> > this bug report I filed?
> >     https://issues.dlang.org/show_bug.cgi?id=15573
[...]
> I took a look, and couldn't reproduce the problem (Linux/x86_64). As I
> said in the bug comments, this looks like the symptoms of the compiler
> picking up the wrong version of a library (either druntime or phobos
> or other 3rd party libraries), or stale object files in your build
> cache.
[...]

I take that back; we've found that it was caused by a bad interaction
between -O and -inline in dmd that triggers a codegen bug, in which the
edx register was not properly initialized prior to the idiv instruction,
causing the result of the integer division to be garbage.

Maybe one of the compiler devs (probably Walter, as this may be backend
related) could look at this?


T

-- 
I am not young enough to know everything. -- Oscar Wilde


More information about the Digitalmars-d mailing list