[prev in list] [next in list] [prev in thread] [next in thread] 

List:       grinder-development
Subject:    [Grinder-development] [ grinder-Bugs-1604111 ] Deadlock on shutdown
From:       "SourceForge.net" <noreply () sourceforge ! net>
Date:       2006-11-27 22:59:10
Message-ID: E1GopRO-00087f-Li () sc8-sf-web8 ! sourceforge ! net
[Download RAW message or body]

Bugs item #1604111, was opened at 2006-11-27 22:59
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=118598&aid=1604111&group_id=18598

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: TCPProxy
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Philip Aston (philipa)
Assigned to: Philip Aston (philipa)
Summary: Deadlock on shutdown

Initial Comment:
Seen in the wild.

Console shut down thread:

"AWT-EventQueue-0" prio=7 tid=0x02efb8c8 nid=0xe74 in Object.wait() \
[55df000..55dfd68]  at java.lang.Object.wait(Native Method)
	- waiting on <0x105f0a90> (a java.lang.Thread)
	at java.lang.Thread.join(Thread.java:1001)
	- locked <0x105f0a90> (a java.lang.Thread)
	at java.lang.Thread.join(Thread.java:1054)
	at net.grinder.tools.tcpproxy.AbstractTCPProxyEngine$StreamThread.stop(AbstractTCPProxyEngine.java:299)
  at net.grinder.tools.tcpproxy.AbstractTCPProxyEngine.stop(AbstractTCPProxyEngine.java:145)
                
	- locked <0x1057eae8> (a java.net.ServerSocket)
	at net.grinder.tools.tcpproxy.HTTPProxyTCPProxyEngine.stop(HTTPProxyTCPProxyEngine.java:378)
  at net.grinder.tools.tcpproxy.TCPProxyConsole$2.actionPerformed(TCPProxyConsole.java:72)
  at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
	at 
        ....

blocking waiting for thread that is trying to connect:


"HTTPProxyStreamDemultiplexer for \
Socket[addr=localhost/127.0.0.1,port=1317,localport=8001]" prio=5 tid=0x02f3d978 \
nid=0x9f4 runnable [56ff000..56ffd68]  at \
java.net.PlainSocketImpl.socketConnect(Native Method)  at \
                java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
	- locked <0x105f0ad8> (a java.net.PlainSocketImpl)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
	at java.net.Socket.connect(Socket.java:452)
	at java.net.Socket.connect(Socket.java:402)
	at java.net.Socket.<init>(Socket.java:309)
	at java.net.Socket.<init>(Socket.java:124)
	at net.grinder.tools.tcpproxy.TCPProxySocketFactoryImplementation.createClientSocket(TCPProxySocketFactoryImplementation.java:73)
  at net.grinder.tools.tcpproxy.HTTPProxyTCPProxyEngine$HTTPProxyStreamDemultiplexer.run(HTTPProxyTCPProxyEngine.java:498)
  at java.lang.Thread.run(Thread.java:534)



At the very least, this can cause a delayed shut down. Probably should make streams \
interruptible.

Thanks to Graham Sweetland for reproducing this.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=118598&aid=1604111&group_id=18598

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Grinder-development mailing list
Grinder-development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/grinder-development


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic