From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11158 invoked by alias); 4 Apr 2002 01:06:01 -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 11121 invoked by uid 71); 4 Apr 2002 01:06:01 -0000 Date: Wed, 03 Apr 2002 17:06:00 -0000 Message-ID: <20020404010601.11120.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: "Gerwin, Joshua A" Subject: RE: preprocessor/6084: cpp Segmentation Fault Reply-To: "Gerwin, Joshua A" X-SW-Source: 2002-04/txt/msg00267.txt.bz2 List-Id: The following reply was made to PR preprocessor/6084; it has been noted by GNATS. From: "Gerwin, Joshua A" To: "'Neil Booth'" Cc: "'neil@gcc.gnu.org'" , "'gcc-bugs@gcc.gnu.org'", "'joshg@hf.intel.com'" , "'rnesius@ichips.intel.com'" , "Nguyen, Tuan", "'gcc-gnats@gcc.gnu.org'" Subject: RE: preprocessor/6084: cpp Segmentation Fault Date: Wed, 3 Apr 2002 16:57:40 -0800 I bit the bullet, built gdb on the 64-bit solaris 2.7 platform, and here's what I see: (gdb) run -dM -dD ../accessories/hello.c Starting program: /(path/to)/gcc/3.0.3-64/lib/gcc-lib/sparcv9-sun-solaris2/3.0.3/cpp0 -dM -dD ../accessories/hello.c Program received signal SIGSEGV, Segmentation fault. 0xffffffff7f44035c in strlen () from /usr/lib/64/libc.so.1 (gdb) bt #0 0xffffffff7f44035c in strlen () from /usr/lib/64/libc.so.1 #1 0xffffffff7f48d6d4 in _doprnt () from /usr/lib/64/libc.so.1 #2 0xffffffff7f48f180 in fprintf () from /usr/lib/64/libc.so.1 #3 0x100003d28 in maybe_print_line () #4 0x100003e1c in cb_define () #5 0x100004904 in do_define () #6 0x100004778 in run_directive () #7 0x100011d20 in init_builtins () #8 0x100012344 in cpp_start_read () #9 0x100003680 in do_preprocessing () #10 0x10000349c in main () (gdb) > -----Original Message----- > From: Neil Booth [mailto:neil@daikokuya.demon.co.uk] > Sent: Tuesday, April 02, 2002 10:26 PM > To: Gerwin, Joshua A > Cc: 'neil@gcc.gnu.org'; 'gcc-bugs@gcc.gnu.org'; 'joshg@hf.intel.com'; > 'rnesius@ichips.intel.com'; Nguyen, Tuan; 'gcc-gnats@gcc.gnu.org' > Subject: Re: preprocessor/6084: cpp Segmentation Fault > > > So, do you have a backtrace? All you need to do is run the program > cpp0 within GDB, with the command line arguments you gave, and > when it segfaults give the "bt" command. > > Neil. >