Date: Fri, 16 Jan 2004 16:00:33 -0800 (PST) From: Greg Lewis <glewis@eyesbeyond.com> To: freebsd-java@FreeBSD.org Subject: Re: java/61392: javaws from jdk-1.4.2p6 SEGV on startup Message-ID: <200401170000.i0H00XAQ022680@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR java/61392; it has been noted by GNATS. From: Greg Lewis <glewis@eyesbeyond.com> To: Matthew Seaman <m.seaman@infracaninophile.co.uk> Cc: FreeBSD-gnats-submit@freebsd.org Subject: Re: java/61392: javaws from jdk-1.4.2p6 SEGV on startup Date: Fri, 16 Jan 2004 17:00:44 -0700 --0OAP2g/MAC+5xKAE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Jan 15, 2004 at 09:16:36PM +0000, Matthew Seaman wrote: > The Java WebStart application javaws from JDK 1.4.2p6 dies repeatably > almost immediately on startup with a segmentation violation: Try the attached patch, I'm testing it now, but it will take a few hours. -- Greg Lewis Email : glewis@eyesbeyond.com Eyes Beyond Web : http://www.eyesbeyond.com Information Technology FreeBSD : glewis@FreeBSD.org --0OAP2g/MAC+5xKAE Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="patch-native::util.c" $FreeBSD$ --- ../../deploy/src/javaws/src/share/native/util.c 22 Oct 2003 23:04:17 -0000 1.1.1.1 +++ ../../deploy/src/javaws/src/share/native/util.c 16 Jan 2004 23:50:11 -0000 @@ -27,7 +27,10 @@ /* Find size of file */ struct stat statBuf; - stat(filename, &statBuf); + if (stat(filename, &statBuf) == -1) { + *buffer = NULL; + return 0; + } size = statBuf.st_size; /* Allocate memory for contents */ --0OAP2g/MAC+5xKAE--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200401170000.i0H00XAQ022680>