Subject: Re: xsrc/15357: stack trashing bug crashing the sparc Xservers
To: NetBSD Bugs and PR posting List <netbsd-bugs@netbsd.org>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: netbsd-bugs
Date: 03/19/2002 21:39:06
On Mon, Mar 18, 2002 at 05:55:26PM -0500, Greg A. Woods wrote:
> [...]
> 
> Hmmm.... The Xserver runs as root.  I don't know what limits are forced
> on it, but in an ordinary su session I see:
> 
> 	# ulimit -a
> 	time(cpu-seconds)    unlimited
> 	file(blocks)         unlimited
> 	coredump(blocks)     unlimited
> 	data(kbytes)         65536
> 	stack(kbytes)        512
> 	lockedmem(kbytes)    12472
> 	memory(kbytes)       37416
> 	nofiles(descriptors) 64
> 	processes            256
> 
> Wouldn't a process exceeding the stack size limit always exhibit the
> same kind of crash though (presumably SIGSEGV)?  I've had multiple
> examples of each of SIGSEGV, SIGILL, and SIGBUS.

You can see the limits of the running X server though sysctl:
sysctl proc.<pid of X server>

-- 
Manuel Bouyer <bouyer@antioche.eu.org>
--