druntime unit test failures on FreeBSD

Jonathan M Davis via Digitalmars-d digitalmars-d at puremagic.com
Mon Apr 20 22:24:01 PDT 2015


On Monday, April 20, 2015 20:44:48 Dan Olson via Digitalmars-d wrote:
> On Sunday, 19 April 2015 at 07:36:13 UTC, Jonathan M Davis wrote:
> > I am consistently seeing this when I try and run druntime's
> > unit tests on
> > FreeBSD for either 2.067 or master:
> >
> > 0.000s PASS release64 object
> > 0.000s PASS release64 core.atomic
> > 0.008s PASS release64 core.bitop
> > 0.000s PASS release64 core.checkedint
> > 0.000s PASS release64 core.demangle
> > 0.000s PASS release64 core.exception
> > 0.000s PASS release64 core.math
> > 0.000s PASS release64 core.memory
> > posix.mak:230: recipe for target 'obj/64/core/thread' failed
> > gmake: *** [obj/64/core/thread] Illegal instruction
> > gmake: *** Deleting file 'obj/64/core/thread'
>
>   Do you know what thread.d unittest this happens in?  I am
> betting it is Fiber related.

It looks like it's happening in the last unittest block in core.thread:

unittest
{
    auto thr = new Thread(function{}, 10).start();
    thr.join();
}

And if I remove the ", 10" from the constructor call, then the problem goes
away - though then I get this failure later

Testing link
Testing load
Testing linkD
Testing linkDR
Testing loadDR
Testing host
Testing finalize
Testing link_linkdep
Makefile:28: recipe for target 'obj/freebsd/64/link_linkdep.done' failed
gmake[1]: *** [obj/freebsd/64/link_linkdep.done] Segmentation fault
gmake[1]: Leaving directory '/usr/home/jmdavis/Programming/github/druntime/test/shared'
posix.mak:242: recipe for target 'test/shared/.run' failed
gmake: *** [test/shared/.run] Error 2

No idea whether that's related or not. But regardless, that does narrow down
the problem some. Still, given how consistent it is on my box (I've _never_
seen it succeed on 2.067 or master), I really have to wonder what the
difference betwen my box and the autotesters are.

- Jonathan M Davis



More information about the Digitalmars-d mailing list