This project is closed and read-only.
Actions
Backport #7516
closedDL::Function#bind causes SEGV when Fiddle is available
Backport #7516:
DL::Function#bind causes SEGV when Fiddle is available
Status:
Closed
Assignee:
Description
The following script causes SEGV in "f.call(123, 456)" when fiddle is available.
Without Fiddle, it shows correct result.
require 'dl'
require 'dl/func'
include DL
f = Function.new(CFunc.new(0, TYPE_INT, 'test'), [TYPE_INT, TYPE_INT])
f.bind { |x,y| x + y }
p f.call(123, 456)
Actions