RPM Community Forums

Mailing List Message of <rpm-devel>

Re: Segfault with current CVS when installing any package

From: Jeff Johnson <n3npq@mac.com>
Date: Sun 21 Oct 2007 - 18:05:10 CEST
Message-Id: <8CEE38B7-21DC-4355-A33D-E0CE26AED342@mac.com>

On Oct 21, 2007, at 11:24 AM, Jeff Johnson wrote:

>
> On Oct 21, 2007, at 9:37 AM, Bernhard Rosenkraenzer wrote:
>
>> Installing any package with current CVS rpm (on Linux, glibc  
>> 2.6.1, gcc 4.3)
>> results in a segfault.
>>
>> The segfault occurs in headerGetExtension(), he->t at the time is
>> RPM_STRING_TYPE, he->p.str is non-NULL, but invalid (probably  
>> uninitialized).
>> tagName(he->tag) at the time of the crash is Sha1header.
>>
>> headerGetExtension is called from addTE() when the crash occurs.  
>> (addTE is
>> called from rpmteNew, which in turn is called from  
>> rpmtsAddInstallElement).
>
> Yup.
>
> Try
> 	cvs up -D "7 days ago"
> this bug is going be a pain to find.
>

Bracketed between 4-5 days ago with these changes:

+    - jbj: start regularizing hae/hme calls.
+    - jbj: drill rpmTagCount everywhere.
+    - jbj: change hPTR_t to hRET_t in ABI, revert to const void * in  
API.
+    - jbj: drill hPTR_t through prototypes. hRET_t * refactor next.
+    - jbj: drill rpmTagCount through rpmdb/* files.
+    - jbj: preliminaries to encapsulate headerSprintf goop.
+    - rpm.org: Fix broken doxygen comment.
+    - rpm.org: Don't unnecessarily include stdio.h
+    - jbj: extract verifyscript when available. more to do ...

Digging, only 2311 lines in the diff, so I should have a fix soonishly.

73 de Jeff
Received on Sun Oct 21 18:06:31 2007
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.