Bug 447347
| Summary: | crash in gpk-update-viewer | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Charles R. Anderson <cra> | ||||||||||
| Component: | gnome-packagekit | Assignee: | Robin Norwood <robin.norwood> | ||||||||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||||||
| Severity: | low | Docs Contact: | |||||||||||
| Priority: | low | ||||||||||||
| Version: | 9 | CC: | brilong, jones.peter, mathieu, richard | ||||||||||
| Target Milestone: | --- | ||||||||||||
| Target Release: | --- | ||||||||||||
| Hardware: | All | ||||||||||||
| OS: | Linux | ||||||||||||
| Whiteboard: | |||||||||||||
| Fixed In Version: | 0.1.12-13.20080522.fc9 | Doc Type: | Bug Fix | ||||||||||
| Doc Text: | Story Points: | --- | |||||||||||
| Clone Of: | Environment: | ||||||||||||
| Last Closed: | 2008-05-31 02:17:37 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
Charles R. Anderson
2008-05-19 16:20:38 UTC
Created attachment 305972 [details]
bug report generated by crash dialog
Is this reproducable? What's the output of "gpk-update-viewer --verbose" when this happens? Thanks. Created attachment 306323 [details]
output from gpk-update-viewer --verbose
Yes, I did a brand new fresh install of Fedora 9 (using Live media
incidentally, but it doesn't matter), enabled the updates-testing repo, then
did the steps above except running gpk-update-viewer manually as suggested.
Different system, same crash.
Here is the output.
Created attachment 306324 [details]
bug report generated by crash dialog
Latest bug report output from this attempt.
Hmm, thanks for your logs. I can't reproduce, but then I can't access the yum update. Could you please: 1. install the gnome-packagekit-debuginfo package 2. type: gdb /usr/bin/gpk-update-viewer run --verbose and navigate to the yum entry to make it crash. When it crashes, please type: bt into the console and attach the output here. Thanks! Richard. Created attachment 306397 [details]
gdb backtrace
output from run through gdb with debuginfos installed
Cheers for the dump, that's exactly what I needed to see: https://bugzilla.redhat.com/show_bug.cgi?id=446248;yum doesn't tolerate broken mirrorlist in cache; https://bugzilla.redhat.com/show_bug.cgi?id=446186;broken comps.xml; language support was not installed; https://bugzilla.redhat.com/show_bug.cgi?id=261961;Yum does not like non-ascii package names; https://bugzilla.redhat.com/show_bug.cgi?id=442232;yum doesn't try other mirrors after hitting ctrnl-c; https://bugzilla.redhat.com/show_bug.cgi?id=442819;Yum crash when metadata doesn't match checksum, and there's no other mirrors to try You'll notice the delimiter in the list is a ';', and string "broken comps.xml; language support was not installed" conatins an "extra" delimiter. Of course, the bug is that PackageKit does not pass back an 'as' structure, but instead a delimited 's' entry, but that's on the list of things to change when we next break API again (not anytime soon). If you open /usr/share/PackageKit/helpers/yum/yumBackend.py (as root) and then search for "urls[typ].append" you'll find this block of code: for ref in refs: typ = ref['type'] href = ref['href'] title = ref['title'] or "" if href: if typ in ('bugzilla','cve'): urls[typ].append("%s;%s" % (href,title)) else: urls['vendor'].append("%s;%s" % (href,title)) Can you try changing it to: for ref in refs: typ = ref['type'] href = ref['href'] title = ref['title'].replace(";","") or "" if href: if typ in ('bugzilla','cve'): urls[typ].append("%s;%s" % (href,title)) else: urls['vendor'].append("%s;%s" % (href,title)) i.e. you need to add .replace(";","") to one of the lines. And then save the file. Then try looking at the yum update and checking for the crash. If this works, I'll push a PackageKit update into updates testing. Many thanks. You might have to do:
title = ref['title'] or ""
title = title.replace(";","")
I'm not a python legend.
The first fix in Comment #7 worked fine. I might suggest replacing with a different character such as "," or ":" though, since losing the ; could change the meaning of the text too much. PackageKit-0.1.12-13.20080522.fc9 has been submitted as an update for Fedora 9 PackageKit-0.1.12-13.20080522.fc9 has been pushed to the Fedora 9 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update PackageKit'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F9/FEDORA-2008-4646 *** Bug 448961 has been marked as a duplicate of this bug. *** *** Bug 449093 has been marked as a duplicate of this bug. *** PackageKit-0.1.12-13.20080522.fc9 has been pushed to the Fedora 9 stable repository. If problems still persist, please make note of it in this bug report. *** Bug 448047 has been marked as a duplicate of this bug. *** Regarding comment #11, please see attachment #309360 [details], which I submitted to bug #448047, before marking the latter as a duplicate of this one. |