Exception_access_violation

Hi,

I have some serious crash’s outside the jvm.
It happens when using mechanize (0.9.3) and nokogiri (1.4.1-java)
on Windows XP 32.


jruby -v

jruby 1.4.0 (ruby 1.8.7 patchlevel 174) (2009-12-04 6586) (Java
HotSpot™ Clie
nt VM 1.6.0_18) [x86-java]

There is another thread with almost the same problems
http://www.ruby-forum.com/topic/201570?reply_to=885568#877800

.log

Stack: [0x05600000,0x05800000], sp=0x057f6e04, free space=7db057f6938k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code,
C=native code)
C [ntdll.dll+0x1b21a]
C [ntdll.dll+0x1046]
j com.kenai.jffi.Foreign.invokeVrI(J)I+0
j com.kenai.jffi.Invoker.invokeVrI(Lcom/kenai/jffi/Function;)I+8
j
org.jruby.ext.ffi.jffi.FastIntMethodZeroArg.call(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/RubyModule;Ljava/lang/String;)Lorg/jruby/runtime/builtin/IRubyObject;+12
J

I also found that this line of code does the same crash:

@doc = Nokogiri::XML(…)

Thanks!

Oliver

Hi Oliver,

In the upcoming JRuby 1.5, there were lots of changes/bugfixes related
to calling native code from within JRuby.

Could you please try the latest snapshot to verify that this problem is
fixed:
http://ci.jruby.org/snapshots/

Thanks,
–Vladimir

On Thu, Feb 11, 2010 at 10:21 AM, Oliver T. [email protected]
wrote:

HotSpot™ Clie
C=native code)

http://xircles.codehaus.org/manage_email


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Hi Vladimir,

I tried the 1.5-dev, but the problem persists.
The same configuration jruby 1.4 etc. runs without problems on
my Win 2003 server.

Stack: [0x04660000,0x04760000], sp=0x04755f84, free space=3d704755ab8k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code,
C=native code)
C [ntdll.dll+0x1b21a]
C [ntdll.dll+0x1046]
j com.kenai.jffi.Foreign.invokeVrI(J)I+0
j com.kenai.jffi.Invoker.invokeVrI(Lcom/kenai/jffi/Function;)I+8
j
org.jruby.ext.ffi.jffi.FastIntMethodZeroArg.call(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/RubyModule;Ljava/lang/String;)Lorg/jruby/runtime/builtin/IRubyObject;+12
J
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/RubyClass;Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
J

jruby -v
jruby 1.5.0.dev (ruby 1.8.7 patchlevel 174) (2010-02-10 a94cc80) (Java
HotSpot(T
M) Client VM 1.6.0_18) [x86-java]

Hi Vladimir,

ok I do that.
While preparing the test case, it was not possible to crash the jvm
inside a ruby script.

The jvm does only crash when using nokogiri inside a rails app.
I didnt realize that before, cause I was only using nokogiri with rails.

Hi Vladimir,

I am having the same problem with jruby 1.5.2 on Win XP and my jvm
crashes when I am using a simple ruby script (No rails app).

All files are here: http://jira.codehaus.org/browse/JRUBY-4555

Thanks,
Martin


http://twitter.com/MartinGross

On Thu, Feb 11, 2010 at 14:54, Oliver T. [email protected]
wrote:


Posted via http://www.ruby-forum.com/.


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Hi Oliver,

Thanks for trying that on 1.5.dev as well. So, the problem is still
there, it seems.

Would you mind filing a bug in JRuby’s bug tracker?
http://jira.codehaus.org/browse/JRUBY

Please specify exact steps to reproduce, and possibly minimal example
that crashes JRuby for you.
And we’ll take from there.

Thanks,
–Vladimir

On Thu, Feb 11, 2010 at 11:44 AM, Oliver T. [email protected]
wrote:

C [ntdll.dll+0x1046]
HotSpot(T


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Update: As this seems to be a libxml2 related error I tried to find a
workaround. The “pure Java” Nokogiri beta (nokogiri-1.5.0.beta.2-java)
worked out of the box for me.

I installed it with:
jgem install nokogiri --pre

http://wiki.github.com/tenderlove/nokogiri/pure-java-nokogiri-for-jruby


http://twitter.com/MartinGross

On Thu, Sep 9, 2010 at 19:23, Martin G. [email protected] wrote:

http://twitter.com/MartinGross

The jvm does only crash when using nokogiri inside a rails app.
http://xircles.codehaus.org/manage_email


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs