# Newbie problem

**URL:** <https://www.ruby-forum.com/t/newbie-problem/233463>\
**Category:** Ruby\
**Created:** [December 16, 2014, 5:29am UTC](https://www.ruby-forum.com/t/newbie-problem/233463 "2014-12-16T05:29:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![addis\_a](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c4cdca/32.png) [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Post date:** [December 16, 2014, 5:29am UTC](https://www.ruby-forum.com/t/newbie-problem/233463/1 "2014-12-16T05:29:27Z")

</div>

Hi guyz I need help,  
I am unable to use Ruby on consoles emulators, ConEmu, PowerCmd,  
Ruby programs execute perfect on windows default CMD, (and I hate it)  
I tried uninstalling Ruby and install it again but it doesn’t work. once  
the program try to get in put, (when there is no input program execute  
fine) here is the error message I am getting on 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:

[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](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.

and on other console PowerCmd once it’s get the input it gets blank.

I have been trying to solve this problem for couple of days in vain.  
Help me here I’ll be grateful.

Regards,

Iffi

---

<div class="post-metadata">

**Author:** ![iffitheking](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/8edcca/32.png) [@iffitheking](https://www.ruby-forum.com/u/iffitheking)\
**Post date:** [December 18, 2014, 7:14am UTC](https://www.ruby-forum.com/t/newbie-problem/233463/2 "2014-12-18T07:14:13Z")

</div>

Meaby is something about input and output of information. Research that.  
Go around this =\>

> <https://stackoverflow.com/questions/1883925/kernelgets-attempts-to-read-file-instead-of-standard-input>

.

---

<div class="post-metadata">

**Author:** ![iffitheking](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/8edcca/32.png) [@iffitheking](https://www.ruby-forum.com/u/iffitheking)\
**Post date:** [December 18, 2014, 3:58pm UTC](https://www.ruby-forum.com/t/newbie-problem/233463/3 "2014-12-18T15:58:55Z")

</div>

I reported this bug to Ruby, and they said, it’s bug, yes and will be  
fixed in new release.
