[MDEV-29707] Incorrect/bad errno on enabling wsrep_on after setting dummy wsrep_provider on non-Galera build Created: 2022-10-05  Updated: 2022-10-10  Resolved: 2022-10-10

Status: Closed
Project: MariaDB Server
Component/s: Galera
Affects Version/s: 10.4, 10.5, 10.6, 10.7, 10.8, 10.9, 10.10, 10.11
Fix Version/s: 10.4.27, 10.5.18, 10.6.11, 10.7.7, 10.8.6, 10.9.4, 10.10.2

Type: Bug Priority: Major
Reporter: Roel Van de Paar Assignee: Jan Lindström (Inactive)
Resolution: Fixed Votes: 0
Labels: not-10.3, wsrep


 Description   

When a non-Galera build is started with a dummy wsrep_provider:

# mysqld options required for replay:  --wsrep_provider='dummy'
SET GLOBAL wsrep_on=ON;

It leads to:

10.11.0 6ebdd3013a18b01dbecec76b870810329eb76586 (Debug)

10.11.0-dbg>SET GLOBAL wsrep_on=ON;
ERROR 1126 (HY000): Can't open shared library 'dummy' (errno: -2147284456, wsrep_init failed)

10.8.5 593fdee3973ce4ab4890a6fb9f740b3a28a44edc (Debug)

10.8.5-dbg>SET GLOBAL wsrep_on=ON;
ERROR 1126 (HY000): Can't open shared library 'dummy' (errno: 1470566390, wsrep_init failed)

10.4.27 3e3cfa893481abe9524a1657c4246fa9f91d4826 (Debug)

10.4.27-dbg>SET GLOBAL wsrep_on=ON;
ERROR 1126 (HY000): Can't open shared library 'dummy' (errno: 488607005, wsrep_init failed)

The -2147284456 number is abritary, and it's value seems to depend on the string provided as wsrep_provider (here dummy), as well as the server version (it is not consitent between versions but it is consistent when the SQL is repeated): it looks like a bad memory read or similar.

An UB+ASAN build does not show any related output.


Generated at Thu Feb 08 10:10:40 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.