Bug 1014325 - python-libcomps segfaults on writing Fedora comps
python-libcomps segfaults on writing Fedora comps
Status: CLOSED NEXTRELEASE
Product: Fedora
Classification: Fedora
Component: libcomps (Show other bugs)
rawhide
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Jindrich Luza
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2013-10-01 13:38 EDT by Daniel Mach
Modified: 2013-10-08 04:29 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2013-10-08 04:29:39 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Daniel Mach 2013-10-01 13:38:50 EDT
git clone git://git.fedorahosted.org/git/comps.git

import libcomps
comps = libcomps.Comps()
comps.fromxml_f("comps/comps-f21.xml.in")
comps.xml_f("out.xml")

-> Segmentation fault
Comment 1 Daniel Mach 2013-10-01 13:44:34 EDT
Previous reproducer is incomplete.
You need to iterate through packages to make it crash:

import libcomps
comps = libcomps.Comps()
comps.fromxml_f("comps/comps-f21.xml.in")
for i in comps.groups:
    for j in i.packages:
        print j.name
comps.xml_f("out.xml")
Comment 2 Jindrich Luza 2013-10-08 04:29:39 EDT
fixed in libcomps-0.1.4-2.fc21

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