RPM Community Forums

Mailing List Message of <rpm-devel>

Fwd: Perl: Query with RPM-Perl in 5.x for a package?

From: Jeff Johnson <n3npq@mac.com>
Date: Mon 20 Oct 2008 - 22:09:18 CEST
Message-id: <DB36DBB8-56D1-45A0-B6FC-75402D48A7DF@mac.com>


Begin forwarded message:

> From: Jeff Johnson <n3npq@mac.com>
> Date: October 20, 2008 3:53:53 PM EDT
> To: Robert Scheck <robert@rpm5.org>
> Subject: Re: Perl: Query with RPM-Perl in 5.x for a package?
>
>
> On Oct 20, 2008, at 1:54 PM, Robert Scheck wrote:
>
>> On Wed, 13 Aug 2008, Robert Scheck wrote:
>>> On Tue, 12 Aug 2008, Michael Jennings wrote:
>>>> # perl -MRPM::PackageIterator -e '$iter = RPM::PackageIterator- 
>>>> >new("NAME", "rpm"); while ($pkg = $iter->next()) {print $pkg- 
>>>> >as_nvre(), "\n";}'
>>>> rpm-5.1.4-4.caos
>>>
>>> Sure?
>>>
>>> robert@tux:~ > perl -MRPM::PackageIterator -e '$iter =  
>>> RPM::PackageIterator->new("NAME", "rpm"); while ($pkg = $iter- 
>>> >next()) {print $pkg->as_nvre(), "\n";}'
>>> Speicherzugriffsfehler
>>> robert@tux:~ >
>>>
>>> "Speicherzugriffsfehler" is German and means "Segmentation fault".  
>>> Am I
>>> too dumb now or is this really a bug? I'm using RPM 5.2.x (HEAD)  
>>> with a
>>> checkout of 2008-06-30.
>>
>> I'm still seeing this on HEAD with perl 5.10.0 and Fedora. What's  
>> needed to
>> debug and finally solve this?
>>
>
> Well for starters, we need to agree on what needs fixing.
>
> Here is what I see:
>
> [jbj@wellfleet wdj]$ perl -MRPM::PackageIterator -e '$iter =  
> RPM::PackageIterator->new("NAME", "rpm"); while ($pkg = $iter- 
> >next()) {print $pkg->as_nvre(), "\n";}'
> perl: pkgio.c:171: rpmtsFindPubkey: Assertion `rpmtsDig(ts) == dig'  
> failed.
> Aborted
> [jbj@wellfleet wdj]$ rpm --version
> rpm (RPM) 5.2.DEVEL
>
> The assertion failure is a sanity check that no code path
> accesses a pointer that has moved from a rpmts to deeper
> within rpm.
>
> Basically rpm-perl needs to be updated.
>
> todo++
>
> 73 de Jeff
>
>>
>> Greetings,
>> Robert
>
Received on Mon Oct 20 22:09:24 2008
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.