Race condition in IO
--------------------
Key: JRUBY-2779
URL: http://jira.codehaus.org/browse/JRUBY-2779
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Affects Versions: JRuby 1.1.2
Environment: jruby 1.1.3-dev (ruby 1.8.6 patchlevel 114) (2008-07-11
rev 7140+2) [i386-java]
Reporter: Vladimir Sizikov
The following simple example crashes JRuby from time to time:
{noformat}
f_name = "data.dat"
100000.times {
# open, then dup
file = File.open(f_name)
dup = file.dup
# close original then seek the dup
file.close
dup.seek(1)
# clean-up
dup.close unless dup.closed?
}
{noformat}
This also leads to occasional, non-deterministic rubyspec failures, esp. during
'ant test'
I was able to reproduce the crash on Linux and Windows (but not every time).
--
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