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

Attempt to compare iterators from different sequences in range_set::add_range

    XMLWordPrintable

Details

    • Can result in hang or crash

    Description

      Crash dound on debug build

      Leads to:

      GIT_SHOW: HEAD -> 10.11, origin/10.11 21bb6a3e348f89c5cf23d4ee688c57f6078c7b02 2025-08-27T11:02:19+03:00

      #0  __pthread_kill_implementation (no_tid=0, signo=6, threadid=139850451056192) at ./nptl/pthread_kill.c:44
      #1  __pthread_kill_internal (signo=6, threadid=139850451056192) at ./nptl/pthread_kill.c:78
      #2  __GI___pthread_kill (threadid=139850451056192, signo=6) at ./nptl/pthread_kill.c:89
      #3  my_write_core (sig=6) at /data/Server/10.11_new/mysys/stacktrace.c:424
      #4  handle_fatal_signal (sig=6) at /data/Server/10.11_new/sql/signal_handler.cc:298
      #5  <signal handler called>
      #6  __pthread_kill_implementation (no_tid=0, signo=6, threadid=139850451056192) at ./nptl/pthread_kill.c:44
      #7  __pthread_kill_internal (signo=6, threadid=139850451056192) at ./nptl/pthread_kill.c:78
      #8  __GI___pthread_kill (threadid=139850451056192, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
      #9  __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
      #10 __GI_abort () at ./stdlib/abort.c:79
      #11 ?? () from /lib/x86_64-linux-gnu/libstdc++.so.6
      #12 __gnu_debug::operator== (__lhs={first = 0, last = 0}, __rhs={first = 0, last = 0}) at /usr/include/c++/11/debug/safe_iterator.h:469
      #13 range_set::add_range (this=, new_range=...) at /data/Server/10.11_new/storage/innobase/include/fil0fil.h:269
      #14 fil_space_t::add_free_range (range=..., this=<optimized out>) at /data/Server/10.11_new/storage/innobase/include/fil0fil.h:961
      #15 mtr_t::commit (this=this@entry=) at /data/Server/10.11_new/storage/innobase/mtr/mtr0mtr.cc:499
      #16 btr_drop_temporary_table (table=...) at /data/Server/10.11_new/storage/innobase/btr/btr0btr.cc:1295
      #17 ha_innobase::truncate (this=) at /data/Server/10.11_new/storage/innobase/handler/ha_innodb.cc:13935
      #18 handler::ha_truncate (this=) at /data/Server/10.11_new/sql/handler.cc:5267
      #19 Sql_cmd_truncate_table::handler_truncate (this=this@entry=, thd=thd@entry=, table_ref=table_ref@entry=, is_tmp_table=is_tmp_table@entry=true) at /data/Server/10.11_new/sql/sql_truncate.cc:255
      #20 Sql_cmd_truncate_table::truncate_table (this=this@entry=, thd=thd@entry=, table_ref=table_ref@entry=) at /data/Server/10.11_new/sql/sql_truncate.cc:469
      #21 Sql_cmd_truncate_table::execute (this=, thd=) at /data/Server/10.11_new/sql/sql_truncate.cc:602
      #22 mysql_execute_command (thd=thd@entry=, is_called_from_prepared_stmt=is_called_from_prepared_stmt@entry=false) at /data/Server/10.11_new/sql/sql_parse.cc:6165
      #23 mysql_parse (thd=thd@entry=, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=) at /data/Server/10.11_new/sql/sql_parse.cc:8180
      #24 dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=, packet=packet@entry="TRUNCATE TABLE t1 /* E_R Thread7 QNO 26667 CON_ID 21 */ ", packet_length=packet_length@entry=56, blocking=blocking@entry=true)
          at /data/Server/10.11_new/sql/sql_parse.cc:1906
      #25 do_command (thd=thd@entry=, blocking=blocking@entry=true) at /data/Server/10.11_new/sql/sql_parse.cc:1419
      #26 do_handle_one_connection (connect=<optimized out>, connect@entry=, put_in_cache=put_in_cache@entry=true) at /data/Server/10.11_new/sql/sql_connect.cc:1386
      #27 handle_one_connection (arg=) at /data/Server/10.11_new/sql/sql_connect.cc:1298
      #28 start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
      #29 clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
      

      Core dump is present on pluto:-

      /data/results/1756324862/TBR-2325

      Attachments

        Issue Links

          Activity

            People

              marko Marko Mäkelä
              saahil Saahil Alam
              Votes:
              0 Vote for this issue
              Watchers:
              2 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.