Bug 781734

Summary: Processing a coredump fails when cpio can't extract a downloaded file
Product: [Fedora] Fedora Reporter: Bill Gradwohl <bill>
Component: abrtAssignee: abrt <abrt-devel-list>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 16CC: abrt-devel-list, dvlasenk, iprikryl, jmoskovc, kklic, mmilata, mtoman, npajkovs
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-09-18 10:51:43 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:

Description Bill Gradwohl 2012-01-14 18:02:13 UTC
Description of problem:
Trying to upload a bug in libreoffice

Version-Release number of selected component (if applicable):


How reproducible:
Somehow force a bug in libreoffice that would cause abrt to download libreoffice-debuginfo-3.4.4.2-6.fc16.x86_64.rpm and then do the extraction on it.

Steps to Reproduce:
1.
2.
3.
  
Actual results:

Note that I removed some of the lines of output to shorten this, leaving mostly the details that are broken.

This occurred while using abrt to try to upload a bug in libreoffice. It never finished.


This is what's running at the time:
root     10174  7596  0 09:49 ?        00:00:00 /bin/sh -c abrt-action-analyze-core --core=coredump -o build_ids &&         /usr/libexec/abrt-action-install-debuginfo-to-abrt-cache --size_mb=4096 &&  
abrt     10177 10174  0 09:49 ?        00:00:31 /usr/bin/python -u /usr/bin/abrt-action-install-debuginfo --size_mb=4096

Note that libreoffice-debuginfo-3.4.4.2-6.fc16.x86_64.rpm ( a 650MB file) has been downloaded 3 times and failed the extraction each time. unpacked.cpio is 2.8GB just before the files vanish.
Shouldn't it be smart enough to know its going to fail after the first time and not bother with additional passes? I realize I caused it to try this again, but had it left the broken file around it wouldn't have tried to download it again and that would have short circuited this to where I would have noticed what was going on sooner. The output has too much clutter.
It apparently erases the rpm and then does another download getting rid of the evidence (the failed rpm) so its not possible to do any local testing of that rpm.

Also, why download into /tmp when /var/cache/yum is available to hold rpm's. Shouldn't all rpm's go into a central repository, and isn't that what /var/cache/yum is for?

Here is the output:
--- Running analyze_LocalGDB ---
Analyzing coredump 'coredump'
Coredump references 189 debuginfo files, 125 of them are not installed
Setting up yum repositories
Looking for needed packages in repositories
Packages to download: 17
Downloading 661.34Mb, installed size: 2907.98Mb. Continue? YES
Downloading (1 of 17) nss-softokn-debuginfo-3.13.1-15.fc16.x86_64.rpm:  29
Downloading (1 of 17) nss-softokn-debuginfo-3.13.1-15.fc16.x86_64.rpm:  65
Downloading (1 of 17) nss-softokn-debuginfo-3.13.1-15.fc16.x86_64.rpm: 100
Extracting cpio from /tmp/abrt-tmp-debuginfo-2012-01-13-22:10:04.7600/nss-softokn-debuginfo-3.13.1-15.fc16.x86_64.rpm
Caching files from unpacked.cpio made from nss-softokn-debuginfo-3.13.1-15.fc16.x86_64.rpm
Downloading (2 of 17) gtk2-debuginfo-2.24.8-3.fc16.x86_64.rpm:   6
Downloading (2 of 17) gtk2-debuginfo-2.24.8-3.fc16.x86_64.rpm:  12
--- removed by Bill Gradwohl
Downloading (2 of 17) gtk2-debuginfo-2.24.8-3.fc16.x86_64.rpm:  99
Downloading (2 of 17) gtk2-debuginfo-2.24.8-3.fc16.x86_64.rpm: 100
Extracting cpio from /tmp/abrt-tmp-debuginfo-2012-01-13-22:10:04.7600/gtk2-debuginfo-2.24.8-3.fc16.x86_64.rpm
Caching files from unpacked.cpio made from gtk2-debuginfo-2.24.8-3.fc16.x86_64.rpm
Downloading (3 of 17) libreoffice-debuginfo-3.4.4.2-6.fc16.x86_64.rpm:   1
Downloading (3 of 17) libreoffice-debuginfo-3.4.4.2-6.fc16.x86_64.rpm:   2
Downloading (3 of 17) libreoffice-debuginfo-3.4.4.2-6.fc16.x86_64.rpm:   3
--- removed by Bill Gradwohl
Downloading (3 of 17) libreoffice-debuginfo-3.4.4.2-6.fc16.x86_64.rpm:  98
Downloading (3 of 17) libreoffice-debuginfo-3.4.4.2-6.fc16.x86_64.rpm:  99
Downloading (3 of 17) libreoffice-debuginfo-3.4.4.2-6.fc16.x86_64.rpm: 100
Extracting cpio from /tmp/abrt-tmp-debuginfo-2012-01-13-22:10:04.7600/libreoffice-debuginfo-3.4.4.2-6.fc16.x86_64.rpm
Can't extract package '/tmp/abrt-tmp-debuginfo-2012-01-13-22:10:04.7600/libreoffice-debuginfo-3.4.4.2-6.fc16.x86_64.rpm'
Unpacking failed, aborting download...
Missing debuginfo file: /usr/lib/debug/.build-id/77/f90ce0cfbf5f51ac6ce791a4bd92e6537d1e1e.debug
Missing debuginfo file: /usr/lib/debug/.build-id/bc/e8fb6913e0b658c53b896b05d075af7fa5cf73.debug
--- removed by Bill Gradwohl
Missing debuginfo file: /usr/lib/debug/.build-id/12/f7326885e79c7a690d8b6a22109af42760f6af.debug
Missing debuginfo file: /usr/lib/debug/.build-id/f0/a46e75e344b76fadbb76f32118dcdc3c983bb4.debug
Generating backtrace
Backtrace is generated and saved, 32182 bytes

