public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/57192] New: [4.9 Regression] miscompilation at -O3
@ 2013-05-07  8:34 Joost.VandeVondele at mat dot ethz.ch
  2013-05-07  8:48 ` [Bug middle-end/57192] " rguenth at gcc dot gnu.org
                   ` (15 more replies)
  0 siblings, 16 replies; 17+ messages in thread
From: Joost.VandeVondele at mat dot ethz.ch @ 2013-05-07  8:34 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 57192
           Summary: [4.9 Regression] miscompilation at -O3
    Classification: Unclassified
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: Joost.VandeVondele@mat.ethz.ch


Created attachment 30045
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30045
testcase, reproduce with 'gfortran  -g -O3 orbital_pointers.f90  ; valgrind
./a.out'

For the attached testcase, recently 4.9 trunk started generating the following
error under valgrind:


gfortran  -g -O3 orbital_pointers.f90  ; valgrind ./a.out


==61245== Invalid write of size 4
==61245==    at 0x400EED: __orbital_pointers_MOD_init_orbital_pointers
(orbital_pointers.f90:102)
==61245==    by 0x401B71: main (orbital_pointers.f90:214)
==61245==  Address 0x4da2ee4 is not stack'd, malloc'd or (recently) free'd

when compiled at -O3 . Compiling with 4.8 branch, or 4.9 and -O2 doesn't cause
this behavior. 

It has been reduced from CP2K after observing that CP2K segfaults due to a
change made between rev198568 and rev198590 (but I'm not yet 100% sure this
testcase is the root cause).


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

end of thread, other threads:[~2013-05-13 14:57 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-07  8:34 [Bug middle-end/57192] New: [4.9 Regression] miscompilation at -O3 Joost.VandeVondele at mat dot ethz.ch
2013-05-07  8:48 ` [Bug middle-end/57192] " rguenth at gcc dot gnu.org
2013-05-07  9:26 ` Joost.VandeVondele at mat dot ethz.ch
2013-05-07 18:23 ` wschmidt at gcc dot gnu.org
2013-05-07 18:54 ` Joost.VandeVondele at mat dot ethz.ch
2013-05-07 19:02 ` Joost.VandeVondele at mat dot ethz.ch
2013-05-07 20:13 ` wschmidt at gcc dot gnu.org
2013-05-08  5:47 ` Joost.VandeVondele at mat dot ethz.ch
2013-05-08  6:01 ` dominiq at lps dot ens.fr
2013-05-08  6:18 ` Joost.VandeVondele at mat dot ethz.ch
2013-05-08  6:27 ` dominiq at lps dot ens.fr
2013-05-08 13:04 ` Joost.VandeVondele at mat dot ethz.ch
2013-05-09 15:45 ` wschmidt at gcc dot gnu.org
2013-05-09 15:46 ` wschmidt at gcc dot gnu.org
2013-05-09 15:55 ` wschmidt at gcc dot gnu.org
2013-05-12 14:37 ` Joost.VandeVondele at mat dot ethz.ch
2013-05-13 14:57 ` Joost.VandeVondele at mat dot ethz.ch

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