Yoko Harada created JRUBY-6601:
----------------------------------

             Summary: UNIX socket tests in test/test_socket.rb cause deadlock
                 Key: JRUBY-6601
                 URL: https://jira.codehaus.org/browse/JRUBY-6601
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.7
         Environment: jruby 1.7.0.dev (ruby-1.9.3-p139) (2012-04-13 873006d) 
(Java HotSpot(TM) 64-Bit Server VM 1.6.0_31) [darwin-x86_64-java]

java version "1.6.0_31"
Java(TM) SE Runtime Environment (build 1.6.0_31-b04-415-10M3635)
Java HotSpot(TM) 64-Bit Server VM (build 20.6-b01-415, mixed mode)

            Reporter: Yoko Harada


I'm going to re-file this issue. Originally, it was 
https://jira.codehaus.org/browse/JRUBY-4614 .

On my Mac, test_socket.rb still blocks the thread. Thread dump is 
https://gist.github.com/2380016 .
Clearly, test_socket.rb is the culprit. When the line "test_socket" in 
test/jruby_index is commented out, "ant test" finishes.

As I wrote in JRUBY-4614, each test in test_socket finishes when those get run 
individually. However, those won't run concurrently. As you know, unit test 
runs multiple tests concurrently. When unit test gets involved in, dead lock 
happens.

I reported in JRUBY-4614, below caused deadlock:

test_unix_socket_peeraddr
test_can_create_socket_server_and_client_connected_to_it_and_send_from_server_to_client
test_can_create_socket_server_and_client_connected_to_it_and_send_from_client_to_server_using_recvfrom
test_can_create_socket_server_and_client_connected_to_it_and_send_from_server_to_client_using_recvfrom

Currently, those four tests are commented out in master branch. But, still 
test_socket.rb causes dead lock. So, probably, there's some more tests that 
have problems.



--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to