Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-29707

Incorrect/bad errno on enabling wsrep_on after setting dummy wsrep_provider on non-Galera build

Details

    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.

      Attachments

        Activity

          Roel Roel Van de Paar created issue -
          Roel Roel Van de Paar made changes -
          Field Original Value New Value
          Description When a non-Galera build is started with a dummy {{wsrep_provider}}:
          {code:sql}
          # mysqld options required for replay: --wsrep_provider='dummy'
          SET GLOBAL wsrep_on=ON;
          {code}
          It leads to:
          {noformat:title=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)
          {noformat}
          {noformat:title=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)
          {noformat}
          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.
          When a non-Galera build is started with a dummy {{wsrep_provider}}:
          {code:sql}
          # mysqld options required for replay: --wsrep_provider='dummy'
          SET GLOBAL wsrep_on=ON;
          {code}
          It leads to:
          {noformat:title=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)
          {noformat}
          {noformat:title=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)
          {noformat}
          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.
          Roel Roel Van de Paar made changes -
          Description When a non-Galera build is started with a dummy {{wsrep_provider}}:
          {code:sql}
          # mysqld options required for replay: --wsrep_provider='dummy'
          SET GLOBAL wsrep_on=ON;
          {code}
          It leads to:
          {noformat:title=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)
          {noformat}
          {noformat:title=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)
          {noformat}
          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.
          When a non-Galera build is started with a dummy {{wsrep_provider}}:
          {code:sql}
          # mysqld options required for replay: --wsrep_provider='dummy'
          SET GLOBAL wsrep_on=ON;
          {code}
          It leads to:
          {noformat:title=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)
          {noformat}
          {noformat:title=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)
          {noformat}
          {noformat:title=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)
          {noformat}
          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.
          jplindst Jan Lindström (Inactive) made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          jplindst Jan Lindström (Inactive) made changes -
          issue.field.resolutiondate 2022-10-10 04:33:45.0 2022-10-10 04:33:45.59
          jplindst Jan Lindström (Inactive) made changes -
          Fix Version/s 10.4.27 [ 28405 ]
          Fix Version/s 10.5.18 [ 28421 ]
          Fix Version/s 10.6.11 [ 28441 ]
          Fix Version/s 10.7.7 [ 28442 ]
          Fix Version/s 10.8.6 [ 28443 ]
          Fix Version/s 10.9.4 [ 28444 ]
          Fix Version/s 10.10.2 [ 28410 ]
          Fix Version/s 10.4 [ 22408 ]
          Fix Version/s 10.5 [ 23123 ]
          Fix Version/s 10.6 [ 24028 ]
          Fix Version/s 10.7 [ 24805 ]
          Fix Version/s 10.8 [ 26121 ]
          Fix Version/s 10.9 [ 26905 ]
          Fix Version/s 10.10 [ 27530 ]
          Resolution Fixed [ 1 ]
          Status In Progress [ 3 ] Closed [ 6 ]

          People

            jplindst Jan Lindström (Inactive)
            Roel Roel Van de Paar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.