[Rpm-maint] [rpm-software-management/rpm] A Segmentation fault occurred when exec rpm -ivh (#1636)

gaoyi1988 notifications at github.com
Thu Apr 15 09:57:16 UTC 2021


The context of segmentation happened is
```
		/* Get priority of trigger from header */
		trigH = rpmdbGetHeaderAt(rpmtsGetRdb(ts), offset);
		headerGet(trigH, priorityTag, &priorities, HEADERGET_MINMEM);
		rpmtdSetIndex(&priorities, tix);
		priority = *rpmtdGetUint32(&priorities);
		headerFree(trigH);
```
The priorityTag is RPMTAG_TRANSFILETRIGGERPRIORITIES.
The direct reason is priorities->type is 0, and rpmtdGetUint32() return NULL.

It seems that in call trace headerGet() -> intGetTdEntry()-> findEntry(), findEntry() return NULL. What causes this?



-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/1636#issuecomment-820297250
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20210415/276c0c71/attachment-0001.html>


More information about the Rpm-maint mailing list