FFI::Library#callback not passing config hash
---------------------------------------------
Key: JRUBY-4362
URL: http://jira.codehaus.org/browse/JRUBY-4362
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Affects Versions: JRuby 1.4
Environment: Windows Vista Home Premium SP2
Reporter: Jon
The callback method on line 142 of
http://github.com/jruby/jruby/blob/master/lib/ruby/site_ruby/shared/ffi/library.rb
does not pass the config hash to FFI::CallbackInfo.new resulting in incorrect
calling convention when used with WindowsAPI stdcall functions and potential
segfaults.
While the original issue was discovered on MRI 1.8.6-p383 and 1.9.1-p243 with a
segfault (strangely, no segfault on JRuby) JRuby's FFI::Library#callback code
appears to need updated similar to the MRI fix. The config hash containing the
callback's calling convention needs to be used.
Details ->
http://groups.google.com/group/ruby-ffi/browse_thread/thread/1712f5507b15b467
--
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