Bug #2358

Segmentation fault using dl/import

Added by chavista (Luis Adolfo Hernandez Lara) over 10 years ago. Updated 12 months ago.

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'
(eval):2:in Z_GetTime'

You may encounter a bug of Ruby interpreter. Bug reports are welcome.
For details:

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


main.rb (227 Bytes) main.rb Script que genera la excepcion chavista (Luis Adolfo Hernandez Lara), 11/12/2009 06:08 AM
zkemsdk.rar (838 KB) zkemsdk.rar Rar que contiene los DLLs y un manual de la dll. chavista (Luis Adolfo Hernandez Lara), 11/12/2009 06:08 AM

Updated by ujihisa (Tatsuhiro Ujihisa) over 10 years ago

  • Status changed from Open to Assigned
  • Assignee set to nobu (Nobuyoshi Nakada)




Updated by rogerdpack (Roger Pack) over 10 years ago

could you give us the gdb backtrace? (suspected bug in the extension...)


Updated by rogerdpack (Roger Pack) about 10 years ago

does it work if you use ffi? what about on trunk(which uses ffi for its dl stuff)?


Updated by jeremyevans0 (Jeremy Evans) 12 months ago

  • Status changed from Assigned to Closed
  • Description updated (diff)

Also available in: Atom PDF