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

void intern_plugin_unlock(LEX*, plugin_ref): Assertion `pi->ref_count' failed.

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • N/A
    • 12.3
    • Plugins
    • None
    • Can result in hang or crash

    Description

      Assertion found on main-MDEV-36733 on debug build

      main-MDEV-36733, origin/main-MDEV-36733 7cc113f555cecc6ade9cadd3e3ebae3c9129e0aa 2025-09-02T18:48:45+05:30

      # 2025-09-02T17:29:54 [2496309] | mariadbd: /data/Server/MDEV-36733/sql/sql_plugin.cc:1396: void intern_plugin_unlock(LEX*, plugin_ref): Assertion `pi->ref_count' failed.
      

      Stacktrace

      #0  __pthread_kill_implementation (no_tid=0, signo=6, threadid=140442117543488) at ./nptl/pthread_kill.c:44
      #1  __pthread_kill_internal (signo=6, threadid=140442117543488) at ./nptl/pthread_kill.c:78
      #2  __GI___pthread_kill (threadid=140442117543488, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
      #3  __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
      #4  __GI_abort () at ./stdlib/abort.c:79
      #5  __assert_fail_base (fmt="%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion="pi->ref_count", file="/data/Server/MDEV-36733/sql/sql_plugin.cc", line=1396, 
          function=<optimized out>) at ./assert/assert.c:92
      #6  __GI___assert_fail (assertion="pi->ref_count", file="/data/Server/MDEV-36733/sql/sql_plugin.cc", line=1396, function="void intern_plugin_unlock(LEX*, plugin_ref)")
          at ./assert/assert.c:101
      #7  intern_plugin_unlock (lex=lex@entry=, plugin=) at /data/Server/MDEV-36733/sql/sql_plugin.cc:1396
      #8  plugin_unlock_list (thd=thd@entry=, list=, list@entry=, count=0, count@entry=86) at /data/Server/MDEV-36733/sql/sql_plugin.cc:1438
      #9  plugin_foreach_with_mask (thd=<optimized out>, func=func@entry=<show_plugins(THD*, plugin_ref, void*)>, type=type@entry=-1, state_mask=state_mask@entry=4294967294, 
          arg=<optimized out>) at /data/Server/MDEV-36733/sql/sql_plugin.cc:2555
      #10 fill_plugins (thd=<optimized out>, tables=<optimized out>, cond=<optimized out>) at /data/Server/MDEV-36733/sql/sql_show.cc:346
      #11 get_schema_tables_result (join=join@entry=, executed_place=executed_place@entry=PROCESSED_BY_JOIN_EXEC) at /data/Server/MDEV-36733/sql/sql_show.cc:9740
      #12 JOIN::exec_inner (this=this@entry=) at /data/Server/MDEV-36733/sql/sql_select.cc:5047
      #13 JOIN::exec (this=this@entry=) at /data/Server/MDEV-36733/sql/sql_select.cc:4874
      #14 mysql_select (thd=thd@entry=, tables=, fields=..., conds=, og_num=0, order=, group=, having=, proc_param=, select_options=2701396736, result=, unit=, select_lex=)
          at /data/Server/MDEV-36733/sql/sql_select.cc:5402
      #15 handle_select (thd=thd@entry=, lex=lex@entry=, result=result@entry=, setup_tables_done_option=setup_tables_done_option@entry=0) at /data/Server/MDEV-36733/sql/sql_select.cc:634
      #16 execute_sqlcom_select (thd=thd@entry=, all_tables=) at /data/Server/MDEV-36733/sql/sql_parse.cc:6198
      #17 mysql_execute_command (thd=thd@entry=, is_called_from_prepared_stmt=is_called_from_prepared_stmt@entry=false) at /data/Server/MDEV-36733/sql/sql_parse.cc:3975
      #18 mysql_parse (thd=thd@entry=, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=) at /data/Server/MDEV-36733/sql/sql_parse.cc:7914
      #19 dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=, 
          packet=packet@entry="SELECT PLUGIN_NAME, PLUGIN_STATUS FROM INFORMATION_SCHEMA.PLUGINS WHERE PLUGIN_NAME = 'clone' /* E_R Thread10 QNO 469 CON_ID 26 */ ", 
          packet_length=packet_length@entry=131, blocking=blocking@entry=true) at /data/Server/MDEV-36733/sql/sql_parse.cc:1896
      #20 do_command (thd=thd@entry=, blocking=blocking@entry=true) at /data/Server/MDEV-36733/sql/sql_parse.cc:1419
      #21 do_handle_one_connection (connect=<optimized out>, connect@entry=, put_in_cache=put_in_cache@entry=true) at /data/Server/MDEV-36733/sql/sql_connect.cc:1414
      #22 handle_one_connection (arg=) at /data/Server/MDEV-36733/sql/sql_connect.cc:1326
      #23 start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
      #24 clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:100
      

      RR trace is present on pluto:
      /data/results/1756833677/TBR-2327

      Attachments

        Issue Links

          Activity

            People

              thiru Thirunarayanan Balathandayuthapani
              saahil Saahil Alam
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

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