Bug 744683
| Summary: | Abrt-gui incorrectly show debuginfo installation size | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Pavel Alexeev <pahan> |
| Component: | abrt | Assignee: | Denys Vlasenko <dvlasenk> |
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | high | ||
| Version: | 16 | CC: | anton, dvlasenk, iprikryl, jfilak, jmoskovc, kklic, mmilata, mtoman, npajkovs |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-05-17 12:57:28 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: | |||
| Bug Depends On: | |||
| Bug Blocks: | 744774 | ||
|
Description
Pavel Alexeev
2011-10-10 07:42:39 UTC
Note to self: try crashing libreoffice So far failed to reproduce... Our code looks ok: installed_size is summed only in one place:
installed_size = 0
...
for debuginfo_path in files:
log2("yum whatprovides %s", debuginfo_path)
pkg = self.pkgSack.searchFiles(debuginfo_path)
# sometimes one file is provided by more rpms, we can use either of
# them, so let's use the first match
if pkg:
if pkg[0] in package_files_dict.keys():
package_files_dict[pkg[0]].append(debuginfo_path)
else:
package_files_dict[pkg[0]] = [debuginfo_path]
todownload_size += float(pkg[0].size)
=======> installed_size += float(pkg[0].installedsize)
total_pkgs += 1
...
if verbose != 0 or total_pkgs != 0:
print _("Packages to download: {0}").format(total_pkgs)
question = _("Downloading {0:.2f}Mb, installed size: {1:.2f}Mb. Continue?").format(
todownload_size / (1024*1024),
installed_size / (1024*1024)
)
Looks like self.pkgSack.searchFiles() returns something bogus, with negative pkg[0].installedsize
I'd file a yum bug, but we do need a reproducer first. Pavel, can you trigger this reliably?
Sorry, but what additional info requested? I does not known how it works, I'm not python programmer unfortunately. I just report bug. Can I help something to resolve it? I configured my environment to require downloading of all available debuginfo packages from repositories "updates-debuginfo", "updates-testing-debuginfo", "fedora-debuginfo". I got the following text: Packages to download: 5922 Downloading 17141.03Mb, installed size: 50129.38Mb. Continue? [y/N] - The overflow explanation refused. ( float should not overflow ) I had modified our code to check an installed package size value returned by yum API. No negative number was found. - Without any negative number is impossible to get negative sum. The bug is not reproducible. Closing per comments #3 and #5 |