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

Rainer Orth <ro at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
                 CC|                            |ro at gcc dot gnu.org
         Resolution|FIXED                       |---

--- Comment #12 from Rainer Orth <ro at gcc dot gnu.org> ---
The new testcase FAILs on Solaris/SPARC on trunk, gcc-7 and gcc-8 branches:

32-bit sparc:

+FAIL: gfortran.dg/unlimited_polymorphic_30.f03   -O0  execution test
+FAIL: gfortran.dg/unlimited_polymorphic_30.f03   -O1  execution test

64-bit sparc also:

+FAIL: gfortran.dg/unlimited_polymorphic_30.f03   -O2  execution test
+FAIL: gfortran.dg/unlimited_polymorphic_30.f03   -O3 -fomit-frame-pointer
-funroll-loops -fpeel-loops -ftracer -finline-functions  execution test
+FAIL: gfortran.dg/unlimited_polymorphic_30.f03   -O3 -g  execution test
+FAIL: gfortran.dg/unlimited_polymorphic_30.f03   -Os  execution test

On gcc-testresults, there are also reports on hppa2.0w-hp-hpux11.11,
spu-unknown-elf.

The tests FAIL like this:

Program received signal SIGBUS: Access to an undefined portion of a memory
object.

Backtrace for this error:

gdb shows

Thread 2 received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1 (LWP 1)]
0x00011244 in MAIN__ ()
    at
/vol/gcc/src/hg/gcc-7-branch/local/gcc/testsuite/gfortran.dg/unlimited_polymorphic_30.f03:13
13        x%v = ['foo','bar']
(gdb) where
#0  0x00011244 in MAIN__ ()
    at
/vol/gcc/src/hg/gcc-7-branch/local/gcc/testsuite/gfortran.dg/unlimited_polymorphic_30.f03:13

1: x/i $pc
=> 0x11244 <MAIN__+632>:        ld  [ %g1 ], %g1
(gdb) p/x $g1
$1 = 0x22a4b

i.e. an unaligned access.

Reply via email to