https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89735

            Bug ID: 89735
           Summary: FAIL: gdc.dg/runnable.d   -O0  execution test
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: d
          Assignee: ibuclaw at gdcproject dot org
          Reporter: danglin at gcc dot gnu.org
  Target Milestone: ---
              Host: hppa-unknown-linux-gnu
            Target: hppa-unknown-linux-gnu
             Build: hppa-unknown-linux-gnu

me/dave/gnu/gcc/objdir/gcc/testsuite/gdc/../../
/home/dave/gnu/gcc/gcc/gcc/tests
uite/gdc.dg/runnable.d -fno-diagnostics-show-caret
-fno-diagnostics-show-line-nu
mbers -fdiagnostics-color=never
-I/home/dave/gnu/gcc/objdir/hppa-linux-gnu/./lib
phobos/libdruntime
-I/home/dave/gnu/gcc/gcc/gcc/testsuite/../../libphobos/libdru
ntime -I/home/dave/gnu/gcc/gcc/gcc/testsuite/../../libphobos/src
-I/home/dave/gn
u/gcc/objdir/hppa-linux-gnu/libstdc++-v3/include/hppa-linux-gnu
-I/home/dave/gnu
/gcc/objdir/hppa-linux-gnu/libstdc++-v3/include
-I/home/dave/gnu/gcc/gcc/libstdc
++-v3/libsupc++ -I/home/dave/gnu/gcc/gcc/libstdc++-v3/include/backward
-I/home/d
ave/gnu/gcc/gcc/libstdc++-v3/testsuite/util -O0
/home/dave/gnu/gcc/gcc/gcc/tests
uite/gdc.dg/imports/runnable.d
-B/home/dave/gnu/gcc/objdir/hppa-linux-gnu/./libp
hobos/src -L/home/dave/gnu/gcc/objdir/hppa-linux-gnu/./libphobos/src/.libs
-L/ho
me/dave/gnu/gcc/objdir/hppa-linux-gnu/./libphobos/libdruntime/.libs
-L/home/dave
/gnu/gcc/objdir/hppa-linux-gnu/./libstdc++-v3/src/.libs -lm -o ./runnable.exe
PASS: gdc.dg/runnable.d   -O0  (test for excess errors)
Setting LD_LIBRARY_PATH to
.:/home/dave/gnu/gcc/objdir/hppa-linux-gnu/./libphobo
s/src/.libs:/home/dave/gnu/gcc/objdir/hppa-linux-gnu/./libphobos/libdruntime/.li
bs:/home/dave/gnu/gcc/objdir/hppa-linux-gnu/./libstdc++-v3/src/.libs:/home/dave/
gnu/gcc/objdir/gcc:.:/home/dave/gnu/gcc/objdir/hppa-linux-gnu/./libphobos/src/.l
ibs:/home/dave/gnu/gcc/objdir/hppa-linux-gnu/./libphobos/libdruntime/.libs:/home
/dave/gnu/gcc/objdir/hppa-linux-gnu/./libstdc++-v3/src/.libs:/home/dave/gnu/gcc/
objdir/gcc:/home/dave/gnu/gcc/objdir/hppa-linux-gnu/libstdc++-v3/src/.libs:/home
/dave/gnu/gcc/objdir/hppa-linux-gnu/libssp/.libs:/home/dave/gnu/gcc/objdir/hppa-
linux-gnu/libphobos/src/.libs:/home/dave/gnu/gcc/objdir/hppa-linux-gnu/libgomp/.
libs:/home/dave/gnu/gcc/objdir/hppa-linux-gnu/libatomic/.libs:/home/dave/gnu/gcc
/objdir/./gcc:/home/dave/gnu/gcc/objdir/./prev-gcc:/home/dave/gnu/gcc/objdir/hpp
a-linux-gnu/libstdc++-v3/src/.libs:/home/dave/gnu/gcc/objdir/hppa-linux-gnu/libs
sp/.libs:/home/dave/gnu/gcc/objdir/hppa-linux-gnu/libphobos/src/.libs:/home/dave
/gnu/gcc/objdir/hppa-linux-gnu/libgomp/.libs:/home/dave/gnu/gcc/objdir/hppa-linu
x-gnu/libatomic/.libs:/home/dave/gnu/gcc/objdir/./gcc:/home/dave/gnu/gcc/objdir/
./prev-gcc
Execution timeout is: 300
spawn [open ...]
core.exception.AssertError@/home/dave/gnu/gcc/gcc/gcc/testsuite/gdc.dg/runnable.
d(895): Assertion failure
----------------
../../../../gcc/libphobos/libdruntime/gcc/deh.d:499 _d_throw [0xf69b7]
../../../../gcc/libphobos/libdruntime/core/exception.d:441 onAssertError
[0xdd1a
b]
../../../../gcc/libphobos/libdruntime/core/exception.d:641 _d_assert [0xddc47]
??:? void runnable.check186(const(runnable.S186), byte) [0x1ce43]
??:? void runnable.test186a(uint) [0x1d04f]
??:? void runnable.test186() [0x1d423]
??:? _Dmain [0x23987]
1.000000
2.000000
3.000000
Construct: this=0xfa1248d0
Check: this=0xfa1248d0 a=0xfa1248d0
Check: this=0xfa1248d0 a=0xfa1248d0
Here
this=0xf8bf90b8
this=0xf8bf90b8
FAIL: gdc.dg/runnable.d   -O0  execution test

