Project

General

Profile

Bug #3576

WIN32OLE segmentation fault

Added by hasari (Hiro Asari) almost 9 years ago. Updated almost 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
ruby -v:
ruby 1.8.7 (2010-06-23 patchlevel 299) [i386-mingw32]
[ruby-core:31304]

Description

=begin
This simple code results in seg fault.

C:>ruby -v -r win32ole -e "ev = WIN32OLE_EVENT.new(WIN32OLE.new('Scripting.Dictionary'))"
ruby 1.8.7 (2010-06-23 patchlevel 299) [i386-mingw32]
-e:1: [BUG] Segmentation fault
ruby 1.8.7 (2010-06-23 patchlevel 299) [i386-mingw32]

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

The same code raises RuntimeError in 1.9.1:

C:>ruby -v -r win32ole -e "ev = WIN32OLE_EVENT.new(WIN32OLE.new('Scripting.Dictionary'))"
ruby 1.9.1p429 (2010-07-02 revision 28523) [i386-mingw32]
-e:1:in initialize': interface not found (RuntimeError)
HRESULT error code:0x80004002
No such interface supported
from -e:1:in
new'
from -e:1:in `'
=end

Associated revisions

Revision 81400825
Added by suke (Masaki Suketa) over 8 years ago

  • ext/win32ole/win32ole.c (fev_initialize): initialize pTypeInfo. [ruby-core:31304][Bug #3576].

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@28738 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 28738
Added by suke (Masaki Suketa) over 8 years ago

  • ext/win32ole/win32ole.c (fev_initialize): initialize pTypeInfo. [ruby-core:31304][Bug #3576].

Revision 699a20e9
Added by shyouhei (Shyouhei Urabe) over 8 years ago

Sat, 24 Jul 2010 06:49:35 +0000 suke suke@b2dd03c8-39d4-4d8f-98ff-823fe69b080e
merge revision(s) 28378:

* ext/win32ole/win32ole.c (fev_initialize): initialize pTypeInfo.
[ruby-core:31304][Bug #3576].

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@28738 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Signed-off-by: URABE, Shyouhei shyouhei@ruby-lang.org

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@29857 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

History

#1

Updated by suke (Masaki Suketa) over 8 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

=begin
This issue was solved with changeset r28738.
Hiro, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.

=end

Also available in: Atom PDF