public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/39964]  New: compilation with -fprofile-generate causes code to segfault.
@ 2009-04-29 15:26 jv244 at cam dot ac dot uk
  2009-04-29 15:27 ` [Bug middle-end/39964] " jv244 at cam dot ac dot uk
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: jv244 at cam dot ac dot uk @ 2009-04-29 15:26 UTC (permalink / raw)
  To: gcc-bugs

Compiling CP2K with -fprofile-generate causes the resulting executable to
segfault. In gdb there is some additional 'expression error' message for the
point of the segfault:

Program received signal SIGSEGV, Segmentation fault.
fftw3_create_plan_3d (plan=DWARF-2 expression error: DW_OP_reg operations must
be used either alone or in conjuction with DW_OP_piece.
) at /data03/vondele/cjm/cp2k/src/../src/lib/fftw3_lib.F:127
127       IF (aligned) THEN
(gdb) bt
#0  fftw3_create_plan_3d (plan=DWARF-2 expression error: DW_OP_reg operations
must be used either alone or in conjuction with DW_OP_piece.
) at /data03/vondele/cjm/cp2k/src/../src/lib/fftw3_lib.F:127
#1  0x000000000182d231 in fft_create_plan_3d (plan=DWARF-2 expression error:
DW_OP_reg operations must be used either alone or in conjuction with
DW_OP_piece.

It will be hard to get a run time testcase (except getting a full copy of
CP2K). 
I'll attach the file where the segfault happens, and that can be compiled with:

gfortran -c -static -g -O2 -ffast-math -funroll-loops -ftree-vectorize
-march=native -ffree-form -fprofile-generate -D__FFTW3 fftw3_lib.F


-- 
           Summary: compilation with -fprofile-generate causes code to
                    segfault.
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jv244 at cam dot ac dot uk


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


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

* [Bug middle-end/39964] compilation with -fprofile-generate causes code to segfault.
  2009-04-29 15:26 [Bug middle-end/39964] New: compilation with -fprofile-generate causes code to segfault jv244 at cam dot ac dot uk
@ 2009-04-29 15:27 ` jv244 at cam dot ac dot uk
  2009-04-29 15:27 ` jv244 at cam dot ac dot uk
  2009-04-30 18:49 ` jv244 at cam dot ac dot uk
  2 siblings, 0 replies; 4+ messages in thread
From: jv244 at cam dot ac dot uk @ 2009-04-29 15:27 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from jv244 at cam dot ac dot uk  2009-04-29 15:27 -------
GNU Fortran (GCC) version 4.4.0 20090414 (prerelease) [gcc-4_4-branch revision
146034]


-- 


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


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

* [Bug middle-end/39964] compilation with -fprofile-generate causes code to segfault.
  2009-04-29 15:26 [Bug middle-end/39964] New: compilation with -fprofile-generate causes code to segfault jv244 at cam dot ac dot uk
  2009-04-29 15:27 ` [Bug middle-end/39964] " jv244 at cam dot ac dot uk
@ 2009-04-29 15:27 ` jv244 at cam dot ac dot uk
  2009-04-30 18:49 ` jv244 at cam dot ac dot uk
  2 siblings, 0 replies; 4+ messages in thread
From: jv244 at cam dot ac dot uk @ 2009-04-29 15:27 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from jv244 at cam dot ac dot uk  2009-04-29 15:27 -------
Created an attachment (id=17781)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17781&action=view)
source file


-- 


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


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

* [Bug middle-end/39964] compilation with -fprofile-generate causes code to segfault.
  2009-04-29 15:26 [Bug middle-end/39964] New: compilation with -fprofile-generate causes code to segfault jv244 at cam dot ac dot uk
  2009-04-29 15:27 ` [Bug middle-end/39964] " jv244 at cam dot ac dot uk
  2009-04-29 15:27 ` jv244 at cam dot ac dot uk
@ 2009-04-30 18:49 ` jv244 at cam dot ac dot uk
  2 siblings, 0 replies; 4+ messages in thread
From: jv244 at cam dot ac dot uk @ 2009-04-30 18:49 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from jv244 at cam dot ac dot uk  2009-04-30 18:48 -------
a bug in the code that is triggered by the option. closing as invalid.


-- 

jv244 at cam dot ac dot uk changed:

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


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


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

end of thread, other threads:[~2009-04-30 18:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-29 15:26 [Bug middle-end/39964] New: compilation with -fprofile-generate causes code to segfault jv244 at cam dot ac dot uk
2009-04-29 15:27 ` [Bug middle-end/39964] " jv244 at cam dot ac dot uk
2009-04-29 15:27 ` jv244 at cam dot ac dot uk
2009-04-30 18:49 ` jv244 at cam dot ac dot uk

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