# \[Bug #3672\] PTY.getpty with non exist program

**URL:** <https://www.ruby-forum.com/t/bug-3672-pty-getpty-with-non-exist-program/193020>\
**Category:** Development\
**Created:** [August 10, 2010, 3:49am UTC](https://www.ruby-forum.com/t/bug-3672-pty-getpty-with-non-exist-program/193020 "2010-08-10T03:49:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yui\_NARUSE](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/8edcca/32.png) [@Yui\_NARUSE](https://www.ruby-forum.com/u/Yui_NARUSE)\
**Post date:** [August 10, 2010, 3:49am UTC](https://www.ruby-forum.com/t/bug-3672-pty-getpty-with-non-exist-program/193020/1 "2010-08-10T03:49:06Z")

</div>

Bug #3672: PTY.getpty with non exist program  
[http://redmine.ruby-lang.org/issues/show/3672](http://redmine.ruby-lang.org/issues/show/3672)

e$B5/I\<\<Te(B: Yui NARUSE  
e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal  
e$B%+%F%4%je(B: core, Target version: 1.9.3  
ruby -v: ruby 1.9.3dev (2010-08-09 trunk 28938) [x86\_64-freebsd8.1]

e$BB8:\_$7$J$$%W%m%0%i%`$r;XDj$7$Fe(B PTY.getpty e$B$r8F$V$He(B [BUG]  
e$B$K$J$j$^$9!#e(B  
PTY.getpty e$BB&$G$NBP=h$He(B rb\_fork\_err  
e$BB&$G$NBP=h$,$"$j$($^$9$,!“e(B  
e$B$H$j$”$($:8e\<TB&$G$bBP=h$,I,MW$G$7$g$&!#e(B

% ./ruby -rpty -e’PTY.getpty"a"’  
-e:1: [BUG] rb\_sys\_fail(fork failed) - errno == 0  
ruby 1.9.3dev (2010-08-09 trunk 28938) [x86\_64-freebsd8.1]

## – control frame ---------- c:0004 p:---- s:0010 b:0010 l:000009 d:000009 CFUNC :getpty c:0003 p:0017 s:0006 b:0006 l:0024b8 d:0010e8 EVAL -e:1 c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH c:0001 p:0000 s:0002 b:0002 l:0024b8 d:0024b8 TOP

## – Ruby level backtrace information

-e:1:in `<main>' -e:1:in `getpty’

[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)

zsh: abort (core dumped) ./ruby -rpty -e’PTY.getpty"a"’

---

<div class="post-metadata">

**Author:** ![Yui\_NARUSE](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/8edcca/32.png) [@Yui\_NARUSE](https://www.ruby-forum.com/u/Yui_NARUSE)\
**Post date:** [September 2, 2010, 11:23pm UTC](https://www.ruby-forum.com/t/bug-3672-pty-getpty-with-non-exist-program/193020/2 "2010-09-02T23:23:07Z")

</div>

e$B%A%1%C%He(B #3672 e$B$,99?7$5$l$^$7$?!#e(B (by Nobuyoshi N.)

e$B%9%F!\<%?%9e(B Assignede$B$+$ie(BClosede$B$KJQ99e(B  
e$B?JD=e(B % 0e$B$+$ie(B100e$B$KJQ99e(B

This issue was solved with changeset r29169.  
Yui, thank you for reporting this issue.  
Your contribution to Ruby is greatly appreciated.  
May Ruby be with you.

* * *

[http://redmine.ruby-lang.org/issues/show/3672](http://redmine.ruby-lang.org/issues/show/3672)
