Bug 640218

Summary: report tracebacks when running via nohup
Product: Red Hat Enterprise Linux 6 Reporter: David Kutálek <dkutalek>
Component: libreportAssignee: Gavin Romig-Koch <gavin>
Status: CLOSED CURRENTRELEASE QA Contact: BaseOS QE - Apps <qe-baseos-apps>
Severity: medium Docs Contact:
Priority: low    
Version: 6.0CC: jmoskovc, nobody+abrt-devel-list
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-14 14:21:47 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description David Kutálek 2010-10-05 09:21:44 UTC
Description of problem:

[root@timothy plugins-basic]# nohup report /tmp/dummy-report.txt 
nohup: ignoring input and appending output to `nohup.out'
[root@timothy plugins-basic]# cat ./nohup.out 


Where do you want to send this report:
1: ftp
2: localsave
3: RHEL-bugzilla.redhat.com
4: scp
0: cancel
Choice (0-4): Traceback (most recent call last):
  File "/usr/bin/report", line 160, in <module>
    app = report.report(signature, io, **optsDict)
  File "/usr/lib64/python2.6/site-packages/report/__init__.py", line 489, in
report
    choice = buildChoices(signature, io, config, rptopts)
  File "/usr/lib64/python2.6/site-packages/report/__init__.py", line 463, in
buildChoices
    choice = io.queryChoice(_("Where do you want to send this report:"),
choices)
  File "/usr/lib64/python2.6/site-packages/report/io/TextIO.py", line 85, in
queryChoice
    choice = raw_input("Choice (0-%s): " % (count-1,))
IOError: [Errno 9] Bad file descriptor

---

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

report-0.18-7.el6.x86_64

How reproducible:

Always

Steps to Reproduce:
1. nohup report /tmp/dummy-report.txt
2.
3.
  
Actual results:

traceback in nohup.out

Expected results:

When report needs to ask user, but has no tty like because of nohup, it should bail out gracefully with correct error message. Not traback.

Additional info:

Comment 1 Gavin Romig-Koch 2011-01-26 18:43:01 UTC
Not for 6.1, perhaps for 6.2

Comment 3 RHEL Program Management 2011-08-16 03:28:09 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated
in the current release, Red Hat is unfortunately unable to
address this request at this time. Red Hat invites you to
ask your support representative to propose this request, if
appropriate and relevant, in the next release of Red Hat
Enterprise Linux. If you would like it considered as an
exception in the current release, please ask your support
representative.

Comment 5 Jiri Moskovcak 2012-06-14 14:21:47 UTC
The report package has been obsoleted by libreport which doesn't have this problem.