[Rpm-maint] [rpm-software-management/rpm] Possible deadlock when macro tracing and debug is turned on (#1418)

Michael Schroeder notifications at github.com
Wed Oct 28 10:11:39 UTC 2020


This deadlocks for me:
```
rpm -vv --eval '%trace'
```
It hangs because rpmlog() tries to expand `%{?_color_output}^{!?_color_output:auto}` leading to another call to rpmlog().

We could temporarily clear print_expand_trace in the printExpansion() function but I think a better fix would be to revert commit 7f220202f20c69d6f3fd957325cdbe692bbabedd. It's weird that printExpansion() uses rpmlog, but printMacro() does not. Also, the line is printed with multiple rpmlog calls, leading to `D:` being spread into the output.

The commit does not include a rationale, so it's hard to tell why this was changed in the first place.

-- 
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/1418
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20201028/92d67f8a/attachment.html>


More information about the Rpm-maint mailing list