Bug 107117 - Hangup detected on stdin
Summary: Hangup detected on stdin
Keywords:
Status: CLOSED CANTFIX
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: gdb
Version: 9
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Elena Zannoni
QA Contact: David Lawrence
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-10-15 07:26 UTC by Tsukahara Ken
Modified: 2007-04-18 16:58 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-01-02 18:38:16 UTC
Embargoed:


Attachments (Terms of Use)
This patch indicates gdb to use select() instead of poll(). (784 bytes, patch)
2003-10-15 07:35 UTC, Tsukahara Ken
no flags Details | Diff

Description Tsukahara Ken 2003-10-15 07:26:06 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)

Description of problem:
gdb says "Hangup detected on fd 0, error detected on stdin" when it receives 
commands by pipe.
Neither gdb-5.3post-0.20021129.18 nor 6.0.

It may be the poll() system call problem, it sets POLLHUP on revents.


Version-Release number of selected component (if applicable):
5.3post-0.20021129.18

How reproducible:
Always

Steps to Reproduce:
1. $ echo "quit"|gdb


Actual Results:  (gdb) Hangup detected on fd 0
error detected on stdin
$

Expected Results:  (gdb) $

Additional info:

If gdb is compiled to use select() instead of poll(), it works fine.
Configure without HAVE_POLL, HAVE_POLL_H, HAVE_SYS_POLL_H.

Comment 1 Tsukahara Ken 2003-10-15 07:35:37 UTC
Created attachment 95187 [details]
This patch indicates gdb to use select() instead of poll().

Comment 2 Bill Nottingham 2006-08-05 03:46:26 UTC
Red Hat apologizes that these issues have not been resolved yet. We do want to
make sure that no important bugs slip through the cracks.

Red Hat Linux 7.3 and Red Hat Linux 9 are no longer supported by Red Hat, Inc.
They are maintained by the Fedora Legacy project (http://www.fedoralegacy.org/)
for security updates only. If this is a security issue, please reassign to the
'Fedora Legacy' product in bugzilla. Please note that Legacy security update
support for these products will stop on December 31st, 2006.

If this is not a security issue, please check if this issue is still present
in a current Fedora Core release. If so, please change the product and version
to match, and check the box indicating that the requested information has been
provided.

If you are currently still running Red Hat Linux 7.3 or 9, please note that
Fedora Legacy security update support for these products will stop on December
31st, 2006. You are strongly advised to upgrade to a current Fedora Core release
or Red Hat Enterprise Linux or comparable. Some information on which option may
be right for you is available at http://www.redhat.com/rhel/migrate/redhatlinux/.

Any bug still open against Red Hat Linux 7.3 or 9 at the end of 2006 will be
closed 'CANTFIX'. Again, if this bug still exists in a current release, or is a
security issue, please change the product as necessary. We thank you for your
help, and apologize again that we haven't handled these issues to this point.


Comment 4 Bill Nottingham 2007-01-02 18:38:16 UTC
Red Hat Linux 7.3 and Red Hat Linux 9 are no longer supported by Red Hat, Inc.
f you are currently still running Red Hat Linux 7.3 or 9, you are strongly
advised to upgrade to a current Fedora Core release or Red Hat Enterprise Linux
or comparable. Some information on which option may be right for you is
available at http://www.redhat.com/rhel/migrate/redhatlinux/.

Closing as CANTFIX.


Note You need to log in before you can comment on or make changes to this bug.