public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/60576] New: [4.9 Regression] FAIL: gfortran.dg/assumed_rank_7.f90
@ 2014-03-18 23:02 hjl.tools at gmail dot com
  2014-03-19  9:54 ` [Bug fortran/60576] " jakub at gcc dot gnu.org
                   ` (31 more replies)
  0 siblings, 32 replies; 33+ messages in thread
From: hjl.tools at gmail dot com @ 2014-03-18 23:02 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60576

            Bug ID: 60576
           Summary: [4.9 Regression] FAIL: gfortran.dg/assumed_rank_7.f90
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hjl.tools at gmail dot com
                CC: jakub at gcc dot gnu.org

On Linux/x86-64, r208641 caused:

FAIL: gfortran.dg/assumed_rank_7.f90  -O3 -fomit-frame-pointer
-funroll-all-loops -finline-functions  execution test
FAIL: gfortran.dg/assumed_rank_7.f90  -O3 -fomit-frame-pointer -funroll-loops 
execution test

with -march=corei7:

Core was generated by `./assumed_rank_7.exe'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x0000003cddb47859 in __memcpy_ssse3_back () from /lib64/libc.so.6
(gdb) bt
#0  0x0000003cddb47859 in __memcpy_ssse3_back () from /lib64/libc.so.6
#1  0x00000000004010d2 in MAIN__ ()
#2  0x00000000004009ed in main ()
(gdb) 

   0x0000003cddb47856 <+182>:    add    %rdx,%rsi
=> 0x0000003cddb47859 <+185>:    movdqu -0x10(%rsi),%xmm0
   0x0000003cddb4785e <+190>:    lea    -0x10(%rdi),%r8

(gdb) p/x $rsi
$5 = 0x602040
(gdb) 

It only happens when running

make check-gfortran RUNTESTFLAGS="dg.exp=assumed_rank_7.f90
--target_board='unix{-march=corei7\ -fno-backtrace}'"

with

[hjl@gnu-mic-2 gfortran.dg]$ cat /proc/sys/kernel/randomize_va_space
2
[hjl@gnu-mic-2 gfortran.dg]$ 

Gfortran generates:

        movl    $168, %edx
                 ^^^ Copy 168 bytes
        movl    $at.2415+24, %esi
                         ^^ Start at at.2415 + 24
        movq    at.2415(%rip), %r8 
        movq    at.2415+8(%rip), %r9 
        leaq    40(%rsp), %rdi
        movq    $__vtab_MAIN___T.2395, 208(%rsp)
        movq    at.2415+16(%rip), %r10
        movq    %r8, 16(%rsp)
        movq    %r9, 24(%rsp)
        movq    %r10, 32(%rsp)
        call    memcpy
...
        .local  at.2415
        .comm   at.2415,72,64
                        ^^ 72 bytes

Write 168 bytes to (72 - 24) bytes leads to segfault.


^ permalink raw reply	[flat|nested] 33+ messages in thread

end of thread, other threads:[~2023-07-07 10:30 UTC | newest]

Thread overview: 33+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-18 23:02 [Bug fortran/60576] New: [4.9 Regression] FAIL: gfortran.dg/assumed_rank_7.f90 hjl.tools at gmail dot com
2014-03-19  9:54 ` [Bug fortran/60576] " jakub at gcc dot gnu.org
2014-03-19  9:56 ` rguenth at gcc dot gnu.org
2014-03-19 10:03 ` jakub at gcc dot gnu.org
2014-03-19 15:29 ` [Bug fortran/60576] [4.8/4.9 " jakub at gcc dot gnu.org
2014-03-21 20:42 ` dominiq at lps dot ens.fr
2014-03-24 18:08 ` jakub at gcc dot gnu.org
2014-03-24 20:38 ` mikael at gcc dot gnu.org
2014-03-26 21:05 ` jakub at gcc dot gnu.org
2014-03-28 13:05 ` burnus at gcc dot gnu.org
2014-03-28 20:31 ` [Bug fortran/60576] [4.8 " jakub at gcc dot gnu.org
2014-03-28 20:35 ` burnus at gcc dot gnu.org
2014-03-28 20:57 ` burnus at gcc dot gnu.org
2014-03-28 20:58 ` burnus at gcc dot gnu.org
2014-03-28 21:19 ` hjl.tools at gmail dot com
2014-03-28 21:24 ` burnus at gcc dot gnu.org
2014-03-28 21:39 ` dominiq at lps dot ens.fr
2014-03-29 17:08 ` dominiq at lps dot ens.fr
2014-03-30  9:33 ` mikael at gcc dot gnu.org
2014-05-22  9:07 ` rguenth at gcc dot gnu.org
2014-12-10 12:54 ` rguenth at gcc dot gnu.org
2014-12-10 17:44 ` [Bug fortran/60576] [4.8/4.9/5 " dominiq at lps dot ens.fr
2014-12-19 13:26 ` jakub at gcc dot gnu.org
2015-06-23  8:19 ` [Bug fortran/60576] [4.8/4.9/5/6 " rguenth at gcc dot gnu.org
2015-06-26 19:55 ` [Bug fortran/60576] [4.9/5/6 " jakub at gcc dot gnu.org
2015-06-26 20:27 ` jakub at gcc dot gnu.org
2021-01-07 22:25 ` [Bug fortran/60576] [8/9/10/11 " anlauf at gcc dot gnu.org
2021-05-14  9:47 ` [Bug fortran/60576] [9/10/11/12 " jakub at gcc dot gnu.org
2021-05-31 17:32 ` dominiq at lps dot ens.fr
2021-06-01  8:06 ` rguenth at gcc dot gnu.org
2022-05-27  9:35 ` [Bug fortran/60576] [10/11/12/13 " rguenth at gcc dot gnu.org
2022-06-28 10:30 ` jakub at gcc dot gnu.org
2023-07-07 10:30 ` [Bug fortran/60576] [11/12/13/14 " rguenth at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).