public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/36315] New: [4.4 Regression] ICE with -fprofile-use (Invalid read of size 8)
@ 2008-05-23 17:10 burnus at gcc dot gnu dot org
2008-05-23 20:45 ` [Bug middle-end/36315] " ubizjak at gmail dot com
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: burnus at gcc dot gnu dot org @ 2008-05-23 17:10 UTC (permalink / raw)
To: gcc-bugs
With 4.4.0 20080523 [trunk revision 135791] the following fails on x86-64. It
was working with 2008-05-20-r135601.
$ gfortran -fprofile-generate -march=opteron -ffast-math -funroll-loops
-ftree-vectorize -ftree-loop-linear -msse3 -O3 mdbx.f90
$ ./a.out
$ gfortran -fprofile-use -march=opteron -ffast-math -funroll-loops
-ftree-vectorize -ftree-loop-linear -msse3 -O3 mdbx.f90
Valgrind shows for the latter:
==27696== Invalid read of size 8
==27696== at 0x4D0913: ggc_set_mark (ggc-page.c:584)
==27696== by 0x485B07: gt_ggc_mx_lang_tree_node (gt-fortran-f95-lang.h:49)
==27696== by 0x63D14C: gt_ggc_mx_rtx_def (gtype-desc.c:1277)
==27696== by 0x4868DE: gt_ggc_mx_lang_tree_node (gt-fortran-f95-lang.h:173)
==27696== by 0x4866AA: gt_ggc_mx_lang_tree_node (gt-fortran-f95-lang.h:304)
==27696== by 0x636794: gt_ggc_mx_cgraph_node (gtype-desc.c:162)
==27696== by 0x636A45: gt_ggc_m_P11cgraph_node4htab (gtype-desc.c:1870)
==27696== by 0x6157AE: ggc_mark_roots (ggc-common.c:107)
==27696== by 0x4D1408: ggc_collect (ggc-page.c:1946)
==27696== by 0x67DA14: execute_todo (passes.c:1050)
==27696== by 0x67DCA3: execute_one_pass (passes.c:1306)
==27696== by 0x67DE84: execute_pass_list (passes.c:1334)
==27696== Address 0x8 is not stack'd, malloc'd or (recently) free'd
mdbx.f90: In function "mstep":
mdbx.f90:822: internal compiler error: segmentation fault
If no -profile-generate'd data is available, there is no crash.
The program is part of the Polyhedron testsuite, which is available at:
http://www.polyhedron.co.uk/MFL6VW74649
--
Summary: [4.4 Regression] ICE with -fprofile-use (Invalid read of
size 8)
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: middle-end
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: burnus at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36315
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug middle-end/36315] [4.4 Regression] ICE with -fprofile-use (Invalid read of size 8)
2008-05-23 17:10 [Bug middle-end/36315] New: [4.4 Regression] ICE with -fprofile-use (Invalid read of size 8) burnus at gcc dot gnu dot org
@ 2008-05-23 20:45 ` ubizjak at gmail dot com
2008-06-25 12:05 ` rguenth at gcc dot gnu dot org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: ubizjak at gmail dot com @ 2008-05-23 20:45 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from ubizjak at gmail dot com 2008-05-23 20:44 -------
Confirmed with mdbx.f90 source, probably due to:
2008-05-21 Tom Tromey <tromey@redhat.com>
* ggc-zone.c (lookup_page_table_if_allocated): New function.
(zone_find_object_offset): Likewise.
(gt_ggc_m_S): Likewise.
(highest_bit): Likewise.
* ggc-page.c (gt_ggc_m_S): New function.
* stringpool.c (string_stack): Remove.
(init_stringpool): Update.
(ggc_alloc_string): Use ggc_alloc.
(maybe_delete_ident): New function.
(ggc_purge_stringpool): Likewise.
(gt_ggc_m_S): Remove.
* ggc-common.c (ggc_protect_identifiers): New global.
(ggc_mark_roots): Call ggc_purge_stringpool. Use
ggc_protect_identifiers.
* ggc.h (ggc_protect_identifiers): Declare.
(gt_ggc_m_S): Update.
(ggc_purge_stringpool): Declare.
* toplev.c (compile_file): Set and reset ggc_protect_identifiers.
* gengtype.c (write_types_process_field) <TYPE_STRING>: Remove
special case.
(write_root): Cast gt_ggc_m_S to gt_pointer_walker.
--
ubizjak at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tromey at gcc dot gnu dot
| |org
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
GCC target triplet| |x86_64-pc-gnu-linux
Last reconfirmed|0000-00-00 00:00:00 |2008-05-23 20:44:39
date| |
Target Milestone|--- |4.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36315
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug middle-end/36315] [4.4 Regression] ICE with -fprofile-use (Invalid read of size 8)
2008-05-23 17:10 [Bug middle-end/36315] New: [4.4 Regression] ICE with -fprofile-use (Invalid read of size 8) burnus at gcc dot gnu dot org
2008-05-23 20:45 ` [Bug middle-end/36315] " ubizjak at gmail dot com
@ 2008-06-25 12:05 ` rguenth at gcc dot gnu dot org
2008-10-21 12:50 ` jakub at gcc dot gnu dot org
2008-11-03 17:03 ` jakub at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-06-25 12:05 UTC (permalink / raw)
To: gcc-bugs
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36315
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug middle-end/36315] [4.4 Regression] ICE with -fprofile-use (Invalid read of size 8)
2008-05-23 17:10 [Bug middle-end/36315] New: [4.4 Regression] ICE with -fprofile-use (Invalid read of size 8) burnus at gcc dot gnu dot org
2008-05-23 20:45 ` [Bug middle-end/36315] " ubizjak at gmail dot com
2008-06-25 12:05 ` rguenth at gcc dot gnu dot org
@ 2008-10-21 12:50 ` jakub at gcc dot gnu dot org
2008-11-03 17:03 ` jakub at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-10-21 12:50 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from jakub at gcc dot gnu dot org 2008-10-21 12:49 -------
Cannot reproduce this, all I see are some memory leaks reported by valgrind
(going to look at them), but error summary shows no errors.
Can anyone still reproduce this?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36315
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug middle-end/36315] [4.4 Regression] ICE with -fprofile-use (Invalid read of size 8)
2008-05-23 17:10 [Bug middle-end/36315] New: [4.4 Regression] ICE with -fprofile-use (Invalid read of size 8) burnus at gcc dot gnu dot org
` (2 preceding siblings ...)
2008-10-21 12:50 ` jakub at gcc dot gnu dot org
@ 2008-11-03 17:03 ` jakub at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-11-03 17:03 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from jakub at gcc dot gnu dot org 2008-11-03 17:01 -------
Assuming it is fixed, if anyone can still reproduce it, please reopen with
details.
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WORKSFORME
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36315
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-11-03 17:03 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-23 17:10 [Bug middle-end/36315] New: [4.4 Regression] ICE with -fprofile-use (Invalid read of size 8) burnus at gcc dot gnu dot org
2008-05-23 20:45 ` [Bug middle-end/36315] " ubizjak at gmail dot com
2008-06-25 12:05 ` rguenth at gcc dot gnu dot org
2008-10-21 12:50 ` jakub at gcc dot gnu dot org
2008-11-03 17:03 ` jakub at gcc dot gnu dot 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).