Subject: Re: Linux Emul: Java 1.4.2 receiving SIGSEGV when using Eclipse: Out of memory?
To: Brian de Alwis <bsd@cs.ubc.ca>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: current-users
Date: 03/09/2004 22:24:37
On Mon, Mar 08, 2004 at 03:40:43PM -0500, Brian de Alwis wrote:
> Hi everybody.  I'm running Eclipse, a Java IDE that seems to consume
> a lot of memory, using Linux emulation under NetBSD 1.6ZK.  The
> JVM is crashing due to a SIGSEGV (I've attached the JVM crash trace
> below).
> 
> My suspicion was that this happened because of a difference between
> NetBSD and Linux behaviour when an application runs out of memory
> NetBSD's expected behaviour, as according to our man pages for
> getrlimit(2), has the process being sent a SIGSEGV.  But Linux's
> getrlimit pages say that exceeding the data segment size will cause
> brk()/sbrk() to return 0 -- SIGSEGVs are signalled when there's a
> stack overflow.

For NetBSD as well. SIGSEGV is only for stack overflow, brk()/sbrk() will
return 0.

-- 
Manuel Bouyer <bouyer@antioche.eu.org>
     NetBSD: 26 ans d'experience feront toujours la difference
--