Bug #2358: Segmentation fault using dl/import
http://redmine.ruby-lang.org/issues/show/2358

Author: Luis Adolfo Hernandez Lara
Status: Open, Priority: Normal
Category: lib
ruby -v: ruby 1.9.1p243 (2009-07-16 revision 24175) [i386-mingw32]

I try to include in my ruby application the zkemsdk.dll.

When I invoke the second function named 'short Z_GetTime()', I got this:

****************************************************************
72 ==> return by Z_Connect_NET: the conection is true
C:/Ruby19/lib/ruby/1.9.1/dl/func.rb:39: [BUG] Segmentation fault
ruby 1.9.1p243 (2009-07-16 revision 24175) [i386-mingw32]

-- control frame ----------
c:0006 p:---- s:0023 b:0023 l:000022 d:000022 CFUNC  :call
c:0005 p:0076 s:0019 b:0019 l:000018 d:000018 METHOD C:/Ruby19/lib/ruby/1.9.1/dl/func.rb:39
c:0004 p:0019 s:0012 b:0012 l:000011 d:000011 METHOD (eval):2
c:0003 p:0071 s:0007 b:0006 l:00139c d:000d4c EVAL   C:/Users/luis/Documents/NetBeansProjects/RubyApplication1/lib/main.rb:12
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:00139c d:00139c TOP   
---------------------------
-- Ruby level backtrace information-----------------------------------------
C:/Ruby19/lib/ruby/1.9.1/dl/func.rb:39:in `call'
C:/Ruby19/lib/ruby/1.9.1/dl/func.rb:39:in `call'
(eval):2:in `Z_GetTime'
C:/Users/luis/Documents/NetBeansProjects/RubyApplication1/lib/main.rb:12:in `<main>'

[NOTE]
You may encounter a bug of Ruby interpreter. Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html


This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.


----------------------------------------
http://redmine.ruby-lang.org