Bug 1421797

Summary: dnf update causes segmentation fault
Product: [Fedora] Fedora Reporter: Robin Powell <rlpowell>
Component: dnfAssignee: rpm-software-management
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: packaging-team-maint, rpm-software-management, vmukhame
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-02-15 11:10:40 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Robin Powell 2017-02-13 17:19:14 UTC
Current behaviour is:

rlpowell@vrici> sudo dnf update
Last metadata expiration check: 0:19:29 ago on Mon Feb 13 08:48:03 2017 PST.
[3]    14987 segmentation fault  sudo dnf update

And /var/log/messages has:

Feb 13 09:07:35 vrici kernel: dnf[14988]: segfault at 2b43ec3f7050 ip 00002b43d537f436 sp 00007fff86ae4768 error 4 in libc-2.24.90.so[2b43d52ef000+1c3000]
Feb 13 09:07:35 vrici systemd: Started Process Core Dump (PID 14990/UID 0).
Feb 13 09:07:36 vrici systemd-coredump: Process 14988 (dnf) of user 0 dumped core.#012#012Stack trace of thread 14988:#012#0  0x00002b43d537f436 strlen (libc.so.6)#012#1  0x00002b43d53dc177 regexec@@GLIBC_2.3.4 (libc.so.6)#012#2  0x00002b43e521409c parse_reldep_str (libdnf.so.1)#012#3  0x00002b43e5214270 reldep_from_str (libdnf.so.1)#012#4  0x00002b43e4fef7f4 reldep_from_pystr (_hawkey.so)#012#5  0x00002b43e4fef975 pyseq_to_reldeplist (_hawkey.so)#012#6  0x00002b43e4ff113a filter (_hawkey.so)#012#7  0x00002b43d4587189 PyCFunction_Call (libpython3.6m.so.1.0)#012#8  0x00002b43d4603665 _PyEval_EvalFrameDefault (libpython3.6m.so.1.0)#012#9  0x00002b43d45fa5dc _PyEval_EvalCodeWithName (libpython3.6m.so.1.0)#012#10 0x00002b43d4603cf7 _PyFunction_FastCallDict (libpython3.6m.so.1.0)#012#11 0x00002b43d453d4ee _PyObject_FastCallDict (libpython3.6m.so.1.0)#012#12 0x00002b43d453d70c _PyObject_Call_Prepend (libpython3.6m.so.1.0)#012#13 0x00002b43d453d297 PyObject_Call (libpython3.6m.so.1.0)#012#14 0x00002b43d45ff739 _PyEval_EvalFrameDefault (libpython3.6m.so.1.0)#012#15 0x00002b43d45fa5dc _PyEval_EvalCodeWithName (libpython3.6m.so.1.0)#012#16 0x00002b43d4603cf7 _PyFunction_FastCallDict (libpython3.6m.so.1.0)#012#17 0x00002b43d453d4ee _PyObject_FastCallDict (libpython3.6m.so.1.0)#012#18 0x00002b43d453d70c _PyObject_Call_Prepend (libpython3.6m.so.1.0)#012#19 0x00002b43d453d297 PyObject_Call (libpython3.6m.so.1.0)#012#20 0x00002b43d45ff739 _PyEval_EvalFrameDefault (libpython3.6m.so.1.0)#012#21 0x00002b43d45fa5dc _PyEval_EvalCodeWithName (libpython3.6m.so.1.0)#012#22 0x00002b43d4603cf7 _PyFunction_FastCallDict (libpython3.6m.so.1.0)#012#23 0x00002b43d453d4ee _PyObject_FastCallDict (libpython3.6m.so.1.0)#012#24 0x00002b43d453d70c _PyObject_Call_Prepend (libpython3.6m.so.1.0)#012#25 0x00002b43d453d297 PyObject_Call (libpython3.6m.so.1.0)#012#26 0x00002b43d45ff739 _PyEval_EvalFrameDefault (libpython3.6m.so.1.0)#012#27 0x00002b43d45fa5dc _PyEval_EvalCodeWithName (libpython3.6m.so.1.0)#012#28 0x00002b43d45fa75b fast_function (libpython3.6m.so.1.0)#012#29 0x00002b43d45fa98d call_function (libpython3.6m.so.1.0)#012#30 0x00002b43d45ff825 _PyEval_EvalFrameDefault (libpython3.6m.so.1.0)#012#31 0x00002b43d45fa5dc _PyEval_EvalCodeWithName (libpython3.6m.so.1.0)#012#32 0x00002b43d45fa75b fast_function (libpython3.6m.so.1.0)#012#33 0x00002b43d45fa98d call_function (libpython3.6m.so.1.0)#012#34 0x00002b43d45ffd16 _PyEval_EvalFrameDefault (libpython3.6m.so.1.0)#012#35 0x00002b43d45fa5dc _PyEval_EvalCodeWithName (libpython3.6m.so.1.0)#012#36 0x00002b43d45fa75b fast_function (libpython3.6m.so.1.0)#012#37 0x00002b43d45fa98d call_function (libpython3.6m.so.1.0)#012#38 0x00002b43d45ffd16 _PyEval_EvalFrameDefault (libpython3.6m.so.1.0)#012#39 0x00002b43d45fa5dc _PyEval_EvalCodeWithName (libpython3.6m.so.1.0)#012#40 0x00002b43d45fa75b fast_function (libpython3.6m.so.1.0)#012#41 0x00002b43d45fa98d call_function (libpython3.6m.so.1.0)#012#42 0x00002b43d45ffd16 _PyEval_EvalFrameDefault (libpython3.6m.so.1.0)#012#43 0x00002b43d45f9bb0 _PyFunction_FastCall (libpython3.6m.so.1.0)#012#44 0x00002b43d45fa98d call_function (libpython3.6m.so.1.0)#012#45 0x00002b43d45ffd16 _PyEval_EvalFrameDefault (libpython3.6m.so.1.0)#012#46 0x00002b43d45f9bb0 _PyFunction_FastCall (libpython3.6m.so.1.0)#012#47 0x00002b43d45fa98d call_function (libpython3.6m.so.1.0)#012#48 0x00002b43d45ffd16 _PyEval_EvalFrameDefault (libpython3.6m.so.1.0)#012#49 0x00002b43d45f9bb0 _PyFunction_FastCall (libpython3.6m.so.1.0)#012#50 0x00002b43d45fa98d call_function (libpython3.6m.so.1.0)#012#51 0x00002b43d45ffd16 _PyEval_EvalFrameDefault (libpython3.6m.so.1.0)#012#52 0x00002b43d45f9bb0 _PyFunction_FastCall (libpython3.6m.so.1.0)#012#53 0x00002b43d45fa98d call_function (libpython3.6m.so.1.0)#012#54 0x00002b43d45ffd16 _PyEval_EvalFrameDefault (libpython3.6m.so.1.0)#012#55 0x00002b43d45fa5dc _PyEval_EvalCodeWithName (libpython3.6m.so.1.0)#012#56 0x00002b43d45fa75b fast_function (libpython3.6m.so.1.0)#012#57 0x00002b43d45fa98d call_function (libpython3.6m.so.1.0)#012#58 0x00002b43d45ff825 _PyEval_EvalFrameDefault (libpython3.6m.so.1.0)#012#59 0x00002b43d45fa5dc _PyEval_EvalCodeWithName (libpython3.6m.so.1.0)#012#60 0x00002b43d45fab5f PyEval_EvalCodeEx (libpython3.6m.so.1.0)#012#61 0x00002b43d45fab8b PyEval_EvalCode (libpython3.6m.so.1.0)#012#62 0x00002b43d4626064 run_mod (libpython3.6m.so.1.0)#012#63 0x00002b43d46285b5 PyRun_FileExFlags (libpython3.6m.so.1.0)

