This service will be undergoing maintenance at 00:00 UTC, 2016-08-01. It is expected to last about 1 hours
Bug 226169 - yum doesn't handle bad xml very gracefully
yum doesn't handle bad xml very gracefully
Status: CLOSED RAWHIDE
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: yum (Show other bugs)
5.0
All Linux
medium Severity medium
: ---
: ---
Assigned To: James Antill
:
Depends On:
Blocks: 289601
  Show dependency treegraph
 
Reported: 2007-01-31 14:46 EST by Máirín Duffy
Modified: 2013-01-10 05:16 EST (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2007-09-13 13:51:43 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)
traceback from jkt (1.74 KB, text/plain)
2007-01-31 14:46 EST, Máirín Duffy
no flags Details
traceback from jneedle (7.51 KB, text/plain)
2007-01-31 14:47 EST, Máirín Duffy
no flags Details

  None (edit)
Description Máirín Duffy 2007-01-31 14:46:19 EST
Version-Release number of selected component (if applicable):
yum-3.0.1-5.el5

An excerpt of yum's behavior upon encountering bad xml:

[root@milkbones ~]# yum check-update
Loading "rhnplugin" plugin
[
Loading "installonlyn" plugin
Setting up repositories
rhel-x86_64-server-5      100% |=========================| 1.2 kB    00:00
Reading repository metadata in from local files
primary.xml.gz            100% |=========================| 867 kB    00:01
##################                                 1039/2811

(process:12033): GLib-WARNING **: GError set over the top of a previous GError
or uninitialized memory.
This indicates a bug in someone's code. You must ensure an error is NULL before
it's set.
The overwriting error message was: Parsing primary.xml error: Entity 'gt' not
defined

(process:12033): GLib-WARNING **: GError set over the top of a previous GError
or uninitialized memory.
This indicates a bug in someone's code. You must ensure an error is NULL before
it's set.
The overwriting error message was: Parsing primary.xml error: Entity 'amp' not
defined

(process:12033): GLib-WARNING **: GError set over the top of a previous GError
or uninitialized memory.
This indicates a bug in someone's code. You must ensure an error is NULL before
it's set.
The overwriting error message was: Parsing primary.xml error: Entity 'amp' not
defined
Comment 1 Máirín Duffy 2007-01-31 14:46:19 EST
Created attachment 147045 [details]
traceback from jkt
Comment 2 Máirín Duffy 2007-01-31 14:47:42 EST
Created attachment 147046 [details]
traceback from jneedle
Comment 3 Jeremy Katz 2007-01-31 15:26:17 EST
I vaguely remember fixing this -- can you try a rebuild of yum-metadata-parser
from rawhide and see if it helps?  
Comment 4 Seth Vidal 2007-08-03 16:19:35 EDT
anyone?
Comment 5 Jeremy Katz 2007-09-13 13:51:43 EDT
This is definitely fixed in current code.  If we want to push an update for
RHEL5, then a new bug should be opened and pushed along through the process

Note You need to log in before you can comment on or make changes to this bug.