Project

General

Profile

Bug #2358

Segmentation fault using dl/import

Added by chavista (Luis Adolfo Hernandez Lara) almost 10 years ago. Updated over 8 years ago.

Status:
Assigned
Priority:
Normal
ruby -v:
ruby 1.9.1p243 (2009-07-16 revision 24175) [i386-mingw32]
[ruby-core:26693]

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

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

Associated revisions

Revision 7da40d74
Added by stevenharman (Steven Harman) 4 days ago

backtrace and backtrace_locations can be nil (#2358)

Exception#backtrace and Exception#backtrace_locations can both be nil if
not set. The former can be set via Exception#set_backtrace, but the
later is only ever set at runtime via setup_backtrace.

History

#1

Updated by ujihisa (Tatsuhiro Ujihisa) over 9 years ago

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

=begin

=end

#2

Updated by rogerdpack (Roger Pack) over 9 years ago

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

#3

Updated by rogerdpack (Roger Pack) about 9 years ago

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

Also available in: Atom PDF