Subject: kern/22839: cvsup crashes with new kernel
To: None <gnats-bugs@gnats.netbsd.org>
From: Mario Kemper <magick@bundy.zhadum.de>
List: netbsd-bugs
Date: 09/18/2003 00:25:42
>Number:         22839
>Category:       kern
>Synopsis:       cvsup crashes with new kernel
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Sep 17 22:28:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Mario Kemper
>Release:        NetBSD 1.6ZB
>Organization:
Mario Kemper
magick@zhadum.de
>Environment:
	
	
System: NetBSD bundy 1.6ZB NetBSD 1.6ZB (BUNDY) #18: Sun Sep 14 16:27:46 CEST 2003 root@bundy:/usr/netbsd-src/src-obj/sys/arch/i386/compile/BUNDY i386
Architecture: i386
Machine: i386
>Description:
After i switched from NetBSD 1.6Z to 1.6ZB cvsup crashes with the following:
Connected to cvsup.pasta.cs.uit.no


***
*** runtime error:
***    Segmentation violation - possible attempt to dereference NIL0
***

  use option @M3stackdump to get a stack trace
zsh: abort      cvsup /usr/local/etc/cvsup/netbsd.org-supfile

when i boot the older 1.6Z it works flawlessly so its not a connection 
problem.

cvsup is an old netbsd binary. 
root@bundy:/home/magick#file /usr/pkg/bin/cvsup 
/usr/pkg/bin/cvsup: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for NetBSD, statically linked, stripped

The following compat options are needed to run it and are set in the kernel:
COMPAT_43, COMPAT_13, and COMPAT_14

>How-To-Repeat:
call cvsup with a supfile
>Fix:
Don't know, maybe the signal stuff for COMPAT_16 is not propagated to older 
binaries?
>Release-Note:
>Audit-Trail:
>Unformatted: