我无法在控制台模拟器上使用Ruby,ConEmu,PowerCmd, Ruby程序在Windows默认CMD上执行完美,(我讨厌它) 我尝试卸载Ruby并再次安装它,但它不起作用。一旦 程序试图进入,(当没有输入程序执行时) 好的)这是我在ConEmu上的错误信息:
C:\Users\1234> "D:\Desktopbackup\Ruby lessons\1102divdbyZero.rb"
Enter numerator: D:/Desktopbackup/Ruby lessons/1102divdbyZero.rb:2:
[BUG] Segmentation
ruby 2.1.5p273 (2014-11-13 revision 48405) [i386-mingw32]
-- Control frame information
-----------------------------------------------
c:0004 p:---- s:0012 e:000011 CFUNC :gets
c:0003 p:---- s:0010 e:000009 CFUNC :gets
c:0002 p:0013 s:0007 E:002638 EVAL D:/Desktopbackup/Ruby
lessons/1102divdbyZero.rb:2
c:0001 p:0000 s:0002 E:002024 TOP [FINISH]
D:/Desktopbackup/Ruby lessons/1102divdbyZero.rb:2:in `<main>'
D:/Desktopbackup/Ruby lessons/1102divdbyZero.rb:2:in `gets'
D:/Desktopbackup/Ruby lessons/1102divdbyZero.rb:2:in `gets'
-- C level backtrace information
-------------------------------------------
C:\Windows\SysWOW64\ntdll.dll(ZwWaitForSingleObject+0x15) [0x7769F8D1]
C:\Windows\syswow64\kernel32.dll(WaitForSingleObjectEx+0x43)
[0x766C1194]
C:\Windows\syswow64\kernel32.dll(WaitForSingleObject+0x12) [0x766C1148]
C:\Ruby21\bin\msvcrt-ruby210.dll(rb_vm_bugreport+0xa7) [0x6D394A17]
C:\Ruby21\bin\msvcrt-ruby210.dll(rb_name_err_mesg_new+0x69f)
[0x6D248F7F]
C:\Ruby21\bin\msvcrt-ruby210.dll(rb_bug+0x2e) [0x6D249D5E]
C:\Ruby21\bin\msvcrt-ruby210.dll(rb_check_safe_str+0x34b) [0x6D31486B]
[0x00401866]
C:\Windows\SysWOW64\ntdll.dll(RtlKnownExceptionFilter+0xb7) [0x776F74FF]
-- Other runtime information
-----------------------------------------------
* Loaded script: D:/Desktopbackup/Ruby lessons/1102divdbyZero.rb
* Loaded features:
0 enumerator.so
1 C:/Ruby21/lib/ruby/2.1.0/i386-mingw32/enc/encdb.so
2 C:/Ruby21/lib/ruby/2.1.0/i386-mingw32/enc/iso_8859_1.so
3 C:/Ruby21/lib/ruby/2.1.0/i386-mingw32/enc/trans/transdb.so
4 C:/Ruby21/lib/ruby/2.1.0/i386-mingw32/rbconfig.rb
5 C:/Ruby21/lib/ruby/2.1.0/rubygems/compatibility.rb
6 C:/Ruby21/lib/ruby/2.1.0/rubygems/defaults.rb
7 C:/Ruby21/lib/ruby/2.1.0/rubygems/deprecate.rb
8 C:/Ruby21/lib/ruby/2.1.0/rubygems/errors.rb
9 C:/Ruby21/lib/ruby/2.1.0/rubygems/version.rb
10 C:/Ruby21/lib/ruby/2.1.0/rubygems/requirement.rb
11 C:/Ruby21/lib/ruby/2.1.0/rubygems/platform.rb
12 C:/Ruby21/lib/ruby/2.1.0/rubygems/basic_specification.rb
13 C:/Ruby21/lib/ruby/2.1.0/rubygems/stub_specification.rb
14 C:/Ruby21/lib/ruby/2.1.0/rubygems/util/stringio.rb
15 C:/Ruby21/lib/ruby/2.1.0/rubygems/specification.rb
16 C:/Ruby21/lib/ruby/2.1.0/rubygems/exceptions.rb
17 C:/Ruby21/lib/ruby/2.1.0/rubygems/defaults/operating_system.rb
18 C:/Ruby21/lib/ruby/2.1.0/rubygems/core_ext/kernel_gem.rb
19 thread.rb
20 C:/Ruby21/lib/ruby/2.1.0/i386-mingw32/thread.so
21 C:/Ruby21/lib/ruby/2.1.0/monitor.rb
22 C:/Ruby21/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb
23 C:/Ruby21/lib/ruby/2.1.0/rubygems.rb
[NOTE]
You may have encountered a bug in the Ruby interpreter or extension
libraries.
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.
并在其他控制台PowerCmd上获取输入后,它变为空白。 我一直试图解决这个问题几天徒劳无功。
编辑:我报告了错误,这是我收到的回复:
这在代码中修复:bugs.ruby-lang.org/projects/ruby-trunk/repository/revisions/...这将是下一个版本的一部分。我建议您使用cmd.exe,直到修补程序附带更新版本。