Subject:
[ruby-ffi] jruby crash
From:
rogerdpack
Date:
8/11/10 6:44 AM
To:
ruby-ffi

Anybody have any pointers on what might be happening with this jruby
ffi crash?

http://jira.codehaus.org/browse/JRUBY-4916

Basically using the enumerate windows win32api several times in jruby
results in:

#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x01b7b7c3, pid=3372,
tid=5564
#
# JRE version: 6.0_18-b07
# Java VM: Java HotSpot(TM) Client VM (16.0-b13 mixed mode, sharing
windows-x86 )
# Problematic frame:
# J  com.kenai.jffi.Foreign.invokeArrayReturnInt(J[B)I

also reproducible with this: http://gist.github.com/518855

Seems to work fine with MRI.
Thanks.