Bug 61392 - javaws from jdk-1.4.2p6 SEGV on startup
Summary: javaws from jdk-1.4.2p6 SEGV on startup
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: java (show other bugs)
Version: 4.9-STABLE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-java (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-15 21:20 UTC by Matthew Seaman
Modified: 2004-01-17 07:12 UTC (History)
0 users

See Also:


Attachments
patch-native::util.c (454 bytes, text/plain; charset=us-ascii)
2004-01-17 00:00 UTC, Greg Lewis
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matthew Seaman 2004-01-15 21:20:16 UTC
The Java WebStart application javaws from JDK 1.4.2p6 dies repeatably
almost immediately on startup with a segmentation violation:

arbitrary:...j2sdk-image/jre/javaws:% ./javaws
Segmentation fault (core dumped)
arbitrary:...j2sdk-image/jre/javaws:% gdb javawsbin -c javawsbin.core 
GNU gdb 4.18 (FreeBSD)
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-unknown-freebsd"...
(no debugging symbols found)...
Core was generated by `javawsbin'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/X11R6/lib/libX11.so.6...
(no debugging symbols found)...done.
Reading symbols from /usr/lib/libc_r.so.4...(no debugging symbols found)...
done.
Reading symbols from /usr/X11R6/lib/libXThrStub.so.6...
(no debugging symbols found)...done.
Reading symbols from /usr/libexec/ld-elf.so.1...(no debugging symbols found)...
done.
#0  0x281d5a21 in _thread_leave_cancellation_point () from /usr/lib/libc_r.so.4
(gdb) bt
#0  0x281d5a21 in _thread_leave_cancellation_point () from /usr/lib/libc_r.so.4
#1  0x281d5d51 in _thread_leave_cancellation_point () from /usr/lib/libc_r.so.4
#2  0x281d64a1 in malloc () from /usr/lib/libc_r.so.4
#3  0x80519b8 in ReadFileToBuffer ()
#4  0x804e511 in parsePropertyFile ()
#5  0x804b20f in LoadCfgFile ()
#6  0x804b16e in LoadConfigurationFile ()
#7  0x80498de in main ()
#8  0x804975a in _start ()
(gdb) info frame
Stack level 0, frame at 0xbfbff340:
 eip = 0x281d5a21 in _thread_leave_cancellation_point; saved eip 0x281d5d51
 called by frame at 0xbfbff370
 Arglist at 0xbfbff340, args: 
 Locals at 0xbfbff340, Previous frame's sp is 0x0
 Saved registers:
  ebx at 0xbfbff328, ebp at 0xbfbff340, eip at 0xbfbff344

That's from a JDK compiled -DWITH_DEBUG: exactly the same crash
happens with or without -DWITH_DEBUG.

Fix: 

Not known.  Happy to provide core files etc. on request.
Comment 1 Greg Lewis 2004-01-17 00:00:44 UTC
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
Comment 2 Greg Lewis freebsd_committer freebsd_triage 2004-01-17 07:12:29 UTC
State Changed
From-To: open->closed

Tested the patch I posted and it worked ok.  Committed that.