[Rpm-maint] [rpm-software-management/rpm] Clang + ASAN/UBSAN causes test failures (Issue #4112)

Michal Domonkos notifications at github.com
Mon Feb 9 17:09:24 UTC 2026


dmnks created an issue (rpm-software-management/rpm#4112)

Running the test-suite on a clang-based build with ASAN/UBSAN enabled causes a number of failures. Note that there may be some overlap with #4105 as well.

Reproduction steps:
1. Configure a build with `-DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DENABLE_ASAN=ON -DENABLE_UBSAN=ON`, and `CFLAGS` and `CXXFLAGS` set to `-Og -g`
2. Make sure to have the following packages installed (on Fedora): `clang libomp-devel compiler-rt`
3. Run `make check`

The most common failure is in the python wrapper:

```
104. rpmpython.at:6: testing module import ...    
/rpmpython.at:6:                                  
cat << EOF > test.py                              
# coding=utf-8                                    
import rpm, sys, os                               
dbpath=rpm.expandMacro('%_dbpath')
rpm.addMacro('_dbpath', '${RPMTEST}%s' % dbpath)  
rpm.addMacro('_db_backend', os.getenv('DBFORMAT'))
ts = rpm.ts()                                     
ts.setFlags(rpm.RPMTRANS_FLAG_NOPLUGINS)
                                                  
print(rpm.__version__)                            
                                                  
EOF                                               
LD_PRELOAD=${ASANLIB} ${PYTHON} test.py

--- /dev/null   2026-02-09 08:26:44.846001909 +0000                 
+++ /srv/rpmtests.dir/at-groups/104/stderr      2026-02-09 15:08:43.741666339 +0000
@@ -0,0 +1,6 @@                                   
+Traceback (most recent call last):          
+  File "/srv/rpmtests.dir/104/test.py", line 2, in <module>
+    import rpm, sys, os                                                                            
+  File "/usr/local/lib64/python3.14/site-packages/rpm/__init__.py", line 38, in <module>
+    from rpm._rpm import *   
+ImportError: /usr/local/lib64/librpmio.so.10: undefined symbol: __asan_option_detect_stack_use_after_return
--- -   2026-02-09 15:08:43.747765707 +0000                                                         
+++ /srv/rpmtests.dir/at-groups/104/stdout      2026-02-09 15:08:43.745666316 +0000
@@ -1,2 +1 @@                                                                                       
-6.0.90
```

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

Message ID: <rpm-software-management/rpm/issues/4112 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20260209/165271f7/attachment.htm>


More information about the Rpm-maint mailing list