[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <hr7i9o.m7wtin@lockedbox.net>
From: dan at lockedbox.net (Daniel B)
Subject: gcc: Internal compiler error: program cc1 got fatal signal 11
dan@...ebox dan $ gcc -v
gcc version 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r3, propolice)
dan@...ebox dan $ cat testgcc.c
int main(void)
{
printf("%c","msux"[0xcafebabe]);
}
dan@...ebox dan $ gcc -pedantic -o testgcc testgcc.c
dan@...ebox dan $ ./testgcc
Segmentation fault
dan@...ebox dan $ strace ./testgcc
execve("./testgcc", ["./testgcc"], [/* 40 vars */]) = 0
uname({sys="Linux", node="freebox", ...}) = 0
brk(0) = 0x804a000
open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=53737, ...}) = 0
mmap2(NULL, 53737, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40000000
close(3) = 0
open("/lib/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\300\271"..., 1024) =
1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=1449785, ...}) = 0
mmap2(0x41016000, 1212260, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) =
0x41016000
mprotect(0x41138000, 24420, PROT_NONE) = 0
mmap2(0x41138000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3,
0x121) = 0x41138000
mmap2(0x4113c000, 8036, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4113c000
close(3) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x4000e000
munmap(0x40000000, 53737) = 0
open("/dev/urandom", O_RDONLY) = 3
read(3, "\304\303\25\216w\375V\357\25=\272\224\352\256\307-\222"..., 32) = 32
close(3) = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
dan@...ebox dan $ gdb ./testgcc
GNU gdb 5.3
(gdb) r
Starting program: ./testgcc
Program received signal SIGSEGV, Segmentation fault.
0x0804834d in main ()
(gdb) info stack
#0 0x0804834d in main ()
#1 0x4102b90c in __libc_start_main () from /lib/libc.so.6
Powered by blists - more mailing lists