Bug 1000449

Summary: sigsegv testing membership in env.option_ids
Product: [Fedora] Fedora Reporter: Ales Kozumplik <akozumpl>
Component: libcompsAssignee: Jindrich Luza <jluza>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 20CC: jluza, jzeleny
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-08-27 14:21:19 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 Ales Kozumplik 2013-08-23 13:17:53 UTC
with libcomps-0.1.3-1.fc19.x86_64 the following ends up with a SIGEGV on the last line:

#! /usr/bin/python

FN = '/home/akozumpl/tmp/repodata/6cb5995a4849a9bbd94300eae97e6511317cc60222350e511aa660a5922ab292-comps-rawhide.xml'

import dnf.comps

c = dnf.comps.Comps()
c.add_from_xml_filename(FN)
groups = c.groups
env = c.environment_by_pattern('*gnome*')
for grp in groups:
    id_ = grp.id
    print(id_ in env.option_ids)

Please treat this a high-prio as its blocking progress on the DNF Payload for Anaconda.

Comment 1 Jindrich Luza 2013-08-27 14:21:19 UTC
Bug is fixed in libcomps-0.1.3-2, which appear in fedora 20 after freeze.