https://redmine.ruby-lang.org/
https://redmine.ruby-lang.org/favicon.ico?1711330511
2012-01-17T14:20:21Z
Ruby Issue Tracking System
Ruby master - Bug #5897: RubyからWinAPIのCreateProcessを使ったときに引数を間違えるとバグがでる
https://redmine.ruby-lang.org/issues/5897?journal_id=23354
2012-01-17T14:20:21Z
nobu (Nobuyoshi Nakada)
nobu@ruby-lang.org
<ul><li><strong>Category</strong> set to <i>ext</i></li><li><strong>Status</strong> changed from <i>Open</i> to <i>Feedback</i></li><li><strong>Assignee</strong> set to <i>usa (Usaku NAKAMURA)</i></li></ul><p>=begin<br>
再現しません。</p>
<p>$ ruby -v -rWin32API -e "CreateProcess = Win32API.new('kernel32', 'CreateProcess', %w(ipiiiiiipp), 'i')" -e "lpCommandLine = ''" -e "p CreateProcess.call(0, lpCommandLine, 0, 0, 0, 0, 0, 0, '', 0)"<br>
ruby 1.9.3p0 (2011-11-08 revision 33661) [i386-mingw32]<br>
Warning:C:/Program Files (x86)/ruby/1.9.3/i386-mingw32/lib/ruby/1.9.1/rubygems/custom_require.rb:36: Win32API is deprecated after Ruby 1.9.1; use dl directly instead<br>
0</p>
<p>実際のメッセージをそのまま貼ってください。<br>
=end</p>
Ruby master - Bug #5897: RubyからWinAPIのCreateProcessを使ったときに引数を間違えるとバグがでる
https://redmine.ruby-lang.org/issues/5897?journal_id=23494
2012-02-02T01:36:33Z
uy (西行寺 うゆ)
<ul></ul><p>C:/DOCUME~1/teruyo/LOCALS~1/Temp/rbBE.tmp:4: warning: already initialized constant FALSE<br>
C:/Ruby2/lib/ruby/1.9.1/Win32API.rb:25: [BUG] Segmentation fault<br>
ruby 1.9.3p0 (2011-10-30) [i386-mingw32]</p>
<p>-- Control frame information -----------------------------------------------<br>
c:0005 p:---- s:0017 b:0017 l:000016 d:000016 CFUNC :call<br>
c:0004 p:0041 s:0013 b:0013 l:000012 d:000012 METHOD C:/Ruby2/lib/ruby/1.9.1/Win32API.rb:25<br>
c:0003 p:0133 s:0007 b:0007 l:00264c d:000520 EVAL C:/DOCUME~1/teruyo/LOCALS~1/Temp/rbBE.tmp:6<br>
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH<br>
c:0001 p:0000 s:0002 b:0002 l:00264c d:00264c TOP</p>
<p>-- Ruby level backtrace information ----------------------------------------<br>
C:/DOCUME~1/teruyo/LOCALS~1/Temp/rbBE.tmp:6:in <code><main>' C:/Ruby2/lib/ruby/1.9.1/Win32API.rb:25:in </code>call'<br>
C:/Ruby2/lib/ruby/1.9.1/Win32API.rb:25:in `call'</p>
<p>-- C level backtrace information -------------------------------------------<br>
C:\WINDOWS\system32\ntdll.dll(KiFastSystemCallRet+0x0) [0x7c94e514]<br>
C:\WINDOWS\system32\kernel32.dll(WaitForSingleObject+0x12) [0x7c802542]<br>
C:\Ruby2\bin\msvcrt-ruby191.dll(rb_vm_bugreport+0xf9) [0x62e5acc9]<br>
C:\Ruby2\bin\msvcrt-ruby191.dll(rb_name_err_mesg_new+0x17a) [0x62d3a68e]<br>
C:\Ruby2\bin\msvcrt-ruby191.dll(rb_bug+0x2f) [0x62d3b3ef]<br>
C:\Ruby2\bin\msvcrt-ruby191.dll(rb_check_safe_str+0x1a4) [0x62ded27c]<br>
[0x004011e6]<br>
C:\WINDOWS\system32\kernel32.dll(UnhandledExceptionFilter+0x1c7) [0x7c864191]</p>
<p>-- Other runtime information -----------------------------------------------</p>
<ul>
<li>
<p>Loaded script: C:/DOCUME~1/teruyo/LOCALS~1/Temp/rbBE.tmp</p>
</li>
<li>
<p>Loaded features:</p>
<p>0 enumerator.so<br>
1 C:/Ruby2/lib/ruby/1.9.1/i386-mingw32/enc/encdb.so<br>
2 C:/Ruby2/lib/ruby/1.9.1/i386-mingw32/enc/shift_jis.so<br>
3 C:/Ruby2/lib/ruby/1.9.1/i386-mingw32/enc/trans/transdb.so<br>
4 C:/Ruby2/lib/ruby/site_ruby/1.9.1/rubygems/defaults.rb<br>
5 C:/Ruby2/lib/ruby/1.9.1/tsort.rb<br>
6 C:/Ruby2/lib/ruby/site_ruby/1.9.1/rubygems/dependency_list.rb<br>
7 C:/Ruby2/lib/ruby/1.9.1/i386-mingw32/rbconfig.rb<br>
8 C:/Ruby2/lib/ruby/site_ruby/1.9.1/rubygems/deprecate.rb<br>
9 C:/Ruby2/lib/ruby/site_ruby/1.9.1/rubygems/exceptions.rb<br>
10 C:/Ruby2/lib/ruby/site_ruby/1.9.1/rubygems/defaults/operating_system.rb<br>
11 C:/Ruby2/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb<br>
12 C:/Ruby2/lib/ruby/site_ruby/1.9.1/rubygems.rb<br>
13 C:/Ruby2/lib/ruby/1.9.1/i386-mingw32/dl.so<br>
14 C:/Ruby2/lib/ruby/1.9.1/i386-mingw32/fiddle.so<br>
15 C:/Ruby2/lib/ruby/1.9.1/fiddle/function.rb<br>
16 C:/Ruby2/lib/ruby/1.9.1/fiddle/closure.rb<br>
17 C:/Ruby2/lib/ruby/1.9.1/fiddle.rb<br>
18 C:/Ruby2/lib/ruby/1.9.1/dl.rb<br>
19 C:/Ruby2/lib/ruby/1.9.1/Win32API.rb</p>
</li>
</ul>
<p>[NOTE]<br>
You may have encountered a bug in the Ruby interpreter or extension libraries.<br>
Bug reports are welcome.<br>
For details: <a href="http://www.ruby-lang.org/bugreport.html" class="external">http://www.ruby-lang.org/bugreport.html</a></p>
<p>This application has requested the Runtime to terminate it in an unusual way.<br>
Please contact the application's support team for more information.</p>
Ruby master - Bug #5897: RubyからWinAPIのCreateProcessを使ったときに引数を間違えるとバグがでる
https://redmine.ruby-lang.org/issues/5897?journal_id=73416
2018-08-09T08:22:53Z
mame (Yusuke Endoh)
mame@ruby-lang.org
<ul><li><strong>Status</strong> changed from <i>Feedback</i> to <i>Rejected</i></li></ul><p>本日の開発者会議でこのチケットを議論しましたが、このAPIはFFIの薄いラッパなので、特に[BUG]を防ぐ予定はないとのことでした。</p>