From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25021 invoked by alias); 22 Dec 2001 14:46:02 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 24999 invoked by uid 71); 22 Dec 2001 14:46:01 -0000 Resent-Date: 22 Dec 2001 14:46:01 -0000 Resent-Message-ID: <20011222144601.24997.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-To: nobody@gcc.gnu.org Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, jeff@enborne.demon.co.uk Received:(qmail 24132 invoked by uid 61); 22 Dec 2001 14:37:25 -0000 Message-Id:<20011222143725.24131.qmail@sources.redhat.com> Date: Sat, 22 Dec 2001 06:46:00 -0000 From: jeff@enborne.demon.co.uk Reply-To: jeff@enborne.demon.co.uk To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version:gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: c/5176: Segmentation fault with undocumented command line option X-SW-Source: 2001-12/txt/msg01067.txt.bz2 List-Id: >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 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: