🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #41749

Re: fatal signal bug

#41749
From: Dean Schulze
Date: Thu, 22 Feb 1996 00:00
46 lines
1864 bytes
    Ferdinand de Boevere writes:

>Compiling the next code (fatal.c):

>    main()
>    {
>        void *test(void)
>        {
>            printf("test\n");
>                return test;       
>        }
>        void *test(void);
>    }

>gives:

>    cc: Internal compiler error: program cc1 got fatal signal 11

>...

>Testing this code on another Linux computer shows that is probably
>not a hardware problem.

>A gcc-compiler (2.5.3) on the HP/UX platform did also exit with 
>fatal signal:

>    fatal.c: In function `main':
>    fatal.c:10: internal error--unrecognizable insn:
>    (insn 28 26 29 (set (reg:SI 109)
>            (nil)) -1 (nil)
>        (nil))
>    gcc: Internal compiler error: program cc1 got fatal signal 6

>This makes me conclude that it is a compiler bug.


    I have confirmed this problem on my Linux system (Pentium, v1.2.13,
gcc v2.7.0) and on a Sun SPARCStation IPX (SunOS v4.1.x, gcc v2.3.3).

    Signal 11 is SIGSEGV (on my Linux system), so it looks like gcc has
a pointer problem for at least versions 2.3.3, 2.5.3, and 2.7.0.

    Do the GCC developers test their code with any of the Q/A tools
that are available (i.e. Insure++, Purify, etc.) ?

Dean Schulze
Technical Details
Message-ID: <4giljo$qsi@news.ccit.arizona.edu>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <4g873q$cf9@oege.htsa.hva.nl> <4gikiv$qsi@news.ccit.arizona.edu>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,e77bf10583124758
X-Google-Attributes: gid11318c,public
X-Google-Thread: 1103af,a70465ce3621e978,start
X-Google-Attributes: gid1103af,public
From: schulze@lpl.arizona.edu (Dean Schulze)
Subject: Re: fatal signal bug
Date: 1996/02/22
Message-ID: <4giljo$qsi@news.ccit.arizona.edu>
X-Deja-AN: 140639114
distribution: world
references: <4g873q$cf9@oege.htsa.hva.nl> <4gikiv$qsi@news.ccit.arizona.edu>
organization: Lunar and Planetary Laboratory - West
reply-to: schulze@asgard.lpl.arizona.edu
newsgroups: gnu.gcc.help,comp.os.linux.misc