(gdb) break /home/dave/gnu/gcc/gcc/gcc/testsuite/gdc.dg/runnable.d:895
Breakpoint 2 at 0x1ccf4: file
/home/dave/gnu/gcc/gcc/gcc/testsuite/gdc.dg/runnable.d, line 895.
(gdb) r
Starting program: /home/dave/gnu/gcc/objdir/gcc/testsuite/gdc/runnable.exe
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/hppa-linux-gnu/libthread_db.so.1".
[New Thread 0xf77e7100 (LWP 16000)]
[New Thread 0xf6fe6100 (LWP 16001)]
[New Thread 0xf67e5100 (LWP 16002)]
1.000000
2.000000
3.000000
Construct: this=0xf8d02610
Check: this=0xf8d02610 a=0xf8d02610
Check: this=0xf8d02610 a=0xf8d02610
Here
this=0xf8bf90b8
this=0xf8bf90b8

Thread 1 "runnable.exe" hit Breakpoint 2,
runnable.check186(const(runnable.S186), byte) (obj=..., fieldB=0 '\000')
    at /home/dave/gnu/gcc/gcc/gcc/testsuite/gdc.dg/runnable.d:895
895         assert(obj.fieldA == 2);
(gdb) p obj
$1 = {{{fieldA = 0 '\000', fieldB = 0 '\000', fieldC = 0 '\000'},
    _complete = 2}}
(gdb) bt
#0  runnable.check186(const(runnable.S186), byte) (obj=..., fieldB=0 '\000')
    at /home/dave/gnu/gcc/gcc/gcc/testsuite/gdc.dg/runnable.d:895
#1  0x0001cf60 in runnable.test186a(uint) (val=2)
    at /home/dave/gnu/gcc/gcc/gcc/testsuite/gdc.dg/runnable.d:905
#2  0x0001d334 in runnable.test186() ()
    at /home/dave/gnu/gcc/gcc/gcc/testsuite/gdc.dg/runnable.d:923
#3  0x00023898 in D main ()
    at /home/dave/gnu/gcc/gcc/gcc/testsuite/gdc.dg/runnable.d:1601

(gdb) list /home/dave/gnu/gcc/gcc/gcc/testsuite/gdc.dg/runnable.d:895
890         }
891     }
892
893     void check186(in S186 obj, byte fieldB)
894     {
895         assert(obj.fieldA == 2);
896         assert(obj.fieldB == 0);
897         assert(obj.fieldC == 0);
898         assert(obj._complete == 2);
899         assert(fieldB == 0);

Reply via email to