I only suggest that it may be some peculiar use of threading because that seems to be the only logical answer. We spin no threads as part of the JRuby code, this much we know. We have also seen some peculiar instances where Ruby uses threads for very small, short operations. Since your parsing seems to be non-deterministic, it would lead me to think there's a threading problem.
The only other possibility I could think of is an issue with the JVM. Have you compared JVM versions to see if you get the errors more or less often? There have been a few peculiar bugs that appeared to be JVM-related under 1.4. They have come and gone for some time; I have not been able to reproduce them under either 1.4 or 1.5 recently.
On 7/7/06, David Corbin <
[EMAIL PROTECTED]> wrote:
On Friday 07 July 2006 11:18, Charles O Nutter wrote:
> I can appreciate your frustration.
>
> It's very possible that one of the Ruby libraries involved IS actually
> spinning up threads. For a long time we thought there was no threading
> going on during gem installs; then we found that goofy timeout library that
> spawns a thread for every 1024-byte read. It's possible that somewhere, for
> some reason, one of the libraries being invoked uses some of Ruby's
> "lightweight threads" to move the parsing process along.
>
In JRuby, aren't Ruby's lightweight threads really Java native threads? If
so, then that is not the cause. I debugged it with a breakpoint on have call
to Thread#start, and got no hits. AND, I watched the threads in the debug
view.
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Jruby-devel mailing list
Jruby-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jruby-devel
--
Charles Oliver Nutter @ headius.blogspot.com
JRuby Developer @ www.jruby.org
Application Architect @ www.ventera.com
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ Jruby-devel mailing list Jruby-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jruby-devel