Similar code in Java hangs but does not crash.
Code:
public class buserror {
public static void main(String[] args) throws Exception {
omero.client c = new omero.client();
omero.api.ServiceFactoryPrx s = c.createSession();
System.out.println("first");
s.getQueryService();
System.out.println("now");
s.getScriptService();
}
}
produces:
Sending kill -QUIT to the process returns:
Code:
Full thread dump Java HotSpot(TM) Client VM (1.5.0_13-121 mixed mode, sharing):
"DestroyJavaVM" prio=5 tid=0x00501320 nid=0x1803800 waiting on condition [0x00000000..0xb0800000]
"Ice.SelectorThread" prio=5 tid=0x00511b70 nid=0x1969000 runnable [0xb0e8d000..0xb0e8dd10]
at sun.nio.ch.KQueueArrayWrapper.kevent0(Native Method)
at sun.nio.ch.KQueueArrayWrapper.poll(KQueueArrayWrapper.java:118)
at sun.nio.ch.KQueueSelectorImpl.doSelect(KQueueSelectorImpl.java:69)
at sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:69)
- locked <0x266200d0> (a sun.nio.ch.Util$1)
- locked <0x266200e0> (a java.util.Collections$UnmodifiableSet)
- locked <0x26620088> (a sun.nio.ch.KQueueSelectorImpl)
at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:80)
at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:84)
at IceInternal.Selector.select(Selector.java:139)
at IceInternal.SelectorThread.run(SelectorThread.java:120)
at IceInternal.SelectorThread$HelperThread.run(SelectorThread.java:273)
"Ice.ThreadPool.Client-0" prio=5 tid=0x00511860 nid=0x1968c00 runnable [0xb0e0c000..0xb0e0cd10]
at sun.nio.ch.KQueueArrayWrapper.kevent0(Native Method)
at sun.nio.ch.KQueueArrayWrapper.poll(KQueueArrayWrapper.java:118)
at sun.nio.ch.KQueueSelectorImpl.doSelect(KQueueSelectorImpl.java:69)
at sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:69)
- locked <0x26620228> (a sun.nio.ch.Util$1)
- locked <0x26620238> (a java.util.Collections$UnmodifiableSet)
- locked <0x266201e0> (a sun.nio.ch.KQueueSelectorImpl)
at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:80)
at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:84)
at IceInternal.Selector.select(Selector.java:139)
at IceInternal.ThreadPool.run(ThreadPool.java:335)
at IceInternal.ThreadPool.access$100(ThreadPool.java:12)
at IceInternal.ThreadPool$EventHandlerThread.run(ThreadPool.java:951)
"Ice.EndpointHostResolverThread" prio=5 tid=0x00511230 nid=0x199ba00 in Object.wait() [0xb0d8b000..0xb0d8bd10]
at java.lang.Object.wait(Native Method)
- waiting on <0x26620390> (a IceInternal.EndpointHostResolver)
at java.lang.Object.wait(Object.java:474)
at IceInternal.EndpointHostResolver.run(EndpointHostResolver.java:77)
- locked <0x26620390> (a IceInternal.EndpointHostResolver)
at IceInternal.EndpointHostResolver$HelperThread.run(EndpointHostResolver.java:146)
"Ice.ThreadPool.Server-0" prio=5 tid=0x005108c0 nid=0x199be00 runnable [0xb0d0a000..0xb0d0ad10]
at sun.nio.ch.KQueueArrayWrapper.kevent0(Native Method)
at sun.nio.ch.KQueueArrayWrapper.poll(KQueueArrayWrapper.java:118)
at sun.nio.ch.KQueueSelectorImpl.doSelect(KQueueSelectorImpl.java:69)
at sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:69)
- locked <0x26620478> (a sun.nio.ch.Util$1)
- locked <0x26620488> (a java.util.Collections$UnmodifiableSet)
- locked <0x26620430> (a sun.nio.ch.KQueueSelectorImpl)
at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:80)
at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:84)
at IceInternal.Selector.select(Selector.java:139)
at IceInternal.ThreadPool.run(ThreadPool.java:335)
at IceInternal.ThreadPool.access$100(ThreadPool.java:12)
at IceInternal.ThreadPool$EventHandlerThread.run(ThreadPool.java:951)
"Ice.Timer" prio=5 tid=0x0050fa70 nid=0x198ec00 in Object.wait() [0xb0c89000..0xb0c89d10]
at java.lang.Object.wait(Native Method)
- waiting on <0x26b1fd98> (a IceInternal.Timer)
at IceInternal.Timer.run(Timer.java:217)
- locked <0x26b1fd98> (a IceInternal.Timer)
"Low Memory Detector" daemon prio=5 tid=0x00508f60 nid=0x1816800 runnable [0x00000000..0x00000000]
"CompilerThread0" daemon prio=9 tid=0x00508560 nid=0x1816400 waiting on condition [0x00000000..0xb0b06748]
"Signal Dispatcher" daemon prio=9 tid=0x00508090 nid=0x1813200 waiting on condition [0x00000000..0x00000000]
"Finalizer" daemon prio=8 tid=0x00507830 nid=0x1811600 in Object.wait() [0xb0a04000..0xb0a04d10]
at java.lang.Object.wait(Native Method)
- waiting on <0x26a949e0> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116)
- locked <0x26a949e0> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:132)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159)
"Reference Handler" daemon prio=10 tid=0x00507480 nid=0x1810800 in Object.wait() [0xb0983000..0xb0983d10]
at java.lang.Object.wait(Native Method)
- waiting on <0x26a94a60> (a java.lang.ref.Reference$Lock)
at java.lang.Object.wait(Object.java:474)
at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116)
- locked <0x26a94a60> (a java.lang.ref.Reference$Lock)
"VM Thread" prio=9 tid=0x00506c00 nid=0x1810400 runnable
"VM Periodic Task Thread" prio=9 tid=0x00509b30 nid=0x1816c00 waiting on condition
"Exception Catcher Thread" prio=10 tid=0x005015a0 nid=0x1803c00 runnable