Db2

 View Only

 DB2 12.1.2.0 Community Edition and address sanitiziation

Sergio Romana's profile image
Sergio Romana posted Mon June 16, 2025 10:30 AM

Hello.  I'm using DB2 community edition 12.1.2.0 on Linux with embedded SQL application.  I have enabled address sanitization for my application but my application fails to start as libraries loaded with RTLD_DEEPBIND are not allowed with address sanitization.

==10655==You are trying to dlopen a /home/db2inst1/sqllib/security64/plugin/IBM/client/IBMOSauthclient.so shared library with RTLD_DEEPBIND flag which is incompatible with sanitizer runtime (see https://github.com/google/sanitizers/issues/611 for details). If you want to run /home/db2inst1/sqllib/security64/plugin/IBM/client/IBMOSauthclient.so library under sanitizers please remove RTLD_DEEPBIND from dlopen flags

This works fine with DB2 11.5.9.0,  Is there any DB2 configuration that would avoid the dlopen() with the RTLD_DEEPBIND.