Subject: kern/2696: Solaris 2.4 DOOM is able to panic NetBSD-current
To: None <gnats-bugs@NetBSD.ORG>
From: Brad Spencer <brad@anduin.eldar.org>
List: netbsd-bugs
Date: 08/13/1996 19:31:01
>Number:         2696
>Category:       kern
>Synopsis:       Solaris 2.4 DOOM is able to panic NetBSD-current
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Aug 13 19:50:02 1996
>Last-Modified:
>Originator:     Brad Spencer
>Organization:
	My living room
>Release:        1.2_BETA
>Environment:
	
System: NetBSD elrond.eldar.org 1.2_BETA NetBSD 1.2_BETA (ELROND) #17: Wed Aug  7 23:10:48 EDT 1996     brad@elrond.eldar.org:/usr/src/sys/arch/sparc/compile/ELROND sparc


>Description:
[Given a 4/110 with COMPAT_SVR4 compiled into kernel]

In a rash of preverseness I tried to run the Solaris 2.4 X based DOOM
binary.  Making sure that the shared linker was happy, the end result
was a kernel panic around the time that it begins to access the X
server.  In DDB, the 'trace':

_mem_access_fault(f85a2300, 80, 4, f8025ea0, 9660c1, f98a9d30) at _mem_access_fault+0x270
_kernel_text(8, f85a2300, 0, 0, 8, 616c6c00) at _kernel_text+0x12bc

[Assuming I copied that down correctly]

Took a crash dump with 'call _dumpsys'.  Using gdb to look at the
stack:

elrond% cd /var/crash
elrond% gdb --kernel netbsd.1 netbsd.1.core
GDB is free software and you are welcome to 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.
GDB 4.11 (sparc-netbsd), Copyright 1993 Free Software Foundation, Inc...
(no debugging symbols found)...
panic: kernel fault
#0  0xf801e394 in mi_switch ()
(kgdb) bt
#0  0xf801e394 in mi_switch ()
#1  0xf80a6e80 in boot ()
#2  0xf8020758 in panic ()
#3  0xf80ad294 in mem_access_fault ()
#4  0xf80052c4 in start ()
#5  0x10 in ?? ()
#6  0xf80b1aac in svr4_sys_msgsys ()
#7  0xf80b1cfc in svr4_sys_shmsys ()
#8  0xf80ad620 in syscall ()
#9  0xf80054f8 in start ()
#10 0x5042c in ?? ()
#11 0x50490 in ?? ()
#12 0x515b8 in ?? ()
#13 0x1f0c0 in ?? ()
#14 0x1fc00 in ?? ()


>How-To-Repeat:
Put enough of the shared libraries in place to make the shared linker
happy and try to run 'sunxdoom' with a WAD file.
>Fix:
>Audit-Trail:
>Unformatted: