public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/21902] New: ICE in build_array_type, at tree.c:4581
@ 2005-06-03 18:24 schnetter at aei dot mpg dot de
2005-06-03 18:25 ` [Bug fortran/21902] " schnetter at aei dot mpg dot de
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: schnetter at aei dot mpg dot de @ 2005-06-03 18:24 UTC (permalink / raw)
To: gcc-bugs
The attached source code leads to the error message
internal compiler error: tree check: expected class 'type', have
'declaration' (label_decl) in build_array_type, at tree.c:4581
when compiled with GNU Fortran 95 (GCC 4.1.0 20050603 (experimental))
/home/eschnett/gcc/bin/gfortran -ftrapv -march=pentium4 -malign-double -g3
-Wall -Wshadow -c -o driftcorrect.F90.o driftcorrect.f90
--
Summary: ICE in build_array_type, at tree.c:4581
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: schnetter at aei dot mpg dot de
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21902
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/21902] ICE in build_array_type, at tree.c:4581
2005-06-03 18:24 [Bug fortran/21902] New: ICE in build_array_type, at tree.c:4581 schnetter at aei dot mpg dot de
@ 2005-06-03 18:25 ` schnetter at aei dot mpg dot de
2005-06-04 23:15 ` schnetter at aei dot mpg dot de
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: schnetter at aei dot mpg dot de @ 2005-06-03 18:25 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From schnetter at aei dot mpg dot de 2005-06-03 18:25 -------
Created an attachment (id=9022)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9022&action=view)
Failing gzipped source code
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21902
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/21902] ICE in build_array_type, at tree.c:4581
2005-06-03 18:24 [Bug fortran/21902] New: ICE in build_array_type, at tree.c:4581 schnetter at aei dot mpg dot de
2005-06-03 18:25 ` [Bug fortran/21902] " schnetter at aei dot mpg dot de
@ 2005-06-04 23:15 ` schnetter at aei dot mpg dot de
2005-06-05 6:48 ` pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: schnetter at aei dot mpg dot de @ 2005-06-04 23:15 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From schnetter at aei dot mpg dot de 2005-06-04 23:15 -------
I tried to reduce the failing source code, but failed to achieve much.
Depending on what lines I remove, the error changes, sometimes turning into a
bare "segmentation fault". Even renaming the source file can make the error
go away.
With a different source file (much smaller; attached) and such a bare
segmentation fault, I get the following stack backtrace from valgrind:
$ valgrind --log-file=gfortran --trace-children=yes ~/gcc/bin/gfortran -c
transform_global.f90
/home/eschnett/Calpha/Cactus/arrangements/LSUDevelopment/HyperGR_MoL/src/transform_global.F90:
In function 'local2global':
/home/eschnett/Calpha/Cactus/arrangements/LSUDevelopment/HyperGR_MoL/src/transform_global.F90:112:
internal compiler error: Segmentation fault
==28630== My PID = 28630, parent PID = 28629. Prog and args are:
==28630== /home/eschnett/gcc/libexec/gcc/i686-pc-linux-gnu/4.1.0/f951
==28630== transform_global.f90
==28630== -quiet
==28630== -dumpbase
==28630== transform_global.f90
==28630== -mtune=pentiumpro
==28630== -auxbase
==28630== transform_global
==28630== -o
==28630== /tmp/ccT8xxXE.s
==28630== For more details, rerun with: -v
==28630==
==28630== Invalid read of size 4
==28630== at 0x8099EDE: gfc_conv_scalarized_array_ref (trans-array.c:1578)
==28630== by 0x8099F9F: gfc_conv_array_ref (trans-array.c:1622)
==28630== by 0x80A6912: gfc_conv_variable (trans-expr.c:420)
==28630== by 0x80B20DC: set_string (trans-io.c:403)
==28630== by 0x80B38E2: build_dt (trans-io.c:1066)
==28630== by 0x80B3A22: gfc_trans_write (trans-io.c:1188)
==28630== by 0x80970E4: gfc_trans_code (trans.c:595)
==28630== by 0x80B4B43: gfc_trans_if_1 (trans-stmt.c:423)
==28630== by 0x809702E: gfc_trans_code (trans.c:547)
==28630== by 0x80B4B03: gfc_trans_if_1 (trans-stmt.c:413)
==28630== by 0x80B4B54: gfc_trans_if_1 (trans-stmt.c:427)
==28630== by 0x809702E: gfc_trans_code (trans.c:547)
==28630== Address 0xC4 is not stack'd, malloc'd or (recently) free'd
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21902
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/21902] ICE in build_array_type, at tree.c:4581
2005-06-03 18:24 [Bug fortran/21902] New: ICE in build_array_type, at tree.c:4581 schnetter at aei dot mpg dot de
2005-06-03 18:25 ` [Bug fortran/21902] " schnetter at aei dot mpg dot de
2005-06-04 23:15 ` schnetter at aei dot mpg dot de
@ 2005-06-05 6:48 ` pinskia at gcc dot gnu dot org
2005-06-05 18:07 ` schnetter at aei dot mpg dot de
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-06-05 6:48 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-06-05 06:48 -------
Note I started to reduce this and removed a whole function or two and was able to reduce further but I
stoped because I ran out of time.
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-on-valid-code
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21902
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/21902] ICE in build_array_type, at tree.c:4581
2005-06-03 18:24 [Bug fortran/21902] New: ICE in build_array_type, at tree.c:4581 schnetter at aei dot mpg dot de
` (2 preceding siblings ...)
2005-06-05 6:48 ` pinskia at gcc dot gnu dot org
@ 2005-06-05 18:07 ` schnetter at aei dot mpg dot de
2005-06-05 19:29 ` schnetter at aei dot mpg dot de
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: schnetter at aei dot mpg dot de @ 2005-06-05 18:07 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From schnetter at aei dot mpg dot de 2005-06-05 18:07 -------
Created an attachment (id=9034)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9034&action=view)
Failing source code
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21902
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/21902] ICE in build_array_type, at tree.c:4581
2005-06-03 18:24 [Bug fortran/21902] New: ICE in build_array_type, at tree.c:4581 schnetter at aei dot mpg dot de
` (3 preceding siblings ...)
2005-06-05 18:07 ` schnetter at aei dot mpg dot de
@ 2005-06-05 19:29 ` schnetter at aei dot mpg dot de
2005-06-07 23:46 ` reichelt at gcc dot gnu dot org
2005-06-18 20:17 ` fxcoudert at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: schnetter at aei dot mpg dot de @ 2005-06-05 19:29 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From schnetter at aei dot mpg dot de 2005-06-05 19:29 -------
This segmentation fault seems to be caused by the combination of the
declaration
character :: msg(100)
and the statement
write (msg, '("Error in call to GESV, info=",i2)') info
Note that the declaration declares an array of 100 strings, each one character
long. (This is not what I intended.)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21902
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/21902] ICE in build_array_type, at tree.c:4581
2005-06-03 18:24 [Bug fortran/21902] New: ICE in build_array_type, at tree.c:4581 schnetter at aei dot mpg dot de
` (4 preceding siblings ...)
2005-06-05 19:29 ` schnetter at aei dot mpg dot de
@ 2005-06-07 23:46 ` reichelt at gcc dot gnu dot org
2005-06-18 20:17 ` fxcoudert at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2005-06-07 23:46 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From reichelt at gcc dot gnu dot org 2005-06-07 23:46 -------
This seems to be a duplicate of our famous bug PR 15966.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21902
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/21902] ICE in build_array_type, at tree.c:4581
2005-06-03 18:24 [Bug fortran/21902] New: ICE in build_array_type, at tree.c:4581 schnetter at aei dot mpg dot de
` (5 preceding siblings ...)
2005-06-07 23:46 ` reichelt at gcc dot gnu dot org
@ 2005-06-18 20:17 ` fxcoudert at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2005-06-18 20:17 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From fxcoudert at gcc dot gnu dot org 2005-06-18 20:17 -------
Yes it is (same backtrace and all). Well, PR15966 was GCC's most reported bug,
but this was an ex aequo. Now, it's be a not-for-share gold medal.
*** This bug has been marked as a duplicate of 15966 ***
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21902
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2005-06-18 20:17 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-03 18:24 [Bug fortran/21902] New: ICE in build_array_type, at tree.c:4581 schnetter at aei dot mpg dot de
2005-06-03 18:25 ` [Bug fortran/21902] " schnetter at aei dot mpg dot de
2005-06-04 23:15 ` schnetter at aei dot mpg dot de
2005-06-05 6:48 ` pinskia at gcc dot gnu dot org
2005-06-05 18:07 ` schnetter at aei dot mpg dot de
2005-06-05 19:29 ` schnetter at aei dot mpg dot de
2005-06-07 23:46 ` reichelt at gcc dot gnu dot org
2005-06-18 20:17 ` fxcoudert 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).