Bug #3672

PTY.getpty with non exist program

Added by Yui NARUSE over 3 years ago. Updated almost 3 years ago.

[ruby-dev:41965]
Status:Closed
Priority:Normal
Assignee:Akira Tanaka
Category:core
Target version:1.9.3
ruby -v:ruby 1.9.3dev (2010-08-09 trunk 28938) [x86_64-freebsd8.1] Backport:

Description

=begin
存在しないプログラムを指定して PTY.getpty を呼ぶと [BUG] になります。
PTY.getpty 側での対処と rbforkerr 側での対処がありえますが、
とりあえず後者側でも対処が必要でしょう。

% ./ruby -rpty -e'PTY.getpty"a"'

-e:1: [BUG] rbsysfail(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

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

History

#1 Updated by Shyouhei Urabe over 3 years ago

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

=begin

=end

#2 Updated by Nobuyoshi Nakada over 3 years ago

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

=begin
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.

=end

Also available in: Atom PDF