Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* GCC internal error, signal 6 ??
@ 1997-10-06 17:56 Kees Cook
  0 siblings, 0 replies; 5+ messages in thread
From: Kees Cook @ 1997-10-06 17:56 UTC (permalink / raw)


I'm running on a 166 UDB, Redhat 4.2 install, 2.0.30 kernel (from RedHat
4.2 kernel-source rpm, tho I recompiled it), latest MILO, gcc 2.7.2.1
(RedHat 4.2 rpm) and I've been trying to compile PGG 2.6.3ii.  Using the
default "linux" entry in the makefile minus the -DASM and the intel ASM
.o's, I get really weird stuff happening.  I'm not even doing this as
superuser.  Once gcc makes it to "crypt.o", it causes VFS errors, and
eventually gcc dies with "gcc:  Internal compiler error: program cc1 got
fatal signal 6":

[cook] /usr/local/encap-src/pgp263ii/src > make alpha-linux
make all CC="gcc" LD=gcc \
CFLAGS="-I../../rsaref/source -I../../rsaref/test  -O6 -g3 -DUNIX -DLINUX -DIDEA32"
make[1]: Entering directory `/usr/local/encap-src/pgp263ii/src'
gcc -I../../rsaref/source -I../../rsaref/test  -O6 -g3 -DUNIX -DLINUX -DIDEA32   -c pgp.c -o pgp.o
gcc -I../../rsaref/source -I../../rsaref/test  -O6 -g3 -DUNIX -DLINUX -DIDEA32   -c crypto.c -o crypto.o
gcc: Internal compiler error: program cc1 got fatal signal 6
make[1]: *** [crypto.o] Error 1
make[1]: Leaving directory `/usr/local/encap-src/pgp263ii/src'
make: *** [alpha-linux] Error 2

And then in my syslog, I find things like this:

Oct  6 11:55:27 kernel: ext2_free_blocks: nonexistent device<1>Unable to handle kernel paging request at virtual address 4857525042000000
Oct  6 11:55:27 kernel: update(293): Oops 0
Oct  6 11:55:27 kernel: pc = [<fffffc000031afa0>] ps = 0000 
Oct  6 11:55:27 kernel: rp = [<fffffc00003393fc>] sp = fffffc00037dde38
Oct  6 11:55:27 kernel: r0=0 r1=48575650411d6998 r2=0 r3=0
Oct  6 11:55:27 kernel: r8=7
Oct  6 11:55:27 kernel: r16=fffffc0000e29670 r17=0 r18=400 r19=0
Oct  6 11:55:27 kernel: r20=1 r21=11ffffb18 r22=3 r23=fffffc00003903dc
Oct  6 11:55:27 kernel: r24=4a082 r25=800 r26=fffffc00003393fc r27=fffffc000031af48
Oct  6 11:55:27 kernel: r28=0 r29=fffffc00004690f0 r30=fffffc00037dde38
Oct  6 11:55:27 kernel: Code: a5dd8cf8  a5bd8378  47ff041f <a4690000> a5290008  e460002d  a4230000  40205521  e4200003 

Other examples:

Oct  6 02:06:15 kernel: iput: inode 18446739675667431384 on device 00:00 still has mappings.

Oct  6 02:25:04 kernel: ext2_free_blocks: nonexistent deviceVFS: iput: trying to free free inode
Oct  6 02:25:04 kernel: VFS: device 81:80, inode 0, mode=00004003

The only device I have mounted is sda3.  (I'm also running automount.)

The other strange thing (may be related, but only gcc on that one file
dies) is that I'm getting uncorrectable machine checks:

Oct  6 09:19:10 kernel: lca: machine check (la=0xfffffc00002084d0,pc=0x120043ffc)
Oct  6 09:19:10 kernel:   Reason: non-correctable ECC error (long frame):
Oct  6 09:19:10 kernel:     reason: 155555e1a69  exc_addr:120043ffc  dc_stat: 7
Oct  6 09:19:10 kernel:     car: 21b01141
Oct  6 09:19:10 kernel:     Uncorrectable write error to memory occurred at address 3d2c590
Oct  6 09:19:10 kernel:  +       0 0000000000000198 0000019800000110
Oct  6 09:19:10 kernel:  +      10 0000000100000088 00000155555e1a69

I've read that this might be due to heat?  I used to have a lot of them,
but I took the case off, and now have a box fan blowing on the MB.  Now I
only get them occasionally.  The machine checks don't seem to be related
to the gcc error (times seem too far apart).  Also, the gcc error is
_repeatable_.  Every time I try to compile that file, it dies with signal
6.  Not always do I get the VFS weirdness, but when I do, it happens
during the compile right before gcc dies.

Does anyone have a guess to whether this is RAM, heat, bad kernel, and/or
bad gcc?

--  
Cornelius "Kees" Cook                           cook@cpoint.net
Senior Systems Operation Manager, Counterpoint Networking, Inc.
http://www.cpoint.net/

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

^ permalink raw reply	[flat|nested] 5+ messages in thread
[parent not found: <19971006125620.17866@cpoint.net>]
* Re: GCC internal error, signal 6 ??
@ 1997-10-07 23:49 Dominik Kubla
  1997-10-08  1:30 ` Michal Jaegermann
  0 siblings, 1 reply; 5+ messages in thread
From: Dominik Kubla @ 1997-10-07 23:49 UTC (permalink / raw)


Try to compile the file with -O2 or less.  I had the same problem
while compiling SSLeay...  Aparently certain optimizations trigger
that behaviour.  I could identify -funroll-loops to be the culprit in
my case. I think that -O6 includes that option.

My recommendation is to never use anything higher than -O for
reliable code.

Dominik Kubla

-- 
The text above represents my personal opinion and does not represent the
official position of my employer on the issue(s) discussed.  Any official
statement by me on behalf of my employer will be marked as such.

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

^ permalink raw reply	[flat|nested] 5+ messages in thread
[parent not found: <199710080130.TAA21664@ellpspace.math.ualberta.ca>]

end of thread, other threads:[~1997-10-08  4:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-10-06 17:56 GCC internal error, signal 6 ?? Kees Cook
     [not found] <19971006125620.17866@cpoint.net>
1997-10-06 18:13 ` Richard Henderson
  -- strict thread matches above, loose matches on Subject: below --
1997-10-07 23:49 Dominik Kubla
1997-10-08  1:30 ` Michal Jaegermann
     [not found] <199710080130.TAA21664@ellpspace.math.ualberta.ca>
1997-10-08  4:02 ` Kees Cook

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox