https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78958
Bug ID: 78958 Summary: FAIL: gfortran.dg/alloc_comp_class_5.f03 - Segmentation fault Product: gcc Version: 7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: danglin at gcc dot gnu.org Target Milestone: --- Host: hppa64-hp-hpux11.11 Target: hppa64-hp-hpux11.11 Build: hppa64-hp-hpux11.11 spawn /test/gnu/gcc/objdir/gcc/testsuite/gfortran/../../gfortran -B/test/gnu/gcc /objdir/gcc/testsuite/gfortran/../../ -B/test/gnu/gcc/objdir/hppa64-hp-hpux11.11 /./libgfortran/ /test/gnu/gcc/gcc/gcc/testsuite/gfortran.dg/alloc_comp_class_5.f 03 -fno-diagnostics-show-caret -fdiagnostics-color=never -O0 -pedantic-errors -B /test/gnu/gcc/objdir/hppa64-hp-hpux11.11/./libgfortran/.libs -L/test/gnu/gcc/obj dir/hppa64-hp-hpux11.11/./libgfortran/.libs -L/test/gnu/gcc/objdir/hppa64-hp-hpu x11.11/./libgfortran/.libs -L/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/./libatomic/.libs -B/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/./libquadmath/.libs -L/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/./libquadmath/.libs -L/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/./libquadmath/.libs -lm -o ./alloc_comp_class_5.exePASS: gfortran.dg/alloc_comp_class_5.f03 -O0 (test for excess errors)Setting LD_LIBRARY_PATH to .:/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/./libgfortran/.libs:/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/./libgfortran/.libs:/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/./libatomic/.libs:/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/./libquadmath/.libs:/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/./libquadmath/.libs:/test/gnu/gcc/objdir/gcc:.:/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/./libgfortran/.libs:/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/./libgfortran/.libs :/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/./libatomic/.libs:/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/./libquadmath/.libs:/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/./libquadmath/.libs:/test/gnu/gcc/objdir/gccspawn [open ...]Program received signal SIGSEGV: Segmentation fault - invalid memory reference. (gdb) r The program being debugged has been started already. Start it from the beginning? (y or n) y Starting program: /test/gnu/gcc/objdir/gcc/testsuite/gfortran/alloc_comp_class_5.exe Program received signal SIGSEGV, Segmentation fault. 0x800003fffdd7d264 in ?? () from /lib/pa20_64/libc.2 (gdb) bt #0 0x800003fffdd7d264 in ?? () from /lib/pa20_64/libc.2 #1 0x800003fffdd7ff38 in free () from /lib/pa20_64/libc.2 #2 0x4000000000006018 in array_list::add_item ( a=<error reading variable: Cannot access memory at address 0x148>, e=<error reading variable: Cannot access memory at address 0x150>) at /test/gnu/gcc/gcc/gcc/testsuite/gfortran.dg/alloc_comp_class_5.f03:28 Breakpoint 2, 0x800003fffdd7fc08 in free () from /lib/pa20_64/libc.2 (gdb) bt #0 0x800003fffdd7fc08 in free () from /lib/pa20_64/libc.2 #1 0x4000000000006018 in array_list::add_item ( a=<error reading variable: Cannot access memory at address 0x3>, e=<error reading variable: Cannot access memory at address 0xb>) at /test/gnu/gcc/gcc/gcc/testsuite/gfortran.dg/alloc_comp_class_5.f03:28 Backtrace stopped: previous frame identical to this frame (corrupt stack?) (gdb) p/x $r26 $3 = 0x800000010000b280 It looks like this address wasn't allocated or previously freed.