Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: [netbsd-5] internal compiler error when building GENERIC
Jukka Salmi --> current-users (2009-02-05 12:27:36 +0100):
[...]
> I can reproduce the problem on a i386 system running a GENERIC kernel
> and binaries from the latest (200902030000Z) netbsd-5 sets available
> from the FTP releng mirrors:
>
> $ uname -a
> NetBSD urchin.salmi.ch 5.0_RC1 NetBSD 5.0_RC1 (GENERIC) #0: Tue Feb 3
> 21:50:42 UTC 2009
> builds%b6.netbsd.org@localhost:/home/builds/ab/netbsd-5/i386/200902030000Z-obj/home/builds/ab/netbsd-5/src/sys/arch/i386/compile/GENERIC
> i386
>
> $ mkdep -f uvm_km.d -- /usr/src/sys/uvm/uvm_km.c
> cc1: internal compiler error: Segmentation fault
> Please submit a full bug report,
> with preprocessed source if appropriate.
> See <URL:http://www.NetBSD.org/Misc/send-pr.html> for instructions.
> mkdep: compile failed.
Ok, this was just a permission problem: cc1 was not allowed to read uvm_km.c.
I wonder why I didn't notice this earlier...
However, cc1 shouldn't fail. Is anybody able to reproduce this (on current
or netbsd-5)?
$ cd /tmp && touch test.c
$ sudo chown 0:0 test.c
$ sudo chmod 600 test.c
$ gcc test.c
cc1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.NetBSD.org/Misc/send-pr.html> for instructions.
A tracing of the process shows:
[...]
3730 1 cc1 CALL open(0xbb93d3b8,4,0x1b6)
3730 1 cc1 NAMI "test.c"
3730 1 cc1 RET open -1 errno 13 Permission denied
3730 1 cc1 CALL issetugid
3730 1 cc1 RET issetugid 0
3730 1 cc1 CALL issetugid
3730 1 cc1 RET issetugid 0
3730 1 cc1 CALL open(0xbfbfd9c8,0,0xbfbfd934)
3730 1 cc1 NAMI "/usr/share/nls/nls.alias.db"
3730 1 cc1 RET open -1 errno 2 No such file or directory
3730 1 cc1 CALL open(0xbbbcbb2f,0,0xbfbfd998)
3730 1 cc1 NAMI "/usr/share/nls/nls.alias"
3730 1 cc1 RET open 3
3730 1 cc1 CALL fcntl(3,2,1)
3730 1 cc1 RET fcntl 0
3730 1 cc1 CALL __fstat30(3,0xbfbfd928)
3730 1 cc1 RET __fstat30 0
3730 1 cc1 CALL mmap(0,0x5f0,1,2,3,0,0,0)
3730 1 cc1 RET mmap -1146130432/0xbbaf7000
3730 1 cc1 CALL close(3)
3730 1 cc1 RET close 0
3730 1 cc1 CALL munmap(0xbbaf7000,0x5f0)
3730 1 cc1 RET munmap 0
3730 1 cc1 CALL open(0xbfbfde47,0,0xbfbfddb8)
3730 1 cc1 NAMI "/usr/share/nls/C/libc.cat"
3730 1 cc1 RET open 3
3730 1 cc1 CALL __fstat30(3,0xbfbfddb8)
3730 1 cc1 RET __fstat30 0
3730 1 cc1 CALL mmap(0,0x10be,1,1,3,0,0,0)
3730 1 cc1 RET mmap -1146134528/0xbbaf6000
3730 1 cc1 CALL close(3)
3730 1 cc1 RET close 0
3730 1 cc1 CALL munmap(0xbbaf6000,0x10be)
3730 1 cc1 RET munmap 0
3730 1 cc1 PSIG SIGSEGV caught handler=0x8121d7c mask=(11):
code=SEGV_MAPERR, addr=0x8, trap=6)
3730 1 cc1 CALL
__sigaction_sigtramp(SIGSEGV,0xbfbfe280,0xbfbfe268,0xbbb6c1d0,2)
3730 1 cc1 RET __sigaction_sigtramp 0
[...]
Regards, Jukka
--
bashian roulette:
$ ((RANDOM%6)) || rm -rf ~
Home |
Main Index |
Thread Index |
Old Index