The things leading up to this, which may or may not be relevant:


rlpowell@vrici> sudo dnf clean all
16 files removed
rlpowell@vrici> sudo dnf makecache
Nightly CG-3 / Apertium / HFST Packages (Fedora_23)                                                                                            62 kB/s | 106 kB     00:01
Fedora - Rawhide - Developmental packages for the next Fedora release                                                                         3.7 MB/s |  52 MB     00:14
Last metadata expiration check: 0:00:00 ago on Mon Feb 13 08:48:03 2017 PST.
Metadata cache created.
rlpowell@vrici> sudo dnf makecache --enablerepo='*'
Error: Failed to synchronize cache for repo 'fedora-cisco-openh264'
rlpowell@vrici> sudo dnf makecache --enablerepo='*upd*'
Error: Failed to synchronize cache for repo 'updates-testing'

I was trying to figure out the "failed to synchronize" thing; the web suggested "dnf upgrade", so:

rlpowell@vrici> sudo dnf upgrade
[sudo] password for rlpowell:
Last metadata expiration check: 0:12:51 ago on Mon Feb 13 08:48:03 2017 PST.
[3]    14586 segmentation fault  sudo dnf upgrade

and now both upgrade and update generate the segfault (and I still can't get metadata for updates-testing, which may not be relevant on rawhide?, dunno).

Comment 1 Robin Powell 2017-02-14 16:52:36 UTC
It's suddenly better; I have no idea what changed.  0__o

Comment 2 Robin Powell 2017-02-14 17:01:04 UTC
And now it's broken again; apparently running makecache is breaking it?

rlpowell@vrici> sudo dnf upgrade
Last metadata expiration check: 0:12:14 ago on Tue Feb 14 08:45:32 2017 PST.
[3]    5138 segmentation fault  sudo dnf upgrade

I don't know.  A "clean all" doesn't fix it.

Yeah, now it's broken again and I can't un-break it.  Bizarre.

Comment 3 Igor Gnatenko 2017-02-15 11:10:40 UTC

*** This bug has been marked as a duplicate of bug 1417870 ***