Bug 1014325

Summary: python-libcomps segfaults on writing Fedora comps
Product: [Fedora] Fedora Reporter: Daniel Mach <dmach>
Component: libcompsAssignee: Jindrich Luza <jluza>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: akozumpl, jluza
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-10-08 08:29:39 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

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