Bug 966025

Summary: [abrt] yum-3.4.3-91.fc19: rpmsack.py:38:<module>:ValueError: bad marshal data (string size out of range)
Product: [Fedora] Fedora Reporter: Lalatendu Mohanty <lmohanty>
Component: yumAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: admiller, ffesti, firas.alkafri, lmohanty, packaging-team-maint, tim.lauridsen, zpavlas
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:a9fea10b35c31dc8b2aaaa0ebc7963e5861527d4
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-05-24 10:40:49 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: core_backtrace
none
File: environ none

Description Lalatendu Mohanty 2013-05-22 10:01:21 UTC
Description of problem:
Belw are the steps.

1. Installed fedora 18 machine. Did a "yum update -y" to update it
2. Executed fedup to upgrade it to fedora19 
     i.e. a. "su -c 'fedup-cli --network 19 --debuglog fedupdebug.log --instrepo http://dl.fedoraproject.org/pub/fedora/linux/development/19/x86_64/os/'"
      b. reboot to complete fedup
3. Did a "yum update -y" to update and it got completed successfully. But during the process it gave following error

************************************
error: rpmdb: BDB0113 Thread/process 28120/139758544803840 failed: BDB1507 Thread died in Berkeley DB library-      ] 790 kB/s |  76 MB  00:00:13 ETA 
error: db5 error(-30973) from dbenv->failchk: BDB0087 DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages index using db5 -  (-30973)
error: cannot open Packages database in 
(204/204): linux-firmware-20130418-0.1.gitb584174.fc19.noarch.rpm                                                              |  16 MB  00:01:03     
error: rpmdb: BDB0113 Thread/process 28139/140727522924544 failed: BDB1507 Thread died in Berkeley DB library
error: db5 error(-30973) from dbenv->failchk: BDB0087 DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages index using db5 -  (-30973)
error: cannot open Packages database in 
Finishing delta rebuilds of 43 package(s) (72 M)
********

4. After the last step i.e. yum update, I rebooted the machine and logged and this issue came

Version-Release number of selected component:
yum-3.4.3-91.fc19

Additional info:
reporter:       libreport-2.1.4
cmdline:        /usr/bin/python /usr/bin/yum update
executable:     /usr/bin/yum
kernel:         3.9.3-301.fc19.x86_64
runlevel:       N 5
uid:            0

Comment 1 Lalatendu Mohanty 2013-05-22 10:01:27 UTC
Created attachment 751630 [details]
File: backtrace

Comment 2 Lalatendu Mohanty 2013-05-22 10:01:32 UTC
Created attachment 751632 [details]
File: core_backtrace

Comment 3 Lalatendu Mohanty 2013-05-22 10:01:37 UTC
Created attachment 751635 [details]
File: environ

Comment 4 Zdeněk Pavlas 2013-05-24 10:21:29 UTC
Without --downloadonly, Yum keeps rpmdb open when downloading packages.  During that, applydeltarpm is spawned to rebuild RPMs from DRPMs, and it acesses rpmdb, too.  But IMO this should not cause any problems, even if no locking was involved (two readers case).  Anyway, rpmdb is corrupted.  Does rpm --rebuilddb help?

Comment 5 Zdeněk Pavlas 2013-05-24 10:40:49 UTC

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

Comment 6 Lalatendu Mohanty 2013-05-24 13:58:34 UTC
"rpm --rebuilddb " fixes the issue

Comment 7 Lalatendu Mohanty 2013-05-24 14:01:29 UTC
Though "rpm --rebuilddb " fixes the issue. Thanks for the work around. But we still need to fix the root cause