Bug 1329058 - [abrt] dnf: transaction.py:175:hdrFromFdno:_rpm.error: error reading package header
Summary: [abrt] dnf: transaction.py:175:hdrFromFdno:_rpm.error: error reading package ...
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 25
Hardware: i686
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: rpm-software-management
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:1f10d9c18f53fc02540726525c1...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-04-21 04:26 UTC by Christopher Meng
Modified: 2017-06-23 15:40 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-06-23 15:36:36 UTC
Type: ---


Attachments (Terms of Use)
File: _var_cache_dnf_i386_22_hawkey.log (364.30 KB, text/plain)
2016-04-21 04:26 UTC, Christopher Meng
no flags Details
File: _var_log_dnf.log (1.74 MB, text/plain)
2016-04-21 04:27 UTC, Christopher Meng
no flags Details
File: backtrace (1.53 KB, text/plain)
2016-04-21 04:27 UTC, Christopher Meng
no flags Details
File: environ (4.20 KB, text/plain)
2016-04-21 04:27 UTC, Christopher Meng
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1257718 0 low CLOSED dnf segfaults when presented with empty file 2021-02-22 00:41:40 UTC

Internal Links: 1257718

Description Christopher Meng 2016-04-21 04:26:43 UTC
Version-Release number of selected component:
dnf-1.1.8-1.fc25

Additional info:
reporter:       libreport-2.7.0
cmdline:        /usr/bin/python3 /usr/bin/dnf update l* b* z* x* b* q* y* x* f* n* perl* A* R* k* g*
dnf-makecache.log: -- No entries --
executable:     /usr/bin/dnf
kernel:         4.6.0-0.rc3.git2.1.fc25.i686
pkg_vendor:     Fedora Project
reproducible:   Not sure how to reproduce the problem
runlevel:       N 5
type:           Python3
uid:            0

Truncated backtrace:
transaction.py:175:hdrFromFdno:_rpm.error: error reading package header

Traceback (most recent call last):
  File "/usr/bin/dnf", line 58, in <module>
    main.user_main(sys.argv[1:], exit_code=True)
  File "/usr/lib/python3.5/site-packages/dnf/cli/main.py", line 174, in user_main
    errcode = main(args)
  File "/usr/lib/python3.5/site-packages/dnf/cli/main.py", line 60, in main
    return _main(base, args)
  File "/usr/lib/python3.5/site-packages/dnf/cli/main.py", line 120, in _main
    ret = resolving(cli, base)
  File "/usr/lib/python3.5/site-packages/dnf/cli/main.py", line 149, in resolving
    base.do_transaction(display=displays)
  File "/usr/lib/python3.5/site-packages/dnf/cli/cli.py", line 228, in do_transaction
    super(BaseCli, self).do_transaction(display)
  File "/usr/lib/python3.5/site-packages/dnf/base.py", line 564, in do_transaction
    self.transaction.populate_rpm_ts(self.ts)
  File "/usr/lib/python3.5/site-packages/dnf/transaction.py", line 193, in populate_rpm_ts
    hdr = tsi.installed.header
  File "/usr/lib/python3.5/site-packages/dnf/package.py", line 78, in header
    return dnf.rpm.header(self.localPkg())
  File "/usr/lib/python3.5/site-packages/dnf/rpm/__init__.py", line 58, in header
    return ts.hdrFromFdno(fdno)
  File "/usr/lib/python3.5/site-packages/rpm/transaction.py", line 175, in hdrFromFdno
    raise rpm.error("error reading package header")
_rpm.error: error reading package header

Local variables in innermost frame:
h: None
fd: 25
res: 1
self: <rpm.transaction.TransactionSet object at 0xb5678cec>

Comment 1 Christopher Meng 2016-04-21 04:26:51 UTC
Created attachment 1149285 [details]
File: _var_cache_dnf_i386_22_hawkey.log

Comment 2 Christopher Meng 2016-04-21 04:27:10 UTC
Created attachment 1149286 [details]
File: _var_log_dnf.log

Comment 3 Christopher Meng 2016-04-21 04:27:12 UTC
Created attachment 1149287 [details]
File: backtrace

Comment 4 Christopher Meng 2016-04-21 04:27:13 UTC
Created attachment 1149288 [details]
File: environ

Comment 5 Honza Silhan 2016-04-25 11:30:54 UTC
IT should give warning instead of traceback.

If you want to install packages just from available repositories then escape the glob expression, otherwise it would try to match the file.

Comment 6 Fedora Admin XMLRPC Client 2016-07-08 09:25:05 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 7 Jan Kurik 2016-07-26 05:01:09 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 25 development cycle.
Changing version to '25'.

Comment 8 Jaroslav Mracek 2017-05-23 15:58:14 UTC
I am sorry to ask you so late, but do you have RPM that produce that problem? Without that or other reproducer we have no other option that close the bug report.

Comment 9 Jaroslav Mracek 2017-06-23 15:36:36 UTC
Unfortunately I am unable to reproduce the problem with dnf-2.5.1. Please if the problem will appear again with dnf-2.5.1+, don't hesitate to reopen the bug report (it is available for rawhide, Fedora 26, or from our testing repository "dnf copr enable rpmsoftwaremanagement/dnf-nightly" for Fedora 24+)


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