Subject: port-xen/29887: sysctl kern.consdev coredumps
To: None <port-xen-maintainer@netbsd.org, gnats-admin@netbsd.org,>
From: None <juan@xtraeme.nopcode.org>
List: netbsd-bugs
Date: 04/05/2005 03:21:00
>Number:         29887
>Category:       port-xen
>Synopsis:       sysctl kern.consdev coredumps
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-xen-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Apr 05 03:21:00 +0000 2005
>Originator:     Juan RP
>Release:        NetBSD 3.99.3
>Organization:
>Environment:
System: NetBSD Mandylion 3.99.3 NetBSD 3.99.3 (XEN_GW_DOM0) #0: Tue Apr 5 01:00:27 CEST 2005 juan@Nocturno:/home/juan/build/obj/sys/arch/i386/compile/XEN_GW_DOM0 i386
Architecture: i386
Machine: i386
>Description:

	Running sysctl kern.consdev in a domU results in a coredump:

	[juan@XenU_0][~]> sysctl kern.consdev          
	zsh: segmentation fault (core dumped)  sysctl kern.consdev
	[juan@XenU_0][~]>

	ktrace:

 10711 sysctl   RET   pread 4096/0x1000
 10711 sysctl   CALL  __sysctl(0xbfbfcd00,1,0x8068800,0xbfbfca8c,0xbfbfca90,0x60)
 10711 sysctl   RET   __sysctl -1 errno 12 Cannot allocate memory
 10711 sysctl   CALL  break(0x806b000)
 10711 sysctl   RET   break 0
 10711 sysctl   CALL  __sysctl(0xbfbfcd00,1,0x806a000,0xbfbfca8c,0xbfbfca90,0x60)
 10711 sysctl   RET   __sysctl 0
 10711 sysctl   CALL  break(0x806d000)
 10711 sysctl   RET   break 0

	This domU has 240MB and 512MB for swap space.

>How-To-Repeat:
>Fix: