public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/54034] New: [4.8 Regression] doduc benchmark from polyhedron 11 segfaults
@ 2012-07-19 16:39 ubizjak at gmail dot com
  2012-07-19 16:59 ` [Bug fortran/54034] " ubizjak at gmail dot com
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: ubizjak at gmail dot com @ 2012-07-19 16:39 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 54034
           Summary: [4.8 Regression] doduc benchmark from polyhedron 11
                    segfaults
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: ubizjak@gmail.com


doduc benchmark from Polyhedron 11 benchmark suite segfaults when compile with
-O3 -ffast-math for x86_64-pc-linux-gnu target:

gcc version 4.8.0 20120719 (experimental) [trunk revision 189664] (GCC) 

[uros@localhost source]$ ./a.out
 MAIN : FIN S00002
 MAIN : FIN S00001
 MAIN : FIN S00011
 MAIN : FIN S00022
 TEMPS =     33.00000000 , NITERA :          1
 TEMPS =     34.00031044 , NITERA :        186
 TEMPS =     35.00497388 , NITERA :        955
 TEMPS =     36.00007615 , NITERA :       1512
 TEMPS =     37.00012624 , NITERA :       1765
 TEMPS =     38.00060760 , NITERA :       2044
 TEMPS =     39.00312223 , NITERA :       2327
 TEMPS =     40.00168143 , NITERA :       2607
 TEMPS =     45.00187475 , NITERA :       4017
 TEMPS =     50.00261983 , NITERA :       5492
 TEMPS =     55.00263522 , NITERA :       6981
 TEMPS =     60.00087007 , NITERA :       8679

Program received signal SIGSEGV: Segmentation fault - invalid memory reference.

Backtrace for this error:
#0  0x7F6627DD0FD7
#1  0x7F6627DD15A4
#2  0x3C02E3599F
#3  0x4040E8 in s00061_ at doduc.f90:568
#4  0x412AD3 in s00013_ at doduc.f90:1150
#5  0x41B9D4 in doduc at doduc.f90:182

The problem is with index to y array:

Program received signal SIGSEGV, Segmentation fault.
s00061 (i=7, hv=0.0050539815561751163, hvt=0, hvme=0, hvms=0,
ynu=4.3611596409392313, re=-nan(0x8000000000000), 
    tfl=1773.5356631567458, dtfl=-nan(0x8000000000000), iopt=0) at
doduc.f90:568
568           y1 = y(i1)
Missing separate debuginfos, use: debuginfo-install glibc-2.15-51.fc17.x86_64
(gdb) p i1
$1 = -2147483635
(gdb) bt
#0  s00061 (i=7, hv=0.0050539815561751163, hvt=0, hvme=0, hvms=0,
ynu=4.3611596409392313, re=-nan(0x8000000000000), 
    tfl=1773.5356631567458, dtfl=-nan(0x8000000000000), iopt=0) at
doduc.f90:568
#1  0x0000000000412ad4 in s00013 () at doduc.f90:1150
#2  0x000000000041b9d5 in doduc () at doduc.f90:182
#3  0x0000000000400b4d in main (argc=<optimized out>, argv=<optimized out>) at
doduc.f90:199
#4  0x0000003c02e21735 in __libc_start_main () from /lib64/libc.so.6
#5  0x0000000000400b79 in _start ()
(gdb) 

Please also note that a strange runtime regression happened with this benchmark
on 18th of July [1].

[1] http://gcc.opensuse.org/c++bench/polyhedron/polyhedron-summary.txt-2-0.html


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

* [Bug fortran/54034] [4.8 Regression] doduc benchmark from polyhedron 11 segfaults
  2012-07-19 16:39 [Bug fortran/54034] New: [4.8 Regression] doduc benchmark from polyhedron 11 segfaults ubizjak at gmail dot com
@ 2012-07-19 16:59 ` ubizjak at gmail dot com
  2012-07-20  9:23 ` janus at gcc dot gnu.org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: ubizjak at gmail dot com @ 2012-07-19 16:59 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Uros Bizjak <ubizjak at gmail dot com> 2012-07-19 16:59:37 UTC ---
Created attachment 27834
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27834
doduc benchmark

The source says:

! There is no condition about using this freeware : however
! I would appreciate receiving any new result from you to enrich
! the benchmark report , which is also available freely on request .

So, I have attached the benchmark in all of its glory.


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

* [Bug fortran/54034] [4.8 Regression] doduc benchmark from polyhedron 11 segfaults
  2012-07-19 16:39 [Bug fortran/54034] New: [4.8 Regression] doduc benchmark from polyhedron 11 segfaults ubizjak at gmail dot com
  2012-07-19 16:59 ` [Bug fortran/54034] " ubizjak at gmail dot com
@ 2012-07-20  9:23 ` janus at gcc dot gnu.org
  2012-07-20  9:34 ` rguenth at gcc dot gnu.org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: janus at gcc dot gnu.org @ 2012-07-20  9:23 UTC (permalink / raw)
  To: gcc-bugs

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

janus at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |janus at gcc dot gnu.org

--- Comment #2 from janus at gcc dot gnu.org 2012-07-20 09:23:00 UTC ---
(In reply to comment #0)
> doduc benchmark from Polyhedron 11 benchmark suite segfaults when compile with
> -O3 -ffast-math for x86_64-pc-linux-gnu target:
> 
> gcc version 4.8.0 20120719 (experimental) [trunk revision 189664] (GCC) 

works for me with:

Target: x86_64-unknown-linux-gnu
gcc version 4.8.0 20120718 (experimental) [trunk revision 189608] (GCC)


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

* [Bug fortran/54034] [4.8 Regression] doduc benchmark from polyhedron 11 segfaults
  2012-07-19 16:39 [Bug fortran/54034] New: [4.8 Regression] doduc benchmark from polyhedron 11 segfaults ubizjak at gmail dot com
  2012-07-19 16:59 ` [Bug fortran/54034] " ubizjak at gmail dot com
  2012-07-20  9:23 ` janus at gcc dot gnu.org
@ 2012-07-20  9:34 ` rguenth at gcc dot gnu.org
  2012-07-20 15:29 ` ubizjak at gmail dot com
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-07-20  9:34 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.8.0

--- Comment #3 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-07-20 09:34:28 UTC ---
Possibly a dup of 54031?


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

* [Bug fortran/54034] [4.8 Regression] doduc benchmark from polyhedron 11 segfaults
  2012-07-19 16:39 [Bug fortran/54034] New: [4.8 Regression] doduc benchmark from polyhedron 11 segfaults ubizjak at gmail dot com
                   ` (2 preceding siblings ...)
  2012-07-20  9:34 ` rguenth at gcc dot gnu.org
@ 2012-07-20 15:29 ` ubizjak at gmail dot com
  2012-07-20 19:26 ` dominiq at lps dot ens.fr
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: ubizjak at gmail dot com @ 2012-07-20 15:29 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Uros Bizjak <ubizjak at gmail dot com> 2012-07-20 15:29:32 UTC ---
(In reply to comment #3)
> Possibly a dup of 54031?

No, still fails with:

gcc version 4.8.0 20120720 (experimental) [trunk revision 189718] (GCC)

Janus, please try to run the executable under valgrind:

==2822== Memcheck, a memory error detector
==2822== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al.
==2822== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright info
==2822== Command: ./a.out
==2822== 
 MAIN : FIN S00002
 MAIN : FIN S00001
 MAIN : FIN S00011
 MAIN : FIN S00022
 TEMPS =     33.00000000 , NITERA :          1
 TEMPS =     34.00031044 , NITERA :        186
 TEMPS =     35.00497388 , NITERA :        955
 TEMPS =     36.00007615 , NITERA :       1512
 TEMPS =     37.00012624 , NITERA :       1765
 TEMPS =     38.00060760 , NITERA :       2044
 TEMPS =     39.00312223 , NITERA :       2327
 TEMPS =     40.00168143 , NITERA :       2607
 TEMPS =     45.00187475 , NITERA :       4017
 TEMPS =     50.00261983 , NITERA :       5492
 TEMPS =     55.00263522 , NITERA :       6981
 TEMPS =     60.00087007 , NITERA :       8679
==2822== Invalid read of size 8
==2822==    at 0x4040E8: s00061_ (doduc.f90:568)
==2822==    by 0x412AD3: s00013_ (doduc.f90:1150)
==2822==    by 0x41B9D4: MAIN__ (doduc.f90:182)
==2822==    by 0x400B4C: main (doduc.f90:199)
==2822==  Address 0x3fefff770 is not stack'd, malloc'd or (recently) free'd
==2822==


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

* [Bug fortran/54034] [4.8 Regression] doduc benchmark from polyhedron 11 segfaults
  2012-07-19 16:39 [Bug fortran/54034] New: [4.8 Regression] doduc benchmark from polyhedron 11 segfaults ubizjak at gmail dot com
                   ` (3 preceding siblings ...)
  2012-07-20 15:29 ` ubizjak at gmail dot com
@ 2012-07-20 19:26 ` dominiq at lps dot ens.fr
  2012-07-20 21:47 ` janus at gcc dot gnu.org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: dominiq at lps dot ens.fr @ 2012-07-20 19:26 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from Dominique d'Humieres <dominiq at lps dot ens.fr> 2012-07-20 19:26:05 UTC ---
This works for me on x86_64-apple-darwin10 at revision 189718 even when the
executable is run under valgrind. Nevertheless this remind me pr43716 which
disappeared without being explicitely fixed.

If needed, I have the file doduc.f90 exploded in one file per
function/subroutine, just let me know.


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

* [Bug fortran/54034] [4.8 Regression] doduc benchmark from polyhedron 11 segfaults
  2012-07-19 16:39 [Bug fortran/54034] New: [4.8 Regression] doduc benchmark from polyhedron 11 segfaults ubizjak at gmail dot com
                   ` (4 preceding siblings ...)
  2012-07-20 19:26 ` dominiq at lps dot ens.fr
@ 2012-07-20 21:47 ` janus at gcc dot gnu.org
  2012-07-21  6:33 ` burnus at gcc dot gnu.org
  2012-07-21 10:44 ` ubizjak at gmail dot com
  7 siblings, 0 replies; 9+ messages in thread
From: janus at gcc dot gnu.org @ 2012-07-20 21:47 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from janus at gcc dot gnu.org 2012-07-20 21:47:43 UTC ---
(In reply to comment #4)
> Janus, please try to run the executable under valgrind:

Sorry, I still can not reproduce it. Neither with valgrind, nor at later
revisions (189690,189711).

Did you use any other flags except "-O3 -ffast-math" which you did not tell us?


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

* [Bug fortran/54034] [4.8 Regression] doduc benchmark from polyhedron 11 segfaults
  2012-07-19 16:39 [Bug fortran/54034] New: [4.8 Regression] doduc benchmark from polyhedron 11 segfaults ubizjak at gmail dot com
                   ` (5 preceding siblings ...)
  2012-07-20 21:47 ` janus at gcc dot gnu.org
@ 2012-07-21  6:33 ` burnus at gcc dot gnu.org
  2012-07-21 10:44 ` ubizjak at gmail dot com
  7 siblings, 0 replies; 9+ messages in thread
From: burnus at gcc dot gnu.org @ 2012-07-21  6:33 UTC (permalink / raw)
  To: gcc-bugs

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

Tobias Burnus <burnus at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |burnus at gcc dot gnu.org

--- Comment #7 from Tobias Burnus <burnus at gcc dot gnu.org> 2012-07-21 06:32:48 UTC ---
(In reply to comment #6)
> Sorry, I still can not reproduce it. Neither with valgrind, nor at later
> revisions (189690,189711).
> Did you use any other flags except "-O3 -ffast-math" which you did not tell us?

I can reproduce it here with Rev. 189737; it also crashes without running
valgrind.

It crashes (on x86-64 openSUSE Factory) with
  -O3 -ffast-math [-g]

It does not crash with either of the following added:
  -fno-fast-math
  -fno-inline-functions
  -fno-predictive-commoning
  -fno-tree-vectorize

  -fno-protect-parens  (implied by -Ofast)

Nor does it crash with:
  -O2 -ftree-vectorize -finline-functions -ffpredictive-commoning -ffast-math
  -m32 -O3 -ffast-math


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

* [Bug fortran/54034] [4.8 Regression] doduc benchmark from polyhedron 11 segfaults
  2012-07-19 16:39 [Bug fortran/54034] New: [4.8 Regression] doduc benchmark from polyhedron 11 segfaults ubizjak at gmail dot com
                   ` (6 preceding siblings ...)
  2012-07-21  6:33 ` burnus at gcc dot gnu.org
@ 2012-07-21 10:44 ` ubizjak at gmail dot com
  7 siblings, 0 replies; 9+ messages in thread
From: ubizjak at gmail dot com @ 2012-07-21 10:44 UTC (permalink / raw)
  To: gcc-bugs

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

Uros Bizjak <ubizjak at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE

--- Comment #8 from Uros Bizjak <ubizjak at gmail dot com> 2012-07-21 10:44:26 UTC ---
Dup of pr43716.

*** This bug has been marked as a duplicate of bug 43716 ***


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

end of thread, other threads:[~2012-07-21 10:44 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-19 16:39 [Bug fortran/54034] New: [4.8 Regression] doduc benchmark from polyhedron 11 segfaults ubizjak at gmail dot com
2012-07-19 16:59 ` [Bug fortran/54034] " ubizjak at gmail dot com
2012-07-20  9:23 ` janus at gcc dot gnu.org
2012-07-20  9:34 ` rguenth at gcc dot gnu.org
2012-07-20 15:29 ` ubizjak at gmail dot com
2012-07-20 19:26 ` dominiq at lps dot ens.fr
2012-07-20 21:47 ` janus at gcc dot gnu.org
2012-07-21  6:33 ` burnus at gcc dot gnu.org
2012-07-21 10:44 ` ubizjak at gmail dot com

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).