Bug 1014325 - python-libcomps segfaults on writing Fedora comps
Summary: python-libcomps segfaults on writing Fedora comps
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: libcomps
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jindrich Luza
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-01 17:38 UTC by Daniel Mach
Modified: 2013-10-08 08:29 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-10-08 08:29:39 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Daniel Mach 2013-10-01 17:38:50 UTC
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 17:44:34 UTC
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 08:29:39 UTC
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.