Bug 1225975

Summary: [abrt] dnf: data_skip(): python2.7 killed by SIGSEGV
Product: [Fedora] Fedora Reporter: Frank Büttner <bugzilla>
Component: libsolvAssignee: Honza Silhan <jsilhan>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: urgent    
Version: 22CC: bugzilla, jsilhan, mls, mluscon, packaging-team-maint, pnemade, rholy, tim.lauridsen, vmukhame
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/785c064ca5ecd1d31957e78b852e1597a542613c
Whiteboard: abrt_hash:c43b8a8a78e1e46457bc64c2563556f499f4831e
Fixed In Version: libsolv-0.6.11-1.fc22 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-06-29 15:32:30 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: cgroup
none
File: core_backtrace
none
File: dso_list
none
File: environ
none
File: limits
none
File: maps
none
File: mountinfo
none
File: namespaces
none
File: open_fds
none
File: proc_pid_status none

Description Frank Büttner 2015-05-28 15:19:38 UTC
Description of problem:
simple try to run dnf update

Version-Release number of selected component:
dnf-1.0.0-1.fc22

Additional info:
reporter:       libreport-2.5.1
backtrace_rating: 4
cmdline:        /usr/bin/python -OO /bin/dnf update
crash_function: data_skip
executable:     /usr/bin/python2.7
global_pid:     22025
kernel:         4.0.4-301.fc22.x86_64
runlevel:       N 5
type:           CCpp
uid:            0
var_log_messages: [System Logs]:\n-- Logs begin at Mi 2014-12-10 00:36:12 CET, end at Do 2015-05-28 16:57:40 CEST. --

Truncated backtrace:
Thread no. 1 (10 frames)
 #0 data_skip at /usr/src/debug/libsolv-99edb54e18f4971f50a359803633f44fdeb08428/src/repopack.h:246
 #1 data_skip_key at /usr/src/debug/libsolv-99edb54e18f4971f50a359803633f44fdeb08428/src/repodata.c:431
 #2 data_skip_schema at /usr/src/debug/libsolv-99edb54e18f4971f50a359803633f44fdeb08428/src/repodata.c:403
 #3 data_skip_key at /usr/src/debug/libsolv-99edb54e18f4971f50a359803633f44fdeb08428/src/repodata.c:426
 #4 get_data at /usr/src/debug/libsolv-99edb54e18f4971f50a359803633f44fdeb08428/src/repodata.c:508
 #5 repodata_search at /usr/src/debug/libsolv-99edb54e18f4971f50a359803633f44fdeb08428/src/repodata.c:962
 #6 repo_write_filtered at /usr/src/debug/libsolv-99edb54e18f4971f50a359803633f44fdeb08428/src/repo_write.c:1437
 #7 repo_write at /usr/src/debug/libsolv-99edb54e18f4971f50a359803633f44fdeb08428/src/repo_write.c:2083
 #8 write_main at /usr/src/debug/hawkey-0.5.7/py3/src/sack.c:426
 #9 hy_sack_load_repo at /usr/src/debug/hawkey-0.5.7/py3/src/sack.c:1004

Potential duplicate: bug 1175906

Comment 1 Frank Büttner 2015-05-28 15:19:43 UTC
Created attachment 1031331 [details]
File: backtrace

Comment 2 Frank Büttner 2015-05-28 15:19:45 UTC
Created attachment 1031332 [details]
File: cgroup

Comment 3 Frank Büttner 2015-05-28 15:19:47 UTC
Created attachment 1031333 [details]
File: core_backtrace

Comment 4 Frank Büttner 2015-05-28 15:19:48 UTC
Created attachment 1031334 [details]
File: dso_list

Comment 5 Frank Büttner 2015-05-28 15:19:50 UTC
Created attachment 1031335 [details]
File: environ

Comment 6 Frank Büttner 2015-05-28 15:19:51 UTC
Created attachment 1031336 [details]
File: limits

Comment 7 Frank Büttner 2015-05-28 15:19:54 UTC
Created attachment 1031337 [details]
File: maps

Comment 8 Frank Büttner 2015-05-28 15:19:55 UTC
Created attachment 1031338 [details]
File: mountinfo

Comment 9 Frank Büttner 2015-05-28 15:19:57 UTC
Created attachment 1031339 [details]
File: namespaces

Comment 10 Frank Büttner 2015-05-28 15:19:59 UTC
Created attachment 1031340 [details]
File: open_fds

Comment 11 Frank Büttner 2015-05-28 15:20:00 UTC
Created attachment 1031341 [details]
File: proc_pid_status

Comment 12 Honza Silhan 2015-06-01 11:14:20 UTC
Thanks for the report. Can you upload to some online storage /var/cache/dnf/x86_64/f22/ directory with all enabled repositories (or try `dnf update --disablerepo=* --enablerepo=<repo> -C` for each repo and upload only the crushing one), please? After  backing it up and can you run again `dnf update --refresh`? Does it work after redownloading new metadata?

Comment 13 Frank Büttner 2015-06-01 13:18:28 UTC
dnf update --refresh also crash.
The /dnf/x86_64/f22/ after call dnf update(and before dnf update --refresh)  have I uploaded to:
http://www48.zippyshare.com/v/wNqHyt9B/file.html

Comment 14 Michael Schröder 2015-06-01 17:00:28 UTC
It turned out that support for sha512 was missing in data_skip ;(

Fixed in libsolv with commit #3f1627007cecdbe4b8f8f41ab560cac02266fb37

Comment 15 Honza Silhan 2015-06-22 17:23:29 UTC
*** Bug 1175906 has been marked as a duplicate of this bug. ***

Comment 16 Honza Silhan 2015-06-22 17:43:37 UTC
Thanks, Michael. I am doing a new libsolv build.

Comment 17 Fedora Update System 2015-06-22 17:54:06 UTC
libsolv-0.6.11-1.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/libsolv-0.6.11-1.fc22

Comment 18 Fedora Update System 2015-06-24 15:55:22 UTC
Package libsolv-0.6.11-1.fc22:
* should fix your issue,
* was pushed to the Fedora 22 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing libsolv-0.6.11-1.fc22'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-10561/libsolv-0.6.11-1.fc22
then log in and leave karma (feedback).

Comment 19 Frank Büttner 2015-06-25 07:03:42 UTC
 su -c 'yum update --enablerepo=updates-testing libsolv-0.6.11-1.fc22' is wrong in this case, because it will crash. It will call the broken dnf.
But yum-deprecated do the job.

Now dnf don't crash any more.
Only the package for F21 is missing, because there is the bug.

Comment 20 Fedora Update System 2015-06-27 12:42:42 UTC
libsolv-0.6.11-1.fc22 has been pushed to the Fedora 22 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 21 Frank Büttner 2015-06-27 13:00:34 UTC
F21 update still missing.

Comment 22 Honza Silhan 2015-06-29 15:32:30 UTC
I've done builds for f21/f22/rawhide. Frank, help it with karma [1] if you want it sooner.

[1] https://admin.fedoraproject.org/updates/FEDORA-2015-10648/libsolv-0.6.11-1.fc21