FFI Stack Level Too Deep on Library.send(:method, args)
-------------------------------------------------------
Key: JRUBY-3407
URL: http://jira.codehaus.org/browse/JRUBY-3407
Project: JRuby
Issue Type: Bug
Affects Versions: JRuby 1.1.6
Environment: java version "1.5.0_16" / Java(TM) 2 Runtime Environment,
Standard Edition (build 1.5.0_16-b06-284) / Java HotSpot(TM) Client VM (build
1.5.0_16-133, mixed mode, sharing)
JRuby 1.1.6
MacOSX 10.5.6
Reporter: John Mettraux
Assignee: Thomas E Enebo
Priority: Minor
http://gist.github.com/65061
---8<---
require 'rubygems'
require 'ffi'
module Hello
extend FFI::Library
attach_function 'puts', [ :string ], :int
end
Hello.puts("hello a")
Hello.send(:puts, "hello b")
# jmettraux:~/tmp/ffi$ ruby stack_level_too_deep.rb
# hello a
# hello b
# jmettraux:~/tmp/ffi$ ruby19 stack_level_too_deep.rb
# hello a
# hello b
# jmettraux:~/tmp/ffi$ jruby-1.1.6 stack_level_too_deep.rb
# hello a
# Error: Your application used more stack memory than the safety cap of 1024k.
# Specify -J-Xss####k to increase it (#### = cap size in KB).
# Specify -w for full StackOverflowError stack trace
--->8---
--
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