Subject: Sun JDK 1.3.1_07 Still Broken on Current
To: None <current-users@netbsd.org>
From: Curt Sampson <cjs@cynic.net>
List: current-users
Date: 04/14/2003 16:14:54
I'm having a bit of trouble tracking down just what triggers the
problem, but the Sun 1.3 JDK is still broken on current (April 10th)
in some way. See the appended output for details. This has been broken
since at least last Novemeber, though it works under 1.6. Any thoughts
on what might be going on? I'm happy to provide assistance to anybody
who wishes to fix this. (I'm also accepting suggestions on other JDKs
that might work better on NetBSD.)

(BTW, 1.4 also doesn't work for me; it's doing its usual "java process
uses as much CPU as it can get and never dies" thing.)

Also, while I'm here, is the new threading stuff eventually going to
make Linux threads work better? (I'm not asking for "good," just "as
good as they work under Linux." :-)) I'd really like to be using the Sun
1.4 JDK, since it's way faster than 1.3, at least under Linux.

cjs
-- 
Curt Sampson  <cjs@cynic.net>   +81 90 7737 2974   http://www.netbsd.org
    Don't you know, in this new Dark Age, we're all light.  --XTC

ironic $ pkg_info | grep '^sun.*13'
sun-jre13-1.0.7nb1  Sun's Java(tm) Runtime Environment 1.3.1
sun-jdk13-1.0.7nb1  Sun's Java(tm) Development Kit 1.3.1

ironic $ ant realclean cvsupdate webapp

Buildfile: build.xml

clean:

realclean:

cvsupdate:
      [cvs] Using cvs passfile: /home/cjs/.cvspass
      [cvs] ? z

init:
SIGSEGV   11*  segmentation violation
    si_signo [0]: no signal
    si_errno [0]: Success
    si_code [0]: SI_USER [pid: 0, uid: 0]
	stackpointer=0xbfbfcf54

Full thread dump Classic VM (1.3.1_07-b02, green threads):
    "process forker" (TID:0x48f7f3c8, sys_thread_t:0x8474840, state:CW) prio=5
	at java.lang.Object.wait(Native Method)
	at java.lang.UNIXProcessForker.run(Native Method)
	at java.lang.Thread.run(Thread.java:479)
    "process reaper" (TID:0x48f7f330, sys_thread_t:0x86d8d88, state:CW) prio=5
	at java.lang.UNIXProcessReaper.run(Native Method)
	at java.lang.Thread.run(Thread.java:479)
    "Finalizer" (TID:0x48f4d2f8, sys_thread_t:0x80c4348, state:CW) prio=8
	at java.lang.Object.wait(Native Method)
	at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:103)
	at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:118)
	at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:157)
    "Reference Handler" (TID:0x48f4d388, sys_thread_t:0x80bfb20, state:CW) prio=10
	at java.lang.Object.wait(Native Method)
	at java.lang.Object.wait(Object.java:415)
	at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:105)
    "Signal dispatcher" (TID:0x48f4d3b8, sys_thread_t:0x8087b30, state:CW) prio=5
    "main" (TID:0x48f4d1b0, sys_thread_t:0x804d7c8, state:R) prio=5
	at java.lang.Class.getMethods0(Native Method)
	at java.lang.Class.getMethods(Class.java:737)
	at org.apache.tools.ant.IntrospectionHelper.<init>(IntrospectionHelper.java:207)
	at org.apache.tools.ant.IntrospectionHelper.getHelper(IntrospectionHelper.java:384)
	at org.apache.tools.ant.ProjectHelper.configure(ProjectHelper.java:296)
	at org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigurable.java:242)
	at org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigurable.java:211)
	at org.apache.tools.ant.Task.maybeConfigure(Task.java:259)
	at org.apache.tools.ant.Task.perform(Task.java:340)
	at org.apache.tools.ant.Target.execute(Target.java:309)
	at org.apache.tools.ant.Target.performTasks(Target.java:336)
	at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
	at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
	at org.apache.tools.ant.Main.runBuild(Main.java:609)
	at org.apache.tools.ant.Main.start(Main.java:196)
	at org.apache.tools.ant.Main.main(Main.java:235)
Monitor Cache Dump:
    java.lang.ref.ReferenceQueue$Lock@48F4D310/48F82D78: <unowned>
	Waiting to be notified:
	    "Finalizer" (0x80c4348)
    java.lang.ref.Reference$Lock@48F4D398/48F82898: owner "main" (0x804d7c8) 1 entry
	Waiting to be notified:
	    "Reference Handler" (0x80bfb20)
    java.lang.Object@48F7F2E8/491D6310: <unowned>
	Waiting to be notified:
	    "process forker" (0x8474840)
    java.lang.Class@48F30D50/4911CBD0: owner "main" (0x804d7c8) 1 entry
Registered Monitor Dump:
    utf8 hash table: <unowned>
    JNI pinning lock: <unowned>
    JNI global reference lock: owner "main" (0x804d7c8) 1 entry
    BinClass lock: owner "main" (0x804d7c8) 1 entry
    Class linking lock: owner "main" (0x804d7c8) 1 entry
    System class loader lock: <unowned>
    Code rewrite lock: <unowned>
    Heap lock: owner "main" (0x804d7c8) 1 entry
    Monitor cache lock: owner "main" (0x804d7c8) 2 entries
    Dynamic loading lock: <unowned>
    Monitor IO lock: <unowned>
    User signal monitor: <unowned>
	Waiting to be notified:
	    "Signal dispatcher" (0x8087b30)
    Child death monitor: <unowned>
	Waiting to be notified:
	    "process reaper" (0x86d8d88)
    I/O monitor: <unowned>
    Alarm monitor: <unowned>
	Waiting to be notified:
	    <unknown thread> (0x805fb38)
    Thread queue lock: owner "main" (0x804d7c8) 2 entries
    Monitor registry: owner "main" (0x804d7c8) 1 entry