Bug #2358
closedSegmentation fault using dl/import
Description
=begin
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
'
[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.
=end
Files
Updated by ujihisa (Tatsuhiro Ujihisa) over 14 years ago
- Status changed from Open to Assigned
- Assignee set to nobu (Nobuyoshi Nakada)
=begin
=end
Updated by rogerdpack (Roger Pack) about 14 years ago
=begin
could you give us the gdb backtrace? (suspected bug in the extension...)
=end
Updated by rogerdpack (Roger Pack) almost 14 years ago
=begin
does it work if you use ffi? what about on trunk(which uses ffi for its dl stuff)?
=end
Updated by jeremyevans0 (Jeremy Evans) over 4 years ago
- Description updated (diff)
- Status changed from Assigned to Closed