[Rpm-maint] [rpm-software-management/rpm] syslog plugin (and maybe others) segfaults in tsm_pre when rpmtsRootDir() is NULL (Issue #4320)

Panu Matilainen notifications at github.com
Tue Sep 1 12:27:17 UTC 2026


pmatilai left a comment (rpm-software-management/rpm#4320)

This is actually a documented requirement, from https://github.com/rpm-software-management/rpm/blob/master/include/rpm/rpmts.h#L260 

> Before calling rpmtsRun be sure to have:
>    - setup the rpm root dir via rpmtsSetRoot().
>    - setup the rpm notify callback via rpmtsSetNotifyCallback().
>    - setup the rpm transaction flags via rpmtsSetFlags().

Now, the requirement to run rpmtsSetRoot() sure seems dumb. But I also remember trying to eliminate that requirement way back then and there were dragons. I've no idea whether those dragons still exist.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/4320#issuecomment-5493926996
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/issues/4320/5493926996 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20260901/4e0105f4/attachment.htm>


More information about the Rpm-maint mailing list