public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/20934] New: [4.1 Regression] Segmentation fault in gnat1
@ 2005-04-10 20:47 danglin at gcc dot gnu dot org
2005-04-10 20:49 ` [Bug middle-end/20934] " pinskia at gcc dot gnu dot org
` (8 more replies)
0 siblings, 9 replies; 10+ messages in thread
From: danglin at gcc dot gnu dot org @ 2005-04-10 20:47 UTC (permalink / raw)
To: gcc-bugs
stage1/xgcc -Bstage1/ -B/home/dave/opt/gnu/gcc/gcc-4.1.0/hppa-linux/bin/ -c -g -
O2 -gnatpg -gnata -I- -I. -Iada -I../../gcc/gcc/ada ../../gcc/gcc/ada/ada.a
ds -o ada/ada.o
+===========================GNAT BUG DETECTED==============================+
| 4.1.0 20050410 (experimental) (hppa-unknown-linux-gnu) Segmentation fault|
| Error detected at ada.ads:17:1 |
| Please submit a bug report; see http://gcc.gnu.org/bugs.html. |
| Use a subject line meaningful to you and us to track the bug. |
| Include the entire contents of this bug box in the report. |
| Include the exact gcc or gnatmake command that you entered. |
| Also include sources listed below in gnatchop format |
| (concatenated together with no headers between files). |
+==========================================================================+
This is the backtrace:
Program received signal SIGSEGV, Segmentation fault.
0x008bdd88 in in_unlikely_text_section () at ../../gcc/gcc/varasm.c:309
309 ret_val = ((in_section == in_unlikely_executed_text)
(gdb) bt
#0 0x008bdd88 in in_unlikely_text_section () at ../../gcc/gcc/varasm.c:309
#1 0x008be220 in named_section_real (name=0xaa8900 ".debug_info", flags=1024,
decl=0x0) at ../../gcc/gcc/varasm.c:444
#2 0x0060a640 in output_comp_unit (die=0x4000b150, output_if_empty=0)
at ../../gcc/gcc/dwarf2out.c:7108
#3 0x0062229c in dwarf2out_finish (
filename=0xbff0007c "../../gcc/gcc/ada/ada.ads")
at ../../gcc/gcc/dwarf2out.c:13916
#4 0x00880d78 in compile_file () at ../../gcc/gcc/toplev.c:1038
#5 0x00883c1c in do_compile () at ../../gcc/gcc/toplev.c:2120
#6 0x00883cc0 in toplev_main (argc=15, argv=0xbff005d4)
at ../../gcc/gcc/toplev.c:2152
#7 0x003ff3dc in main (argc=15, argv=0xbff005d4) at ../../gcc/gcc/main.c:35
0x008bdd84 <in_unlikely_text_section+160>: ldw c(,r3),r19
0x008bdd88 <in_unlikely_text_section+164>: ldw ec(,r19),r19
0x008bdd8c <in_unlikely_text_section+168>: cmpib,=,n 0,r19,0x8bddbc <
in_unlikely_text_section+216>
(gdb) p/x $r19
$4 = 0x0
(gdb) p cfun
$5 = (struct function *) 0x0
(gdb) p in_section
$6 = in_named
It looks as if we need a check on cfun:
309 ret_val = ((in_section == in_unlikely_executed_text)
310 || (in_section == in_named
311 && cfun->unlikely_text_section_name
312 && strcmp (in_named_name,
313 cfun->unlikely_text_section_name) == 0));
--
Summary: [4.1 Regression] Segmentation fault in gnat1
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: middle-end
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: danglin at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: hppa-unknown-linux-gnu
GCC host triplet: hppa-unknown-linux-gnu
GCC target triplet: hppa-unknown-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20934
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/20934] [4.1 Regression] Segmentation fault in gnat1
2005-04-10 20:47 [Bug middle-end/20934] New: [4.1 Regression] Segmentation fault in gnat1 danglin at gcc dot gnu dot org
@ 2005-04-10 20:49 ` pinskia at gcc dot gnu dot org
2005-04-10 20:51 ` pinskia at gcc dot gnu dot org
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-04-10 20:49 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |ctice at apple dot com
Keywords| |build, ice-on-valid-code
Target Milestone|--- |4.1.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20934
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/20934] [4.1 Regression] Segmentation fault in gnat1
2005-04-10 20:47 [Bug middle-end/20934] New: [4.1 Regression] Segmentation fault in gnat1 danglin at gcc dot gnu dot org
2005-04-10 20:49 ` [Bug middle-end/20934] " pinskia at gcc dot gnu dot org
@ 2005-04-10 20:51 ` pinskia at gcc dot gnu dot org
2005-04-10 20:53 ` dave at hiauly1 dot hia dot nrc dot ca
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-04-10 20:51 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-04-10 20:51 -------
This might also be the failure which Diego is seeing with libjava building:
http://gcc.gnu.org/ml/gcc-patches/2005-04/msg01050.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20934
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/20934] [4.1 Regression] Segmentation fault in gnat1
2005-04-10 20:47 [Bug middle-end/20934] New: [4.1 Regression] Segmentation fault in gnat1 danglin at gcc dot gnu dot org
2005-04-10 20:49 ` [Bug middle-end/20934] " pinskia at gcc dot gnu dot org
2005-04-10 20:51 ` pinskia at gcc dot gnu dot org
@ 2005-04-10 20:53 ` dave at hiauly1 dot hia dot nrc dot ca
2005-04-11 1:52 ` pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: dave at hiauly1 dot hia dot nrc dot ca @ 2005-04-10 20:53 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From dave at hiauly1 dot hia dot nrc dot ca 2005-04-10 20:53 -------
Subject: Re: [4.1 Regression] Segmentation fault in gnat1
> This might also be the failure which Diego is seeing with libjava building:
> http://gcc.gnu.org/ml/gcc-patches/2005-04/msg01050.html
I think this started yesterday. In any event, a build yesterday evening
failed the same way.
Dave
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20934
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/20934] [4.1 Regression] Segmentation fault in gnat1
2005-04-10 20:47 [Bug middle-end/20934] New: [4.1 Regression] Segmentation fault in gnat1 danglin at gcc dot gnu dot org
` (2 preceding siblings ...)
2005-04-10 20:53 ` dave at hiauly1 dot hia dot nrc dot ca
@ 2005-04-11 1:52 ` pinskia at gcc dot gnu dot org
2005-04-11 3:52 ` kazu at cs dot umass dot edu
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-04-11 1:52 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-04-11 01:52 -------
Created an attachment (id=8582)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8582&action=view)
Hot/Cold patch
Patch by David which was attached to the wrong bug.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20934
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/20934] [4.1 Regression] Segmentation fault in gnat1
2005-04-10 20:47 [Bug middle-end/20934] New: [4.1 Regression] Segmentation fault in gnat1 danglin at gcc dot gnu dot org
` (3 preceding siblings ...)
2005-04-11 1:52 ` pinskia at gcc dot gnu dot org
@ 2005-04-11 3:52 ` kazu at cs dot umass dot edu
2005-04-11 12:44 ` pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: kazu at cs dot umass dot edu @ 2005-04-11 3:52 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From kazu at cs dot umass dot edu 2005-04-11 03:52 -------
This patch fixes bootstrap failure on i686-pc-linux-gnu.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |kazu at cs dot umass dot edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20934
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/20934] [4.1 Regression] Segmentation fault in gnat1
2005-04-10 20:47 [Bug middle-end/20934] New: [4.1 Regression] Segmentation fault in gnat1 danglin at gcc dot gnu dot org
` (4 preceding siblings ...)
2005-04-11 3:52 ` kazu at cs dot umass dot edu
@ 2005-04-11 12:44 ` pinskia at gcc dot gnu dot org
2005-04-11 17:24 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-04-11 12:44 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-04-11 12:44 -------
*** Bug 20942 has been marked as a duplicate of this bug. ***
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |grigory dot zagorodnev at
| |intel dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20934
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/20934] [4.1 Regression] Segmentation fault in gnat1
2005-04-10 20:47 [Bug middle-end/20934] New: [4.1 Regression] Segmentation fault in gnat1 danglin at gcc dot gnu dot org
` (5 preceding siblings ...)
2005-04-11 12:44 ` pinskia at gcc dot gnu dot org
@ 2005-04-11 17:24 ` pinskia at gcc dot gnu dot org
2005-04-11 19:05 ` pinskia at gcc dot gnu dot org
2005-04-15 15:56 ` pinskia at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-04-11 17:24 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-04-11 17:24 -------
Created an attachment (id=8594)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8594&action=view)
patch which Caroline sent me to attach
"I mistakenly assumed that if current_function_decl
was defined, then the decl would always have a function struct attached to it;
also that when
we were writing out debug information, current_function_decl would be defined."
--
What |Removed |Added
----------------------------------------------------------------------------
Attachment #8582 is|0 |1
obsolete| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20934
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/20934] [4.1 Regression] Segmentation fault in gnat1
2005-04-10 20:47 [Bug middle-end/20934] New: [4.1 Regression] Segmentation fault in gnat1 danglin at gcc dot gnu dot org
` (6 preceding siblings ...)
2005-04-11 17:24 ` pinskia at gcc dot gnu dot org
@ 2005-04-11 19:05 ` pinskia at gcc dot gnu dot org
2005-04-15 15:56 ` pinskia at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-04-11 19:05 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-04-11 19:05 -------
Created an attachment (id=8595)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8595&action=view)
new patch which Caroline sent me to attach
Apparently there were two typo's in the patch I sent to you,
both in dwarf2out.c:
dwarf2out.c line 6816: 'internal_eror' should be 'internal_error'
dwarf2out.c line 7671: 'cfun = = NULL' should be 'cfun = NULL'
Attached is a patch with these two lines corrected.
--
What |Removed |Added
----------------------------------------------------------------------------
Attachment #8594 is|0 |1
obsolete| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20934
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug middle-end/20934] [4.1 Regression] Segmentation fault in gnat1
2005-04-10 20:47 [Bug middle-end/20934] New: [4.1 Regression] Segmentation fault in gnat1 danglin at gcc dot gnu dot org
` (7 preceding siblings ...)
2005-04-11 19:05 ` pinskia at gcc dot gnu dot org
@ 2005-04-15 15:56 ` pinskia at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-04-15 15:56 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-04-15 15:56 -------
Fixed by reverting the patch which caused this.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20934
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2005-04-15 15:56 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-10 20:47 [Bug middle-end/20934] New: [4.1 Regression] Segmentation fault in gnat1 danglin at gcc dot gnu dot org
2005-04-10 20:49 ` [Bug middle-end/20934] " pinskia at gcc dot gnu dot org
2005-04-10 20:51 ` pinskia at gcc dot gnu dot org
2005-04-10 20:53 ` dave at hiauly1 dot hia dot nrc dot ca
2005-04-11 1:52 ` pinskia at gcc dot gnu dot org
2005-04-11 3:52 ` kazu at cs dot umass dot edu
2005-04-11 12:44 ` pinskia at gcc dot gnu dot org
2005-04-11 17:24 ` pinskia at gcc dot gnu dot org
2005-04-11 19:05 ` pinskia at gcc dot gnu dot org
2005-04-15 15:56 ` pinskia 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).