Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Hang when loading AWT library revisited... AGAIN
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Hang when loading AWT library revisited... AGAIN




Yes, it's me, with my ongoing problem... I just found it in a slightly different environment with a little bit more information, hoping something might jog someone's synapses and recognize the problem.  I've already put up a bug on bugreport.apple.com.

So, quick summary, the JVM is trying to load the AWT library, apparently as a side effect of loading a class (via Class.forName()) that does something AWT-ish in a static constructor that is being run at load time.

So the Java stack for the thread that hangs looks like:

"Mac sInit thread" prio=5 tid=0x20818170 nid=0x69a8e00 runnable [0xb0a27000..0xb0a28d90]
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1822)
        - locked <0x25286190> (a java.util.Vector)
        - locked <0x252861a8> (a java.util.Vector)
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1723)
        at java.lang.Runtime.loadLibrary0(Runtime.java:822)
        - locked <0x25285458> (a java.lang.Runtime)
        at java.lang.System.loadLibrary(System.java:993)
        at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.awt.NativeLibLoader.loadLibraries(NativeLibLoader.java:38)
        at sun.awt.DebugHelper.<clinit>(DebugHelper.java:29)
        at java.awt.Component.<clinit>(Component.java:547)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:164)
        at lotus.domino.ws.ServiceContext.sInit(ServiceContext.java:162)
        at lotus.domino.ws.ServiceContext$1.run(ServiceContext.java:198)
        at java.lang.Thread.run(Thread.java:613)

An the native stack for the hung thread (and this hopefully may have a clue for someone) is:

Thread 35 (process 48687 thread 0x1b503):
#0  0x942c8bce in __semwait_signal ()
#1  0x942f3ee6 in _pthread_cond_wait ()
#2  0x942f38cd in pthread_cond_wait$UNIX2003 ()
#3  0x2d4eb085 in +[AWTStarter start:swtMode:swtModeForWebStart:] ()
#4  0x2d504909 in JNI_OnLoad ()
#5  0x1e73b160 in Java_java_lang_ClassLoader_00024NativeLibrary_load ()
#6  0x22d87d07 in ?? ()
#7  0x22d7f9d3 in ?? ()
#8  0x22d7fb2b in ?? ()
#9  0x22d7f9d3 in ?? ()
#10 0x22d7f9d3 in ?? ()
#11 0x22d7f9d3 in ?? ()
#12 0x22d7d227 in ?? ()
#13 0x2051963a in dyld_stub_xprintf ()
#14 0x20519356 in dyld_stub_xprintf ()
#15 0x206430d3 in JVM_DoPrivileged ()
#16 0x1e73a355 in Java_java_security_AccessController_doPrivileged__Ljava_security_PrivilegedAction_2 ()
#17 0x22d87d07 in ?? ()
#18 0x22d7faaa in ?? ()
<redundant stack frames deleted>
#50 0x2045d595 in dyld_stub_xprintf ()
#51 0x2045d4b8 in dyld_stub_xprintf ()
#52 0x206c4cc5 in JVM_RaiseSignal ()
#53 0x9433e53b in _pthread_body ()

In this case, there was no "su" to a different userid involved.  I also can find no other threads that might be competing doing "AWT"-ish things, so I'm at a loss.

If anyone has any ideas, please let me know.  I'm afraid I might have to use a DTS incident report on this one :-(

Thanks everyone!

-Eric Feigenson

P.S.  This is Mac OS 10.5.2, Mac Pro  Dual-Core Xeon 2.66 GHz processors x 2,
JVM Version: java version "1.5.0_13"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_13-b05-237)
Java HotSpot(TM) Client VM (build 1.5.0_13-119, mixed mode, sharing)

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.