* [Bug ada/11581] gnat1 segfaults if it does receive any arguments
2003-07-18 20:22 [Bug ada/11581] New: gnat1 segfaults if it does receive any arguments steven at gcc dot gnu dot org
@ 2003-07-18 20:48 ` pinskia at physics dot uc dot edu
2003-07-19 16:07 ` pinskia at physics dot uc dot edu
` (8 subsequent siblings)
9 siblings, 0 replies; 12+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-07-18 20:48 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11581
------- Additional Comments From pinskia at physics dot uc dot edu 2003-07-18 20:48 -------
This is most likely caused by Neil's patches fo the way options are handled.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug ada/11581] gnat1 segfaults if it does receive any arguments
2003-07-18 20:22 [Bug ada/11581] New: gnat1 segfaults if it does receive any arguments steven at gcc dot gnu dot org
2003-07-18 20:48 ` [Bug ada/11581] " pinskia at physics dot uc dot edu
@ 2003-07-19 16:07 ` pinskia at physics dot uc dot edu
2003-07-20 10:16 ` s dot bosscher at student dot tudelft dot nl
` (7 subsequent siblings)
9 siblings, 0 replies; 12+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-07-19 16:07 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11581
pinskia at physics dot uc dot edu changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
------- Additional Comments From pinskia at physics dot uc dot edu 2003-07-19 16:07 -------
It does not happen to me on powerpc-apple-darwin6.6:
./gnat1 --version
GNU Ada version 3.4 20030719 (experimental) (powerpc-apple-darwin6.6)
compiled by GNU C version 3.4 20030719 (experimental).
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
[zhivago2:src/objdir/gcc] pinskia% ./gnat1
Usage: gnat1 switches sfile
sfile Source file name
-fstack-check Generate stack checking code
-fno-inline Inhibit all inlining (makes executable smaller)
-g Generate debugging information
-Idir Specify source files search path
-I- Do not look for sources in current directory
-O[0123] Control the optimization level
...
Can you try again?
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug ada/11581] gnat1 segfaults if it does receive any arguments
2003-07-18 20:22 [Bug ada/11581] New: gnat1 segfaults if it does receive any arguments steven at gcc dot gnu dot org
2003-07-18 20:48 ` [Bug ada/11581] " pinskia at physics dot uc dot edu
2003-07-19 16:07 ` pinskia at physics dot uc dot edu
@ 2003-07-20 10:16 ` s dot bosscher at student dot tudelft dot nl
2003-07-20 11:57 ` pinskia at physics dot uc dot edu
` (6 subsequent siblings)
9 siblings, 0 replies; 12+ messages in thread
From: s dot bosscher at student dot tudelft dot nl @ 2003-07-20 10:16 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11581
------- Additional Comments From s dot bosscher at student dot tudelft dot nl 2003-07-20 10:16 -------
Subject: Re: gnat1 segfaults if it does receive any
arguments
[steven@steven gcc]$ ./gnat1 --version
GNU Ada version 3.4 20030720 (experimental) (i686-pc-linux-gnu)
compiled by GNU C version 3.4 20030720 (experimental).
GGC heuristics: --param ggc-min-expand=47 --param ggc-min-heapsize=31916
[steven@steven gcc]$ ./gnat1
Segmentation fault
[steven@steven gcc]$
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug ada/11581] gnat1 segfaults if it does receive any arguments
2003-07-18 20:22 [Bug ada/11581] New: gnat1 segfaults if it does receive any arguments steven at gcc dot gnu dot org
` (2 preceding siblings ...)
2003-07-20 10:16 ` s dot bosscher at student dot tudelft dot nl
@ 2003-07-20 11:57 ` pinskia at physics dot uc dot edu
2003-07-24 19:57 ` [Bug ada/11581] [3.4 Regression] " ro at gcc dot gnu dot org
` (5 subsequent siblings)
9 siblings, 0 replies; 12+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-07-20 11:57 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11581
pinskia at physics dot uc dot edu changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2003-07-20 11:57:29
date| |
------- Additional Comments From pinskia at physics dot uc dot edu 2003-07-20 11:57 -------
Looks like it does not effect on powerpc-apple-darwin6.6 for some reason and I do not have an
Ada compiler on i686-pc-linux-gnu to check on this.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug ada/11581] [3.4 Regression] gnat1 segfaults if it does receive any arguments
2003-07-18 20:22 [Bug ada/11581] New: gnat1 segfaults if it does receive any arguments steven at gcc dot gnu dot org
` (3 preceding siblings ...)
2003-07-20 11:57 ` pinskia at physics dot uc dot edu
@ 2003-07-24 19:57 ` ro at gcc dot gnu dot org
2003-07-29 14:01 ` pinskia at physics dot uc dot edu
` (4 subsequent siblings)
9 siblings, 0 replies; 12+ messages in thread
From: ro at gcc dot gnu dot org @ 2003-07-24 19:57 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11581
ro at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ro at techfak dot uni-
| |bielefeld dot de
------- Additional Comments From ro at gcc dot gnu dot org 2003-07-24 19:57 -------
The same problem happens with jc1 and f771 on sparc-sun-solaris2.8. It seems to
happen on all platforms which crash on strlen(NULL).
All crashes show the same stack trace:
#0 0xff1b3200 in strlen () from /usr/lib/libc.so.1
#1 0x00490ff4 in output_file_directive (asm_file=0x879898, input_name=0x0)
at /vol/gnu/src/gcc/gcc-dist/gcc/toplev.c:1403
#2 0x00495e14 in init_asm_output (name=0x657800 "")
at /vol/gnu/src/gcc/gcc-dist/gcc/toplev.c:4077
#3 0x004966ac in lang_dependent_init (name=0x0)
at /vol/gnu/src/gcc/gcc-dist/gcc/toplev.c:4409
#4 0x0049694c in do_compile () at /vol/gnu/src/gcc/gcc-dist/gcc/toplev.c:4517
#5 0x00496a78 in toplev_main (argc=1, argv=0xffbef4cc)
at /vol/gnu/src/gcc/gcc-dist/gcc/toplev.c:4567
In toplev.c (output_file_directive), strlen is called with a NULL input_name.
The fix may be to simply initialize toplev.c (main_input_filename) to <stdin>,
as cppfiles.c does. cc1, cc1plus, and cc1obj are not affected and simply
emit <stdin>.s instead.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug ada/11581] [3.4 Regression] gnat1 segfaults if it does receive any arguments
2003-07-18 20:22 [Bug ada/11581] New: gnat1 segfaults if it does receive any arguments steven at gcc dot gnu dot org
` (4 preceding siblings ...)
2003-07-24 19:57 ` [Bug ada/11581] [3.4 Regression] " ro at gcc dot gnu dot org
@ 2003-07-29 14:01 ` pinskia at physics dot uc dot edu
2003-10-17 18:59 ` [Bug other/11581] [3.4 Regression] gnat1/cc1/jc1/cc1plus/f771 " pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
9 siblings, 0 replies; 12+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-07-29 14:01 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11581
pinskia at physics dot uc dot edu changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|minor |critical
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug other/11581] [3.4 Regression] gnat1/cc1/jc1/cc1plus/f771 segfaults if it does receive any arguments
2003-07-18 20:22 [Bug ada/11581] New: gnat1 segfaults if it does receive any arguments steven at gcc dot gnu dot org
` (5 preceding siblings ...)
2003-07-29 14:01 ` pinskia at physics dot uc dot edu
@ 2003-10-17 18:59 ` pinskia at gcc dot gnu dot org
2003-10-23 14:48 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
9 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-10-17 18:59 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11581
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |segher at kernel dot
| |crashing dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-10-17 18:55 -------
*** Bug 12663 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug other/11581] [3.4 Regression] gnat1/cc1/jc1/cc1plus/f771 segfaults if it does receive any arguments
2003-07-18 20:22 [Bug ada/11581] New: gnat1 segfaults if it does receive any arguments steven at gcc dot gnu dot org
` (6 preceding siblings ...)
2003-10-17 18:59 ` [Bug other/11581] [3.4 Regression] gnat1/cc1/jc1/cc1plus/f771 " pinskia at gcc dot gnu dot org
@ 2003-10-23 14:48 ` pinskia at gcc dot gnu dot org
2003-10-23 15:17 ` Arnaud Charlet
2003-10-23 15:25 ` charlet at act-europe dot fr
2003-10-23 16:35 ` pinskia at gcc dot gnu dot org
9 siblings, 1 reply; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-10-23 14:48 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11581
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |WAITING
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-10-23 14:44 -------
I think this is fixed by:
2003-10-22 Andrew Haley <aph@redhat.com>
* toplev.c (output_file_directive): Allow for null input_name
Can someone try again?
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug other/11581] [3.4 Regression] gnat1/cc1/jc1/cc1plus/f771 segfaults if it does receive any arguments
2003-07-18 20:22 [Bug ada/11581] New: gnat1 segfaults if it does receive any arguments steven at gcc dot gnu dot org
` (7 preceding siblings ...)
2003-10-23 14:48 ` pinskia at gcc dot gnu dot org
@ 2003-10-23 15:25 ` charlet at act-europe dot fr
2003-10-23 16:35 ` pinskia at gcc dot gnu dot org
9 siblings, 0 replies; 12+ messages in thread
From: charlet at act-europe dot fr @ 2003-10-23 15:25 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11581
------- Additional Comments From charlet at act-europe dot fr 2003-10-23 15:17 -------
Subject: Re: [3.4 Regression] gnat1/cc1/jc1/cc1plus/f771 segfaults if it does receive any arguments
> * toplev.c (output_file_directive): Allow for null input_name
>
> Can someone try again?
OK with gnat1
Arno
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug other/11581] [3.4 Regression] gnat1/cc1/jc1/cc1plus/f771 segfaults if it does receive any arguments
2003-07-18 20:22 [Bug ada/11581] New: gnat1 segfaults if it does receive any arguments steven at gcc dot gnu dot org
` (8 preceding siblings ...)
2003-10-23 15:25 ` charlet at act-europe dot fr
@ 2003-10-23 16:35 ` pinskia at gcc dot gnu dot org
9 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-10-23 16:35 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11581
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution| |FIXED
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-10-23 15:25 -------
Fixed for 3.4 by that patch.
^ permalink raw reply [flat|nested] 12+ messages in thread