Date: Tue, 02 May 2000 09:17:01 -0700 From: Bill Trost <trost@cloud.rain.com> To: freebsd-java@freebsd.org Subject: "java_g -prof" crash Message-ID: <27409.957284221@cloud.rain.com>
next in thread | raw e-mail | index | archive | help
Attached below is the thread jump generated in the crash. In summary, the problem is as follows: *** panic: "../../../../src/freebsd/java/green_threads/src/schedule.c", line 37: assertion failure This is a fairly easily repeated problem. I don't know if the problem happens when using plain java. As you can see, this is not a simple Java program that tickles the bug. I have very little idea as to what is tripping it up, although I get the impression that it is caused either by a stream closing or a thread terminating. Unfortunately, I don't have an a.out debugger (to my knowledge), so I can't even get a call stack. I can't reproduce the problem when "-prof" is not present. Full thread dump: "Conduit" (TID:0x2870eee0, sys_thread_t:0x297b4f00, state:R) prio=5 Freenet.node.FileData$FDataInputStream.read(FileData.java:36) java.io.InputStream.read(InputStream.java) Freenet.Conduit.run(Conduit.java:106) "Conduit" (TID:0x2870e850, sys_thread_t:0x29793f00, state:CW) prio=5 java.net.SocketInputStream.read(SocketInputStream.java:84) java.io.FilterInputStream.read(FilterInputStream.java) java.io.PushbackInputStream.read(PushbackInputStream.java) java.io.FilterInputStream.read(FilterInputStream.java) java.io.PushbackInputStream.read(PushbackInputStream.java) Freenet.Conduit.run(Conduit.java:106) "tcp/142.92.129.37:19114 ConnectionHandler" (TID:0x2870c078, sys_thread_t:0x29772f00, state:CW) prio=5 java.lang.Object.wait(Object.java) Freenet.ConnectionHandler.run(ConnectionHandler.java:148) java.lang.Thread.run(Thread.java) "tcp/127.0.0.1:1874 ConnectionHandler" (TID:0x28708310, sys_thread_t:0x29751f00, state:MW) prio=5 java.lang.Object.<init>(Object.java) java.lang.String.<init>(String.java) java.net.SocketInputStream.read(SocketInputStream.java:84) java.net.SocketInputStream.read(SocketInputStream.java:100) java.io.FilterInputStream.read(FilterInputStream.java) java.io.PushbackInputStream.read(PushbackInputStream.java) Freenet.ConnectionHandler.run(ConnectionHandler.java:85) java.lang.Thread.run(Thread.java) "tcp/142.92.129.37:19114 ConnectionHandler" (TID:0x28707348, sys_thread_t:0x29730f00, state:MW) prio=5 java.lang.Object.<init>(Object.java) java.lang.String.<init>(String.java) java.net.SocketInputStream.read(SocketInputStream.java:84) java.net.SocketInputStream.read(SocketInputStream.java:100) java.io.FilterInputStream.read(FilterInputStream.java) java.io.PushbackInputStream.read(PushbackInputStream.java) Freenet.ConnectionHandler.run(ConnectionHandler.java:85) java.lang.Thread.run(Thread.java) "Thread-14" (TID:0x287068d0, sys_thread_t:0x2970ff00, state:CW) prio=5 java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:282) java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:124) java.net.PlainSocketImpl.connect(PlainSocketImpl.java:111) java.net.Socket.<init>(Socket.java:221) java.net.Socket.<init>(Socket.java:109) Freenet.tcpConnection$ConnectThread.run(tcpConnection.java:25) "Thread-12" (TID:0x287057e8, sys_thread_t:0x296eef00, state:CW) prio=5 java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:282) java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:124) java.net.PlainSocketImpl.connect(PlainSocketImpl.java:111) java.net.Socket.<init>(Socket.java:221) java.net.Socket.<init>(Socket.java:109) Freenet.tcpConnection$ConnectThread.run(tcpConnection.java:25) "tcp/127.0.0.1:1868 ConnectionHandler" (TID:0x287031b8, sys_thread_t:0x296cdf00, state:MW) prio=5 *current thread* java.net.SocketInputStream.read(SocketInputStream.java:84) java.net.SocketInputStream.read(SocketInputStream.java:100) java.io.FilterInputStream.read(FilterInputStream.java) java.io.PushbackInputStream.read(PushbackInputStream.java) Freenet.ConnectionHandler.run(ConnectionHandler.java:85) java.lang.Thread.run(Thread.java) "Conduit" (TID:0x287028a8, sys_thread_t:0x296acf00, state:MW) prio=5 Freenet.node.FileData$FDataInputStream.read(FileData.java:36) java.io.InputStream.read(InputStream.java) Freenet.Conduit.run(Conduit.java:106) "Conduit" (TID:0x28702218, sys_thread_t:0x2966af00, state:CW) prio=5 java.net.SocketInputStream.read(SocketInputStream.java:84) java.io.FilterInputStream.read(FilterInputStream.java) java.io.PushbackInputStream.read(PushbackInputStream.java) java.io.FilterInputStream.read(FilterInputStream.java) java.io.PushbackInputStream.read(PushbackInputStream.java) Freenet.Conduit.run(Conduit.java:106) "tcp/142.92.129.37:19114 ConnectionHandler" (TID:0x286e1c20, sys_thread_t:0x2968bf00, state:CW) prio=5 java.lang.Object.wait(Object.java) Freenet.ConnectionHandler.run(ConnectionHandler.java:148) java.lang.Thread.run(Thread.java) "tcp/127.0.0.1:1862 ConnectionHandler" (TID:0x286fe898, sys_thread_t:0x29649f00, state:MW) prio=5 java.lang.Object.<init>(Object.java) java.lang.String.<init>(String.java) java.net.SocketInputStream.read(SocketInputStream.java:84) java.net.SocketInputStream.read(SocketInputStream.java:100) java.io.FilterInputStream.read(FilterInputStream.java) java.io.PushbackInputStream.read(PushbackInputStream.java) Freenet.ConnectionHandler.run(ConnectionHandler.java:85) java.lang.Thread.run(Thread.java) "Conduit" (TID:0x286fc340, sys_thread_t:0x29628f00, state:MW) prio=5 Freenet.node.FileData.access$0(FileData.java:81) Freenet.node.FileData$FDataInputStream.read(FileData.java:34) java.io.InputStream.read(InputStream.java) Freenet.Conduit.run(Conduit.java:106) "Conduit" (TID:0x286fce80, sys_thread_t:0x29607f00, state:CW) prio=5 java.net.SocketInputStream.read(SocketInputStream.java:84) java.io.FilterInputStream.read(FilterInputStream.java) java.io.PushbackInputStream.read(PushbackInputStream.java) java.io.FilterInputStream.read(FilterInputStream.java) java.io.PushbackInputStream.read(PushbackInputStream.java) Freenet.Conduit.run(Conduit.java:106) "tcp/142.92.129.37:19114 ConnectionHandler" (TID:0x286f26c0, sys_thread_t:0x295e6f00, state:CW) prio=5 java.lang.Object.wait(Object.java) Freenet.ConnectionHandler.run(ConnectionHandler.java:148) java.lang.Thread.run(Thread.java) "tcp/127.0.0.1:1857 ConnectionHandler" (TID:0x286fcde8, sys_thread_t:0x295c5f00, state:MW) prio=5 java.lang.Object.<init>(Object.java) java.lang.String.<init>(String.java) java.net.SocketInputStream.read(SocketInputStream.java:84) java.net.SocketInputStream.read(SocketInputStream.java:100) java.io.FilterInputStream.read(FilterInputStream.java) java.io.PushbackInputStream.read(PushbackInputStream.java) Freenet.ConnectionHandler.run(ConnectionHandler.java:85) java.lang.Thread.run(Thread.java) "Ticker" (TID:0x286fda28, sys_thread_t:0x295a4f00, state:CW) prio=5 Freenet.support.Ticker.run(Ticker.java:138) "entropySentry" (TID:0x286fce50, sys_thread_t:0x29583f00, state:CW) prio=5 java.lang.Object.wait(Object.java) Freenet.crypt.EntropyPool.run(EntropyPool.java:167) java.lang.Thread.run(Thread.java) "Breakpoint handler" (TID:0x286f5300, sys_thread_t:0x29554f00, state:CW) prio=9 sun.tools.debug.BreakpointQueue.nextEvent(BreakpointQueue.java) sun.tools.debug.BreakpointHandler.run(BreakpointHandler.java:195) "Step handler" (TID:0x286f5298, sys_thread_t:0x29533f00, state:CW) prio=10 java.lang.Object.wait(Object.java) sun.tools.debug.StepRequest.get(StepHandler.java:939) sun.tools.debug.StepHandler.waitForRequest(StepHandler.java:165) sun.tools.debug.StepHandler.run(StepHandler.java:142) "Debugger agent" (TID:0x286e2a28, sys_thread_t:0x29512f00, state:CW) prio=10 java.net.PlainSocketImpl.accept(PlainSocketImpl.java:379) java.net.ServerSocket.implAccept(ServerSocket.java:198) java.net.ServerSocket.accept(ServerSocket.java:181) sun.tools.debug.Agent.run(Agent.java:298) java.lang.Thread.run(Thread.java) "Finalizer thread" (TID:0x286de210, sys_thread_t:0x294e2f00, state:CW) prio=1 "Async Garbage Collector" (TID:0x286de258, sys_thread_t:0x294c1f00, state:R) prio=1 "Idle thread" (TID:0x286de2a0, sys_thread_t:0x294a0f00, state:R) prio=0 "Clock" (TID:0x286de088, sys_thread_t:0x2947ff00, state:CW) prio=12 "main" (TID:0x286de0b0, sys_thread_t:0x8151800, state:CW) prio=5 java.net.PlainSocketImpl.accept(PlainSocketImpl.java:379) java.net.ServerSocket.implAccept(ServerSocket.java:198) java.net.ServerSocket.accept(ServerSocket.java:181) Freenet.tcpListener.accept(tcpListener.java:23) Freenet.Core.acceptConnections(Core.java:140) Freenet.node.Node.main(Node.java:158) *** panic: "../../../../src/freebsd/java/green_threads/src/schedule.c", line 37: assertion failure SIGABRT 6* abort (generated by abort(3) routine) Full thread dump: "Conduit" (TID:0x2870eee0, sys_thread_t:0x297b4f00, state:R) prio=5 Freenet.node.FileData$FDataInputStream.read(FileData.java:36) java.io.InputStream.read(InputStream.java) Freenet.Conduit.run(Conduit.java:106) "Conduit" (TID:0x2870e850, sys_thread_t:0x29793f00, state:CW) prio=5 java.net.SocketInputStream.read(SocketInputStream.java:84) java.io.FilterInputStream.read(FilterInputStream.java) java.io.PushbackInputStream.read(PushbackInputStream.java) java.io.FilterInputStream.read(FilterInputStream.java) java.io.PushbackInputStream.read(PushbackInputStream.java) Freenet.Conduit.run(Conduit.java:106) "tcp/142.92.129.37:19114 ConnectionHandler" (TID:0x2870c078, sys_thread_t:0x29772f00, state:CW) prio=5 java.lang.Object.wait(Object.java) Freenet.ConnectionHandler.run(ConnectionHandler.java:148) java.lang.Thread.run(Thread.java) "tcp/127.0.0.1:1874 ConnectionHandler" (TID:0x28708310, sys_thread_t:0x29751f00, state:MW) prio=5 java.lang.Object.<init>(Object.java) java.lang.String.<init>(String.java) java.net.SocketInputStream.read(SocketInputStream.java:84) java.net.SocketInputStream.read(SocketInputStream.java:100) java.io.FilterInputStream.read(FilterInputStream.java) java.io.PushbackInputStream.read(PushbackInputStream.java) Freenet.ConnectionHandler.run(ConnectionHandler.java:85) java.lang.Thread.run(Thread.java) "tcp/142.92.129.37:19114 ConnectionHandler" (TID:0x28707348, sys_thread_t:0x29730f00, state:MW) prio=5 java.lang.Object.<init>(Object.java) java.lang.String.<init>(String.java) java.net.SocketInputStream.read(SocketInputStream.java:84) java.net.SocketInputStream.read(SocketInputStream.java:100) java.io.FilterInputStream.read(FilterInputStream.java) java.io.PushbackInputStream.read(PushbackInputStream.java) Freenet.ConnectionHandler.run(ConnectionHandler.java:85) java.lang.Thread.run(Thread.java) "Thread-14" (TID:0x287068d0, sys_thread_t:0x2970ff00, state:CW) prio=5 java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:282) java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:124) java.net.PlainSocketImpl.connect(PlainSocketImpl.java:111) java.net.Socket.<init>(Socket.java:221) java.net.Socket.<init>(Socket.java:109) Freenet.tcpConnection$ConnectThread.run(tcpConnection.java:25) "Thread-12" (TID:0x287057e8, sys_thread_t:0x296eef00, state:CW) prio=5 java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:282) java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:124) java.net.PlainSocketImpl.connect(PlainSocketImpl.java:111) java.net.Socket.<init>(Socket.java:221) java.net.Socket.<init>(Socket.java:109) Freenet.tcpConnection$ConnectThread.run(tcpConnection.java:25) "tcp/127.0.0.1:1868 ConnectionHandler" (TID:0x287031b8, sys_thread_t:0x296cdf00, state:MW) prio=5 *current thread* java.net.SocketInputStream.read(SocketInputStream.java:84) java.net.SocketInputStream.read(SocketInputStream.java:100) java.io.FilterInputStream.read(FilterInputStream.java) java.io.PushbackInputStream.read(PushbackInputStream.java) Freenet.ConnectionHandler.run(ConnectionHandler.java:85) java.lang.Thread.run(Thread.java) "Conduit" (TID:0x287028a8, sys_thread_t:0x296acf00, state:MW) prio=5 Freenet.node.FileData$FDataInputStream.read(FileData.java:36) java.io.InputStream.read(InputStream.java) Freenet.Conduit.run(Conduit.java:106) "Conduit" (TID:0x28702218, sys_thread_t:0x2966af00, state:CW) prio=5 java.net.SocketInputStream.read(SocketInputStream.java:84) java.io.FilterInputStream.read(FilterInputStream.java) java.io.PushbackInputStream.read(PushbackInputStream.java) java.io.FilterInputStream.read(FilterInputStream.java) java.io.PushbackInputStream.read(PushbackInputStream.java) Freenet.Conduit.run(Conduit.java:106) "tcp/142.92.129.37:19114 ConnectionHandler" (TID:0x286e1c20, sys_thread_t:0x2968bf00, state:CW) prio=5 java.lang.Object.wait(Object.java) Freenet.ConnectionHandler.run(ConnectionHandler.java:148) java.lang.Thread.run(Thread.java) "tcp/127.0.0.1:1862 ConnectionHandler" (TID:0x286fe898, sys_thread_t:0x29649f00, state:MW) prio=5 java.lang.Object.<init>(Object.java) java.lang.String.<init>(String.java) java.net.SocketInputStream.read(SocketInputStream.java:84) java.net.SocketInputStream.read(SocketInputStream.java:100) java.io.FilterInputStream.read(FilterInputStream.java) java.io.PushbackInputStream.read(PushbackInputStream.java) Freenet.ConnectionHandler.run(ConnectionHandler.java:85) java.lang.Thread.run(Thread.java) "Conduit" (TID:0x286fc340, sys_thread_t:0x29628f00, state:MW) prio=5 Freenet.node.FileData.access$0(FileData.java:81) Freenet.node.FileData$FDataInputStream.read(FileData.java:34) java.io.InputStream.read(InputStream.java) Freenet.Conduit.run(Conduit.java:106) "Conduit" (TID:0x286fce80, sys_thread_t:0x29607f00, state:CW) prio=5 java.net.SocketInputStream.read(SocketInputStream.java:84) java.io.FilterInputStream.read(FilterInputStream.java) java.io.PushbackInputStream.read(PushbackInputStream.java) java.io.FilterInputStream.read(FilterInputStream.java) java.io.PushbackInputStream.read(PushbackInputStream.java) Freenet.Conduit.run(Conduit.java:106) "tcp/142.92.129.37:19114 ConnectionHandler" (TID:0x286f26c0, sys_thread_t:0x295e6f00, state:CW) prio=5 java.lang.Object.wait(Object.java) Freenet.ConnectionHandler.run(ConnectionHandler.java:148) java.lang.Thread.run(Thread.java) "tcp/127.0.0.1:1857 ConnectionHandler" (TID:0x286fcde8, sys_thread_t:0x295c5f00, state:MW) prio=5 java.lang.Object.<init>(Object.java) java.lang.String.<init>(String.java) java.net.SocketInputStream.read(SocketInputStream.java:84) java.net.SocketInputStream.read(SocketInputStream.java:100) java.io.FilterInputStream.read(FilterInputStream.java) java.io.PushbackInputStream.read(PushbackInputStream.java) Freenet.ConnectionHandler.run(ConnectionHandler.java:85) java.lang.Thread.run(Thread.java) "Ticker" (TID:0x286fda28, sys_thread_t:0x295a4f00, state:CW) prio=5 Freenet.support.Ticker.run(Ticker.java:138) "entropySentry" (TID:0x286fce50, sys_thread_t:0x29583f00, state:CW) prio=5 java.lang.Object.wait(Object.java) Freenet.crypt.EntropyPool.run(EntropyPool.java:167) java.lang.Thread.run(Thread.java) "Breakpoint handler" (TID:0x286f5300, sys_thread_t:0x29554f00, state:CW) prio=9 sun.tools.debug.BreakpointQueue.nextEvent(BreakpointQueue.java) sun.tools.debug.BreakpointHandler.run(BreakpointHandler.java:195) "Step handler" (TID:0x286f5298, sys_thread_t:0x29533f00, state:CW) prio=10 java.lang.Object.wait(Object.java) sun.tools.debug.StepRequest.get(StepHandler.java:939) sun.tools.debug.StepHandler.waitForRequest(StepHandler.java:165) sun.tools.debug.StepHandler.run(StepHandler.java:142) "Debugger agent" (TID:0x286e2a28, sys_thread_t:0x29512f00, state:CW) prio=10 java.net.PlainSocketImpl.accept(PlainSocketImpl.java:379) java.net.ServerSocket.implAccept(ServerSocket.java:198) java.net.ServerSocket.accept(ServerSocket.java:181) sun.tools.debug.Agent.run(Agent.java:298) java.lang.Thread.run(Thread.java) "Finalizer thread" (TID:0x286de210, sys_thread_t:0x294e2f00, state:CW) prio=1 "Async Garbage Collector" (TID:0x286de258, sys_thread_t:0x294c1f00, state:R) prio=1 "Idle thread" (TID:0x286de2a0, sys_thread_t:0x294a0f00, state:R) prio=0 "Clock" (TID:0x286de088, sys_thread_t:0x2947ff00, state:CW) prio=12 "main" (TID:0x286de0b0, sys_thread_t:0x8151800, state:CW) prio=5 java.net.PlainSocketImpl.accept(PlainSocketImpl.java:379) java.net.ServerSocket.implAccept(ServerSocket.java:198) java.net.ServerSocket.accept(ServerSocket.java:181) Freenet.tcpListener.accept(tcpListener.java:23) Freenet.Core.acceptConnections(Core.java:140) Freenet.node.Node.main(Node.java:158) Monitor Cache Dump: java.net.SocketOutputStream@28707D98/287F28C0: owner "Conduit" (0x297b4f00, 1 entry) Freenet.support.SplitOutputStream@2870E568/2883EB28: owner "Conduit" (0x29793f00, 1 entry) sun.tools.debug.BreakpointQueue@286F52D8/28793DF0: <unowned> Waiting to be notified: "Breakpoint handler" (0x29554f00) java.lang.Class@286F5628/28794970: <unowned> Waiting to be notified: "Step handler" (0x29533f00) java.io.PushbackInputStream@2870C998/28837B48: owner "Conduit" (0x29793f00, 1 entry) Waiting to be notified: "tcp/142.92.129.37:19114 ConnectionHandler" (0x29772f00) <unknown key> (0x295a4f00): <unowned> Waiting to be notified: "Ticker" (0x295a4f00) java.net.SocketOutputStream@286FDA90/287A7E70: owner "Conduit" (0x29628f00, 1 entry) java.io.PushbackInputStream@28700D30/287E1200: owner "Conduit" (0x2966af00, 1 entry) Waiting to be notified: "tcp/142.92.129.37:19114 ConnectionHandler" (0x2968bf00) Freenet.node.FileData$FDataInputStream@286FCEF8/287AB988: owner "Conduit" (0x29628f00, 1 entry) java.net.PlainSocketImpl@286FD6F8/287345F8: owner "main" (0x8151800, 1 entry) <unknown key> (0x294c1f00): owner "Async Garbage Collector" (0x294c1f00, 1 entry) Freenet.support.SplitOutputStream@28701F18/287E76B8: owner "Conduit" (0x2966af00, 1 entry) Freenet.crypt.EntropyPool@286FC2C0/287A59E8: <unowned> Waiting to be notified: "entropySentry" (0x29583f00) Freenet.node.FileData$FDataInputStream@2870E838/2883F3A8: owner "Conduit" (0x297b4f00, 1 entry) java.net.SocketOutputStream@286FED40/287AABC0: owner "Conduit" (0x296acf00, 1 entry) java.net.PlainSocketImpl@286E26B0/28731A90: owner "Debugger agent" (0x29512f00, 1 entry) java.io.PushbackInputStream@286FEFD8/287AA510: owner "Conduit" (0x29607f00, 1 entry) Waiting to be notified: "tcp/142.92.129.37:19114 ConnectionHandler" (0x295e6f00) Freenet.support.SplitOutputStream@286FD9F0/287AB370: owner "Conduit" (0x29607f00, 1 entry) Freenet.node.FileData$FDataInputStream@28702200/287E7F38: owner "Conduit" (0x296acf00, 1 entry) Registered Monitor Dump: Thread queue lock: owner "tcp/127.0.0.1:1868 ConnectionHandler" (0x296cdf00, 1 entry) Name and type hash table lock: <unowned> String intern lock: owner "tcp/127.0.0.1:1868 ConnectionHandler" (0x296cdf00, 1 entry) JNI pinning lock: <unowned> JNI global reference lock: owner "tcp/127.0.0.1:1868 ConnectionHandler" (0x296cdf00, 1 entry) BinClass lock: owner "tcp/127.0.0.1:1868 ConnectionHandler" (0x296cdf00, 1 entry) Class loading lock: <unowned> Java stack lock: <unowned> Code rewrite lock: <unowned> Heap lock: owner "tcp/127.0.0.1:1868 ConnectionHandler" (0x296cdf00, 1 entry) Has finalization queue lock: owner "tcp/127.0.0.1:1868 ConnectionHandler" (0x296cdf00, 1 entry) Finalize me queue lock: owner "tcp/127.0.0.1:1868 ConnectionHandler" (0x296cdf00, 1 entry) Waiting to be notified: "Finalizer thread" (0x294e2f00) Monitor IO lock: <unowned> Child death monitor: <unowned> Event monitor: <unowned> I/O monitor: <unowned> Alarm monitor: <unowned> Waiting to be notified: "Clock" (0x2947ff00) Memory allocation lock: <unowned> Monitor registry: owner "tcp/127.0.0.1:1868 ConnectionHandler" (0x296cdf00, 1 entry) Thread Alarm Q: sys_thread_t 0x2970ff00 [Timeout expired] sys_thread_t 0x296eef00 [Timeout expired] sys_thread_t 0x295a4f00 [Timeout expired] sys_thread_t 0x29607f00 [Timeout in 598708 ms] sys_thread_t 0x2966af00 [Timeout in 598932 ms] sys_thread_t 0x29793f00 [Timeout in 599055 ms] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?27409.957284221>