Project

General

Profile

Actions

Bug #3672

closed

PTY.getpty with non exist program

Added by naruse (Yui NARUSE) over 14 years ago. Updated over 13 years ago.

Status:
Closed
Target version:
ruby -v:
ruby 1.9.3dev (2010-08-09 trunk 28938) [x86_64-freebsd8.1]
Backport:
[ruby-dev:41965]

Description

=begin
存在しないプログラムを指定して 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>' -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

Actions #1

Updated by shyouhei (Shyouhei Urabe) over 14 years ago

  • Status changed from Open to Assigned
  • Assignee set to akr (Akira Tanaka)

=begin

=end

Actions #2

Updated by nobu (Nobuyoshi Nakada) over 14 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

Actions

Also available in: Atom PDF

Like0
Like0Like0