Kernel.system & threads does not work well together
---------------------------------------------------

                 Key: JRUBY-3597
                 URL: http://jira.codehaus.org/browse/JRUBY-3597
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.3
         Environment: jruby 1.3.0 (ruby 1.8.6p287) (2009-04-22 6586) (Java 
HotSpot(TM) Server VM 1.6.0_10) [i386-java]
jruby 1.3.0 (ruby 1.8.6p287) (2009-04-22 6586) (Java HotSpot(TM) Client VM 
1.6.0_04) [x86-java]
            Reporter: Johan Holmberg
         Attachments: error-minimal.rb

I had an application with several threads, where each thread used Kernel.system 
independently of the other threads. But often a command run by Kernel.system 
that is supposed to work fails for some reason. It seems like JRuby can't 
handle that different threads use Kernel.system *at the same time*.

I used a "jruby-complete.jar" built locally from source (from github, revision 
"488c32b7a0cb0d5efd7330e4d5f7fdffe78545c4", from 20-Apr 2009). I get similar 
errors on Linux, XP and Vista.

I have made a tiny test-program that exhibits the same problem as my original 
script. See the attached file "error-minimal.rb". The script is supposed to 
echo the numbers 1..20 by calling the external command "echo" for each number. 
But a (variable) number of the commands fails.

When testing on Windows I created a small "echo"-clone to be sure that I ran a 
real EXE-file.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.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