From: masaki.suketa@... Date: 2016-09-25T00:43:14+00:00 Subject: [ruby-core:77390] [Ruby trunk Bug#12778][Closed] Segmentation Fault in win32ole on Ruby 2.3.1p112 [x64-mingw32] when creating Windows Share Issue #12778 has been updated by Masaki Suketa. Status changed from Open to Closed Backport changed from 2.1: UNKNOWN, 2.2: DONE, 2.3: DONE to 2.2: DONE, 2.3: DONE ---------------------------------------- Bug #12778: Segmentation Fault in win32ole on Ruby 2.3.1p112 [x64-mingw32] when creating Windows Share https://bugs.ruby-lang.org/issues/12778#change-60639 * Author: Richard Lavey * Status: Closed * Priority: Normal * Assignee: * ruby -v: ruby 2.3.1p112 (2016-04-26 revision 54768) [x64-mingw32] * Backport: 2.2: DONE, 2.3: DONE ---------------------------------------- Whilst using ruby to create a shared folder on Windows I encountered a seg fault. This reproduces the issue on Windows 2012R2. `\Ruby23-x64\bin\ruby -rwin32ole -e 'wmi = WIN32OLE.connect("winmgmts://"); share = wmi.get("Win32_Share"); puts share.create("c:\\test2", "test", 0, 16777216, "", nil, nil)'` The stack dump is attached ~~~ c:0003 p:---- s:0018 e:000017 CFUNC :method_missing ~~~ The cause is the empty string in the call to `create()`. Changing this to nil or a non-empty string works. The x86 version of Ruby is unaffected. ---Files-------------------------------- ruby seg.txt (5.58 KB) -- https://bugs.ruby-lang.org/ Unsubscribe: