Subject: Random SIGILLs (was Re: bad kernel news)
To: Matt Thomas <matt@3am-software.com>
From: Dave Huang <khym@azeotrope.org>
List: port-macppc
Date: 12/16/2004 13:21:11
On Thu, Dec 16, 2004 at 06:57:41AM -0800, Matt Thomas wrote:
> Can you do 'sysctl -w machdep.printfataltraps=1'?
> I'd be interested in knowing where these crash.  Can you look at the
> cores?

Sure... I guess machdep.printfataltraps prints the "trap:" line?:

trap: pid 15734.1 (sh): user PGM trap @ 0x41984d7c (SRR1=0x8d032)
pid 15734 (sh), uid 0: exited on signal 4 (core dumped)

BTW, I had said that running build.sh without -j seemed to work okay,
but I did eventually get a SIGILL later on in the process.

greyfox /usr/src.local/tools/m4# gdb /bin/sh sh.core
GNU gdb 5.3nb1
Copyright 2002 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  0x41984d7c in ?? () from /lib/libc.so.12
(gdb) where
#0  0x41984d7c in ?? () from /lib/libc.so.12
#1  0x0180e224 in forkshell ()
#2  0x018046d4 in evalbackcmd ()
#3  0x01808364 in expbackq ()
#4  0x01807bf4 in argstr ()
#5  0x018078c8 in expandarg ()
#6  0x01804c2c in evalcommand ()
#7  0x01803cac in evaltree ()
#8  0x01803c68 in evaltree ()
#9  0x01803c4c in evaltree ()
#10 0x01803c4c in evaltree ()
#11 0x01803d30 in evaltree ()
#12 0x0180f978 in cmdloop ()
#13 0x0180f64c in main ()
#14 0x01801958 in _start ()
#15 0x41833538 in ?? () from /libexec/ld.elf_so

The output of build.sh contains:
obj ===> tools/m4
--- obj-lib ---
--- obj ---
--- obj-libmenu ---
obj ===> lib/libmenu
--- obj-gnu ---
--- obj ---
--- obj-libuucp ---
obj ===> gnu/libexec/uucp/libuucp
--- obj-tools ---
--- obj ---
[1]   Illegal instruction (core dumped) /bin/pwd
#    objdir  /obj.macppc
--- obj-lib ---
--- obj ---
--- obj-tools ---
mkdir: /obj.macppc: File exists
*** [obj] Error code 1
1 error

nbmake: stopped in /usr/src.local/tools/m4
*** [obj-m4] Error code 2
1 error

nbmake: stopped in /usr/src.local/tools
*** [obj-tools] Error code 2

My system is a Dual G4 500MHz, running a 2.99.11 kernel from 12/15 and
2.0 userland.
-- 
Name: Dave Huang         |  Mammal, mammal / their names are called /
INet: khym@azeotrope.org |  they raise a paw / the bat, the cat /
FurryMUCK: Dahan         |  dolphin and dog / koala bear and hog -- TMBG
Dahan: Hani G Y+C 29 Y++ L+++ W- C++ T++ A+ E+ S++ V++ F- Q+++ P+ B+ PA+ PL++