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

Bug #3672: PTY.getpty with non exist program

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]
PTY.getpty e$BB&$G$NBP=h$He(B rb_fork_err

% ./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:ingetpty’

You may have encountered a bug in the Ruby interpreter or extension
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html

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

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.


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs