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

Assertion `!is_thread_specific || (mysqld_server_initialized && thd)' failed in void my_malloc_size_cb_func(long long int, my_bool)

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Fixed
    • 10.4(EOL)
    • 10.4.27
    • Galera
    • None

    Description

      SET GLOBAL debug_dbug='+d,simulate_failed_connection_1';
      SET GLOBAL wsrep_slave_threads=12;
      

      Leads to:

      10.4.19 1ea6ac3c953f847da033254d5df67f57987a1884 (Debug)

      mysqld: /test/10.4_dbg/sql/mysqld.cc:3735: void my_malloc_size_cb_func(long long int, my_bool): Assertion `!is_thread_specific || (mysqld_server_initialized && thd)' failed.
      

      10.4.19 1ea6ac3c953f847da033254d5df67f57987a1884 (Debug)

      Core was generated by `/test/GAL_MD150321-mariadb-10.4.19-linux-x86_64-dbg/bin/mysqld --defaults-file='.
      Program terminated with signal SIGABRT, Aborted.
      #0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
      [Current thread is 1 (Thread 0x150a1c109700 (LWP 1486509))]
      (gdb) bt
      #0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
      #1  0x0000150a2dab3859 in __GI_abort () at abort.c:79
      #2  0x0000150a2dab3729 in __assert_fail_base (fmt=0x150a2dc49588 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x5650217b8b88 "!is_thread_specific || (mysqld_server_initialized && thd)", file=0x5650217b5004 "/test/10.4_dbg/sql/mysqld.cc", line=3735, function=<optimized out>) at assert.c:92
      #3  0x0000150a2dac4f36 in __GI___assert_fail (assertion=assertion@entry=0x5650217b8b88 "!is_thread_specific || (mysqld_server_initialized && thd)", file=file@entry=0x5650217b5004 "/test/10.4_dbg/sql/mysqld.cc", line=line@entry=3735, function=function@entry=0x5650217b8b50 "void my_malloc_size_cb_func(long long int, my_bool)") at assert.c:101
      #4  0x0000565020a2d8f9 in my_malloc_size_cb_func (size=-256, is_thread_specific=<optimized out>) at /test/10.4_dbg/sql/mysqld.cc:3760
      #5  0x00005650217027cc in my_free (ptr=0x15098c00a360) at /test/10.4_dbg/mysys/my_malloc.c:214
      #6  0x00005650216defb3 in delete_dynamic (array=array@entry=0x15098c001408) at /test/10.4_dbg/mysys/array.c:303
      #7  0x00005650216e32da in my_hash_free (hash=hash@entry=0x15098c0013e0) at /test/10.4_dbg/mysys/hash.c:158
      #8  0x0000565020ad84a1 in THD::cleanup (this=this@entry=0x15098c000d90) at /test/10.4_dbg/sql/sql_class.cc:1569
      #9  0x0000565020a2e842 in unlink_thd (thd=thd@entry=0x15098c000d90) at /test/10.4_dbg/sql/mysqld.cc:2603
      #10 0x0000565020a2eb82 in one_thread_per_connection_end (thd=0x15098c000d90, put_in_cache=<optimized out>) at /test/10.4_dbg/sql/mysqld.cc:2752
      #11 0x0000565020d534d8 in start_wsrep_THD (arg=0x1509a40275e0) at /test/10.4_dbg/sql/wsrep_mysqld.cc:2790
      #12 0x0000150a2e070609 in start_thread (arg=<optimized out>) at pthread_create.c:477
      #13 0x0000150a2dbb0293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
      

      Bug confirmed present in:
      MariaDB: 10.2.38 (dbg), 10.3.29 (dbg), 10.4.19 (dbg)

      Bug (or feature/syntax) confirmed not present in:
      10.5.9-6 (dbg), 10.6.0 (dbg)

      Attachments

        Issue Links

          Activity

            ramesh Ramesh Sivaraman created issue -
            serg Sergei Golubchik made changes -
            Field Original Value New Value
            Workflow MariaDB v3 [ 120908 ] MariaDB v4 [ 142768 ]
            jplindst Jan Lindström (Inactive) made changes -
            Priority Major [ 3 ] Critical [ 2 ]
            jplindst Jan Lindström (Inactive) made changes -
            Priority Critical [ 2 ] Minor [ 4 ]
            ralf.gebhardt Ralf Gebhardt made changes -
            Fix Version/s 10.2 [ 14601 ]
            jplindst Jan Lindström (Inactive) made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            jplindst Jan Lindström (Inactive) made changes -
            Fix Version/s 10.3 [ 22126 ]
            jplindst Jan Lindström (Inactive) made changes -
            issue.field.resolutiondate 2022-10-10 04:32:50.0 2022-10-10 04:32:50.376
            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 ]
            Resolution Fixed [ 1 ]
            Status In Progress [ 3 ] Closed [ 6 ]
            jplindst Jan Lindström (Inactive) made changes -
            Affects Version/s 10.2 [ 14601 ]
            Affects Version/s 10.3 [ 22126 ]
            jplindst Jan Lindström (Inactive) made changes -
            Fix Version/s 10.10.2 [ 28410 ]
            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 ]

            In 10.5, this code had been simplified as part of MDEV-19515.

            marko Marko Mäkelä added a comment - In 10.5, this code had been simplified as part of MDEV-19515 .
            marko Marko Mäkelä made changes -

            People

              jplindst Jan Lindström (Inactive)
              ramesh Ramesh Sivaraman
              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.