Subject: port-powerpc/19897: Another powerpc SIGILL
To: None <gnats-bugs@gnats.netbsd.org>
From: None <schmonz@netbsd.org>
List: netbsd-bugs
Date: 01/18/2003 04:48:44
>Number:         19897
>Category:       port-powerpc
>Synopsis:       Another powerpc SIGILL
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    port-powerpc-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jan 17 20:45:00 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Amitai Schlair
>Release:        NetBSD 1.6L
>Organization:
Schmonz Enterprises
>Environment:
NetBSD xtinag3.xtina.schmonz.com 1.6L NetBSD 1.6L (XTINAG3) #32: Sun Jan 12 08:23:27 EST 2003     schmonz@xtinag3.xtina.schmonz.com:/home/schmonz/netbsd/src/sys/arch/macppc/compile/XTINAG3 macppc
>Description:
With a system built from Jan. 11 source (after both of the powerpc
dynamic linking fixes) I got a SIGILL-induced core dump from /bin/sh
while building KDE3 from pkgsrc. I occasionally find that a daemon
or two has died, leaving a core dump in /.
>How-To-Repeat:
$ cd ~/netbsd/pkgsrc/x11/kde3
$ make install
[...]
gmake[2]: Leaving directory `/home/schmonz/netbsd/pkgsrc/x11/kdelibs3/work.xtinag3/kdelibs-3.0.5a/kio'
Making all in kioslave
[1]   Illegal instruction (core dumped) (cd ${subdir} &&...
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/home/schmonz/netbsd/pkgsrc/x11/kdelibs3/work.xtinag3/kdelibs-3.0.5a'
gmake: *** [all] Error 2
*** Error code 2

Stop.
make: stopped in /home/schmonz/netbsd/pkgsrc/x11/kdelibs3
*** Error code 1

Stop.
make: stopped in /home/schmonz/netbsd/pkgsrc/x11/kdelibs3
*** Error code 1

Stop.
make: stopped in /home/schmonz/netbsd/pkgsrc/x11/kdelibs3
*** Error code 1

Stop.
make: stopped in /home/schmonz/netbsd/pkgsrc/x11/kdebase3
*** Error code 1

Stop.
make: stopped in /home/schmonz/netbsd/pkgsrc/x11/kdebase3
*** Signal 4

Stop.
>Fix:
None known, but here's some gdb output as requested by gimpy:

$ gdb sh ../kdelibs3/work.xtinag3/kdelibs-3.0.5a/sh.core
GNU gdb 5.0nb1
Copyright 2000 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "powerpc--netbsd"...(no debugging symbols found)...
Core was generated by `sh'.
Program terminated with signal 4, Illegal instruction.
Reading symbols from /libexec/ld.elf_so...(no debugging symbols found)...done.
Loaded symbols for /libexec/ld.elf_so
Reading symbols from /lib/libedit.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libedit.so.2
Reading symbols from /lib/libtermcap.so.0...(no debugging symbols found)...done.
Loaded symbols for /lib/libtermcap.so.0
Reading symbols from /lib/libc.so.12...(no debugging symbols found)...done.
Loaded symbols for /lib/libc.so.12
#0  0x4183a6c8 in cache_sh () from /libexec/ld.elf_so
(gdb) bt
#0  0x4183a6c8 in cache_sh () from /libexec/ld.elf_so
#1  0x4183450c in _rtld_find_symdef () from /libexec/ld.elf_so
#2  0x41832be0 in _rtld_bind () from /libexec/ld.elf_so
#3  0x41832858 in _rtld_bind_start () from /libexec/ld.elf_so
#4  0x18032b8 in get_alias_text ()
#5  0x1802860 in get_alias_text ()
#6  0x1805964 in get_alias_text ()
#7  0x1804378 in get_alias_text ()
#8  0x18041fc in get_alias_text ()
#9  0x18048a0 in get_alias_text ()
#10 0x1804294 in get_alias_text ()
#11 0x1804230 in get_alias_text ()
#12 0x18042e0 in get_alias_text ()
#13 0x1804604 in get_alias_text ()
#14 0x1804308 in get_alias_text ()
#15 0x18042e0 in get_alias_text ()
#16 0x18041d8 in get_alias_text ()
#17 0x18041d8 in get_alias_text ()
#18 0x180411c in get_alias_text ()
#19 0x180fa30 in main ()
#20 0x1801b8c in _init ()
#21 0x41832828 in _rtld_start () from /libexec/ld.elf_so
(gdb) x/i $pc
0x4183a6c8 <cache_sh+744>:      blrl
(gdb) info shared
>From        To          Syms Read   Shared Object Library
0x41830000  0x4183ae18  Yes         /libexec/ld.elf_so
0x41843000  0x41871a68  Yes         /lib/libedit.so.2
0x41872000  0x418848bc  Yes         /lib/libtermcap.so.0
0x41885000  0x4195b438  Yes         /lib/libc.so.12
>Release-Note:
>Audit-Trail:
>Unformatted: