www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Dmd master tests are failing with segmentation fault

reply Guillaume Chatelet <chatelet.guillaume gmail.com> writes:
Is this a known issue ? Why Auto Tester didn't catch it ?

0. OS: ArchLinux 64bits

1. Get clean dmd from master

2. make -f posix.mak AUTO_BOOTSTRAP=1

3. ./src/dmd
DMD64 D Compiler v2.069-devel-b99a53f

4. make -f posix.mak test
make[1]: Entering directory '/home/auser/dlang/dmd/test'
Building d_do_test tool
OS: linux
Running runnable tests
Makefile:137: recipe for target 
'test_results/runnable/testbounds_on.d.out' failed
make[2]: *** [test_results/runnable/testbounds_on.d.out] 
Segmentation fault (core dumped)
Makefile:176: recipe for target 'start_runnable_tests' failed
make[1]: *** [start_runnable_tests] Error 2
make[1]: Leaving directory '/home/auser/dlang/dmd/test'
posix.mak:21: recipe for target 'test' failed
make: *** [test] Error 2
Sep 19 2015
parent reply Guillaume Chatelet <chatelet.guillaume gmail.com> writes:
On Saturday, 19 September 2015 at 13:34:27 UTC, Guillaume 
Chatelet wrote:
 Is this a known issue ? Why Auto Tester didn't catch it ?
It's coming from d_do_test, gdb gives this stacktrace. Program received signal SIGSEGV, Segmentation fault. 0x0000000000460b64 in rt.deh_win64_posix.terminate() () (gdb) bt #0 0x0000000000460b64 in rt.deh_win64_posix.terminate() () #1 0x0000000000445578 in _d_throwc () #2 0x0000000000409a00 in std.exception.bailOut!(Exception).bailOut(immutable(char)[], ulong, const(char[])) () #3 0x000000000040997d in std.exception.enforce!(Exception, bool).enforce(bool, lazy const(char)[], immutable(char)[], ulong) () #4 0x000000000044ef7b in std.stdio.File.LockingTextWriter.this(ref std.stdio.File) () #5 0x000000000044f080 in std.stdio.File.lockingTextWriter() () #6 0x000000000040771e in std.stdio.File.write!(immutable(char)[]).write(immutable(char)[]) () #7 0x000000000040769e in std.stdio.write!(immutable(char)[]).write(immutable(char)[]) () #8 0x0000000000402d0e in d_do_test.usage() () #9 0x000000000040575c in D main () hmm so it's probably coming from druntime or phobos not being build with the correct dmd version...
Sep 19 2015
parent reply Guillaume Chatelet <chatelet.guillaume gmail.com> writes:
On Saturday, 19 September 2015 at 17:38:40 UTC, Guillaume 
Chatelet wrote:
 hmm so it's probably coming from druntime or phobos not being 
 build with the correct dmd version...
Indeed it was this, sorry for the noise.
Sep 19 2015
parent reply Andrei Alexandrescu <SeeWebsiteForEmail erdani.org> writes:
On 09/19/2015 01:41 PM, Guillaume Chatelet wrote:
 On Saturday, 19 September 2015 at 17:38:40 UTC, Guillaume Chatelet wrote:
 hmm so it's probably coming from druntime or phobos not being build
 with the correct dmd version...
Indeed it was this, sorry for the noise.
I wonder how we could make the error manifestation more user-friendly. Ideas? -- Andrei
Sep 19 2015
parent ZombineDev <valid_email he.re> writes:
On Saturday, 19 September 2015 at 18:54:46 UTC, Andrei 
Alexandrescu wrote:
 On 09/19/2015 01:41 PM, Guillaume Chatelet wrote:
 On Saturday, 19 September 2015 at 17:38:40 UTC, Guillaume 
 Chatelet wrote:
 hmm so it's probably coming from druntime or phobos not being 
 build
 with the correct dmd version...
Indeed it was this, sorry for the noise.
I wonder how we could make the error manifestation more user-friendly. Ideas? -- Andrei
https://github.com/D-Programming-Language/druntime/pull/1354#issuecomment-133695787
Sep 20 2015