--- Running analyze_LocalGDB ---
Analyzing coredump 'coredump'
Coredump references 189 debuginfo files, 122 of them are not installed
Setting up yum repositories
Looking for needed packages in repositories
Packages to download: 15
Downloading 651.00Mb, installed size: 2858.18Mb. Continue? YES
Downloading (1 of 15) PackageKit-debuginfo-0.6.21-2.fc16.x86_64.rpm:   3
Downloading (1 of 15) PackageKit-debuginfo-0.6.21-2.fc16.x86_64.rpm:   4
Downloading (1 of 15) PackageKit-debuginfo-0.6.21-2.fc16.x86_64.rpm:   7
--- removed by Bill Gradwohl
Downloading (1 of 15) PackageKit-debuginfo-0.6.21-2.fc16.x86_64.rpm:  99
Downloading (1 of 15) PackageKit-debuginfo-0.6.21-2.fc16.x86_64.rpm: 100
Extracting cpio from /tmp/abrt-tmp-debuginfo-2012-01-14-08:01:31.9311/PackageKit-debuginfo-0.6.21-2.fc16.x86_64.rpm
Caching files from unpacked.cpio made from PackageKit-debuginfo-0.6.21-2.fc16.x86_64.rpm
Downloading (2 of 15) libreoffice-debuginfo-3.4.4.2-6.fc16.x86_64.rpm:   1
Downloading (2 of 15) libreoffice-debuginfo-3.4.4.2-6.fc16.x86_64.rpm:   2
Downloading (2 of 15) libreoffice-debuginfo-3.4.4.2-6.fc16.x86_64.rpm:   3
--- removed by Bill Gradwohl
Downloading (2 of 15) libreoffice-debuginfo-3.4.4.2-6.fc16.x86_64.rpm:  98
Downloading (2 of 15) libreoffice-debuginfo-3.4.4.2-6.fc16.x86_64.rpm:  99
Downloading (2 of 15) libreoffice-debuginfo-3.4.4.2-6.fc16.x86_64.rpm: 100
Extracting cpio from /tmp/abrt-tmp-debuginfo-2012-01-14-08:01:31.9311/libreoffice-debuginfo-3.4.4.2-6.fc16.x86_64.rpm
Can't extract package '/tmp/abrt-tmp-debuginfo-2012-01-14-08:01:31.9311/libreoffice-debuginfo-3.4.4.2-6.fc16.x86_64.rpm'
Unpacking failed, aborting download...
Missing debuginfo file: /usr/lib/debug/.build-id/77/f90ce0cfbf5f51ac6ce791a4bd92e6537d1e1e.debug
Missing debuginfo file: /usr/lib/debug/.build-id/bc/e8fb6913e0b658c53b896b05d075af7fa5cf73.debug
Missing debuginfo file: /usr/lib/debug/.build-id/4f/e8c31b88be438b6d58642dd10cb531f6b0c8b5.debug
--- removed by Bill Gradwohl
Missing debuginfo file: /usr/lib/debug/.build-id/28/413f6dc0c5a3ba5c883ab268ba0c3837f38833.debug
Missing debuginfo file: /usr/lib/debug/.build-id/12/f7326885e79c7a690d8b6a22109af42760f6af.debug
Missing debuginfo file: /usr/lib/debug/.build-id/f0/a46e75e344b76fadbb76f32118dcdc3c983bb4.debug
Generating backtrace
Backtrace is generated and saved, 31765 bytes

--- Running analyze_LocalGDB ---
Analyzing coredump 'coredump'
Coredump references 189 debuginfo files, 121 of them are not installed
Setting up yum repositories
Looking for needed packages in repositories
Packages to download: 14
Downloading 648.58Mb, installed size: 2846.37Mb. Continue? YES
Downloading (1 of 14) libreoffice-debuginfo-3.4.4.2-6.fc16.x86_64.rpm:   2
Downloading (1 of 14) libreoffice-debuginfo-3.4.4.2-6.fc16.x86_64.rpm:   3
Downloading (1 of 14) libreoffice-debuginfo-3.4.4.2-6.fc16.x86_64.rpm:   4
--- removed by Bill Gradwohl
Downloading (1 of 14) libreoffice-debuginfo-3.4.4.2-6.fc16.x86_64.rpm:  98
Downloading (1 of 14) libreoffice-debuginfo-3.4.4.2-6.fc16.x86_64.rpm:  99
Downloading (1 of 14) libreoffice-debuginfo-3.4.4.2-6.fc16.x86_64.rpm: 100
Extracting cpio from /tmp/abrt-tmp-debuginfo-2012-01-14-09:49:17.10177/libreoffice-debuginfo-3.4.4.2-6.fc16.x86_64.rpm
Can't extract package '/tmp/abrt-tmp-debuginfo-2012-01-14-09:49:17.10177/libreoffice-debuginfo-3.4.4.2-6.fc16.x86_64.rpm'
Unpacking failed, aborting download...

Expected results:


Additional info:

Comment 1 Jiri Moskovcak 2012-08-10 07:45:46 UTC
Do you still experience this problem? If yes, can you please run:

$ abrt-gui -vvv 

try to download the debuginfo with it and post the output.

Comment 2 Jiri Moskovcak 2012-09-18 10:54:34 UTC

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