Bug 1204515

Summary: [abrt] dnf: output.py:2126:_out_event:IOError: [Errno 5] Input/output error
Product: [Fedora] Fedora Reporter: Jan Vesely <jan.vesely>
Component: dnfAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED INSUFFICIENT_DATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 21CC: jan.vesely, jsilhan, mluscon, p6e7gr, packaging-team-maint, pnemade, rholy, tim.lauridsen
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/be144f66d59fe759e1cdfce26e0798eb84ff7383
Whiteboard: abrt_hash:0ca556b8d8e2640ee4313ff397384f968364eaf2
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-07-21 11:37:51 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:
Attachments:
Description Flags
File: backtrace
none
File: environ none

Description Jan Vesely 2015-03-22 20:38:04 UTC
Description of problem:
gnome terminal crashed while running dnf update

Version-Release number of selected component:
dnf-0.6.4-1.fc21

Additional info:
reporter:       libreport-2.3.0
cmdline:        /usr/bin/python -OO /bin/dnf update
executable:     /bin/dnf
kernel:         3.18.9-200.fc21.x86_64
runlevel:       N 5
type:           Python
uid:            0

Truncated backtrace:
output.py:2126:_out_event:IOError: [Errno 5] Input/output error

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/dnf/yum/rpmtrans.py", line 393, in callback
    self._instProgress( bytes, total, h )
  File "/usr/lib/python2.7/site-packages/dnf/yum/rpmtrans.py", line 466, in _instProgress
    self.total_actions)
  File "/usr/lib/python2.7/site-packages/dnf/cli/output.py", line 2102, in event
    percent, process, pkgname, wid1)
  File "/usr/lib/python2.7/site-packages/dnf/cli/output.py", line 2126, in _out_event
    sys.stdout.flush()
IOError: [Errno 5] Input/output error

Local variables in innermost frame:
ts_total: 15L
pkgname: u'libquvi-scripts-0.9.20131130-4.fc21.noarch'
process: u'Upgrading'
fmt: u'  %s: %s    7/15'
percent: 100L
ts_current: 7
te_total: 527144L
wid1: 12
wid2: 55
msg: u'  Upgrading   : libquvi-scripts-0.9.20131130-4.fc21.noarch                 7/15'
te_current: 527144L
self: <dnf.cli.output.CliTransactionDisplay object at 0x7f06bc484450>

Comment 1 Jan Vesely 2015-03-22 20:38:07 UTC
Created attachment 1005081 [details]
File: backtrace

Comment 2 Jan Vesely 2015-03-22 20:38:08 UTC
Created attachment 1005082 [details]
File: environ

Comment 3 Honza Silhan 2015-04-03 15:02:18 UTC
Hi Jan, can you reproduce it everytime? Do you have `color` option set in /etc/dnf/dnf.conf? We have never encountered similar bug before. Have you done anything unusual?

Comment 4 Jan Vesely 2015-04-03 19:38:19 UTC
(In reply to Jan Silhan from comment #3)
> Hi Jan, can you reproduce it everytime? Do you have `color` option set in
> /etc/dnf/dnf.conf? We have never encountered similar bug before. Have you
> done anything unusual?

Here's my dnf.conf:
$ cat /etc/dnf/dnf.conf 
[main]
gpgcheck=1
installonly_limit=3
clean_requirements_on_remove=true

it only happened once with the gnome-terminal crash (abrt now points that crash to bug #1151557), I guess IO error is expected in that case.
I haven't tried to reproduce by sending SIGABRT to gnome-terminal manually as I run long running tasks in terminal windows.

Comment 5 Honza Silhan 2015-07-21 11:37:51 UTC
We can;t reproduce it. the cause could be because of 1151557 as pointed out in comment 4.

Comment 6 Paul Gresham 2015-09-12 18:00:45 UTC
Another user experienced a similar problem:

doing maintenance using dnf

reporter:       libreport-2.3.0
cmdline:        /usr/bin/python -OO /bin/dnf upgrade
executable:     /bin/dnf
kernel:         4.1.6-100.fc21.x86_64
package:        dnf-0.6.4-5.fc21
reason:         output.py:2126:_out_event:IOError: [Errno 5] Input/output error
runlevel:       N 5
type:           Python
uid:            0