[Rpm-maint] [rpm-software-management/rpm] Macro with empty body causes abort (Issue #4195)
Michal Domonkos
notifications at github.com
Tue Apr 28 15:56:37 UTC 2026
dmnks created an issue (rpm-software-management/rpm#4195)
**Describe the bug**
Defining a macro without a body terminates with an assertion error (abort).
**To Reproduce**
Steps to reproduce the behavior:
```
$ rpm --eval '%define this' --eval '%this'
```
**Expected behavior**
```
error: Macro %this has empty body
```
**Output**
```
/usr/include/c++/15/bits/basic_string.h:1452: constexpr std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::reference std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::back() [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; reference = char&]: Assertion '!empty()' failed.
Aborted (core dumped) rpm --eval '%define this' --eval '%this'
```
**Environment**
- OS / Distribution: Fedora 44
- Version: master branch
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/4195
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/issues/4195 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20260428/86f2d9fc/attachment-0001.htm>
More information about the Rpm-maint
mailing list