RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 614911 - PyXML causes segfault of Python parsing certain XML files: contains own copy of pyexpat - need compat fix for expat-2.0.1
Summary: PyXML causes segfault of Python parsing certain XML files: contains own copy ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: PyXML
Version: 6.0
Hardware: All
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: Roman Rakus
QA Contact: Michal Nowak
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-07-15 14:36 UTC by Dave Malcolm
Modified: 2014-01-13 00:12 UTC (History)
7 users (show)

Fixed In Version: PyXML-0.8.4-19.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-11-10 19:32:36 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Dave Malcolm 2010-07-15 14:36:41 UTC
Description of problem:
PyXML seems to have its own copy of pyexpat.so, and seems to shadow it if it's installed.

It seems to be missing the fix I made for bug 583931 for compatibility with expat-2.0.1 in the main python rpm:
* Mon Jun 21 2010 David Malcolm <dmalcolm> - 2.6.2-10
- Fix an incompatibility between pyexpat and the system expat-2.0.1 that led to
a segfault running test_pyexpat.py (patch 117)

This leads to a segfault when parsing certain XML files; running test_pyexpat.py will show it up.

Version-Release number of selected component (if applicable):
python-2.6.5-2.el6.x86_64
python-test-2.6.5-2.el6.x86_64
PyXML-0.8.4-18.el6.x86_64
expat-2.0.1-9.1.el6.x86_64


How reproducible:
100%

Steps to Reproduce:
1. python /usr/lib*/python2.6/test/test_pyexpat.py with PyXML installed

Actual results:
test_ordered_attributes (__main__.SetAttributeTest) ... ok
...(snip)...
test_parse_only_xml_data (__main__.sf1296433Test) ... Segmentation fault (core dumped)

Expected results:
All tests should pass; no segfault

Additional info:
Shouldn't we consolidate on having a single copy of pyexpat.so?

Comment 5 Roman Rakus 2010-07-19 17:41:41 UTC
(In reply to comment #0)
> Description of problem:
> PyXML seems to have its own copy of pyexpat.so, and seems to shadow it if it's
> installed.
True
> 
> It seems to be missing the fix I made for bug 583931 for compatibility with
> expat-2.0.1 in the main python rpm:
> * Mon Jun 21 2010 David Malcolm <dmalcolm> - 2.6.2-10
> - Fix an incompatibility between pyexpat and the system expat-2.0.1 that led to
> a segfault running test_pyexpat.py (patch 117)
> 
> This leads to a segfault when parsing certain XML files; running
> test_pyexpat.py will show it up.
> 
True
> Version-Release number of selected component (if applicable):
> python-2.6.5-2.el6.x86_64
> python-test-2.6.5-2.el6.x86_64
> PyXML-0.8.4-18.el6.x86_64
> expat-2.0.1-9.1.el6.x86_64
> 
> 
> How reproducible:
> 100%
> 
> Steps to Reproduce:
> 1. python /usr/lib*/python2.6/test/test_pyexpat.py with PyXML installed
> 
> Actual results:
> test_ordered_attributes (__main__.SetAttributeTest) ... ok
> ...(snip)...
> test_parse_only_xml_data (__main__.sf1296433Test) ... Segmentation fault (core
> dumped)
> 
> Expected results:
> All tests should pass; no segfault
> 
> Additional info:
> Shouldn't we consolidate on having a single copy of pyexpat.so?    
Yep. Since the python itself has pyexpat (using lib expat) it is nonsense to have PyXML at all.

Comment 6 Roman Rakus 2010-07-19 17:48:24 UTC
Correcting my words:
Since the python itself has pyexpat (using lib expat) it is nonsense to
have it in PyXML at all.
In other words, I will get a rid of pyexapt.so from PyXML

Comment 9 Roman Rakus 2010-07-20 12:40:46 UTC
Ready to commit. Awaiting all ack+s

Comment 10 Roman Rakus 2010-07-21 13:28:34 UTC
Fixed in PyXML-0.8.4-19.el6

Comment 15 releng-rhel@redhat.com 2010-11-10 19:32:36 UTC
Red Hat Enterprise Linux 6.0 is now available and should resolve
the problem described in this bug report. This report is therefore being closed
with a resolution of CURRENTRELEASE. You may reopen this bug report if the
solution does not work for you.


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