c/5176: Segmentation fault with undocumented command line option

Andrew Pinski pinskia@physics.uc.edu
Sat Dec 22 08:16:00 GMT 2001


The following reply was made to PR c/5176; it has been noted by GNATS.

From: Andrew Pinski <pinskia@physics.uc.edu>
To: jeff@enborne.demon.co.uk
Cc: gcc-gnats@gcc.gnu.org
Subject: Re: c/5176: Segmentation fault with undocumented command line option
Date: Sat, 22 Dec 2001 11:11:45 -0500

 One thing this should have been reported to Red-Hat and I think there 
 is a
 new version from Red-Hat and it does not crash on the version of I have 
 installed:
 gcc version 3.1 20011221 (experimental)
 gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-85)
 gcc driver version 3.1 20011221 (experimental) executing gcc version 
 3.0.4
 Thanks,
 Andrew Pinski
 
 On Saturday, December 22, 2001, at 09:37 , jeff@enborne.demon.co.uk 
 wrote:
 
 >
 >> Number:         5176
 >> Category:       c
 >> Synopsis:       Segmentation fault with undocumented command line 
 >> option
 >> Confidential:   no
 >> Severity:       non-critical
 >> Priority:       low
 >> Responsible:    unassigned
 >> State:          open
 >> Class:          sw-bug
 >> Submitter-Id:   net
 >> Arrival-Date:   Sat Dec 22 06:46:01 PST 2001
 >> Closed-Date:
 >> Last-Modified:
 >> Originator:     Jeff Goodenough
 >> Release:        gcc version 2.96 20000731 (Red Hat Linux 7.0)
 >> Organization:
 >> Environment:
 > PC Pentium III, LILO dual boot (with Windows 2000).
 > Default installation from CDs supplied with "Red Hat Linux 7 Bible" by 
 > Christopher Negus. IDG Books ISBN 0-7645-4778-X
 >> Description:
 > Initially used an hp makefile which included the (unknown?) option -Ae 
 > on the command line.  Even with simple "Hello world" source, compiler 
 > crashes with segmentation fault.
 >
 > Compiler output (stdout + stderr):
 >
 > cc -I. -Ae  -c hw.c
 > cc: Internal error: Segmentation fault (program cpp0)
 > Please submit a full bug report.
 > See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
 > make: *** [hw.o] Error 1
 >
 > Source (hw.c) is:
 >
 > int main()
 > {
 > 	printf ("Hello world!\n");
 > }
 >
 > Command line is:
 >
 > cc -I. -Ae  -c hw.c
 >
 > (there are no header files, however)
 >> How-To-Repeat:
 > Compile the program with the command line given.
 >> Fix:
 > Remove the -Ae option.
 >
 > Reported because your own documentation says a well-behaved compiler 
 > should not crash with invalid input.
 >> Release-Note:
 >> Audit-Trail:
 >> Unformatted:
 >
 >
 



More information about the Gcc-prs mailing list