Bug #3672

PTY.getpty with non exist program

Added by Yui NARUSE about 5 years ago. Updated over 4 years ago.

Assignee:Akira Tanaka
ruby -v:ruby 1.9.3dev (2010-08-09 trunk 28938) [x86_64-freebsd8.1] Backport:


存在しないプログラムを指定して PTY.getpty を呼ぶと [BUG] になります。
PTY.getpty 側での対処と 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>'

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

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


#1 Updated by Shyouhei Urabe about 5 years ago

  • Status changed from Open to Assigned
  • Assignee set to Akira Tanaka



#2 Updated by Nobuyoshi Nakada about 5 years ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100

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.


Also available in: Atom PDF