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

SIGSEGV in row_vers_impl_x_locked_low

    XMLWordPrintable

Details

    • Can result in hang or crash

    Description

      This crash was found on release build

      # 2025-06-18T12:38:25 [1909039] INFO: basedir[0] : ->/Server_bin/10.11.12_RelWithDebInfo<- GIT_SHOW: HEAD, tag: mariadb-10.11.12, origin/bb-10.11-MDEV-36592 cafd22db7970ce081bafd887359aa0a77cfb769d 2025-04-28T15:58:16+03:00
      

      Core was generated by `/Server_bin/10.11.12_RelWithDebInfo/bin/mariadbd --no-defaults --basedir=/Serve'.
      Program terminated with signal SIGSEGV, Segmentation fault.
      #0  __pthread_kill_implementation (no_tid=0, signo=11, threadid=140080429856320) at ./nptl/pthread_kill.c:44
      44      ./nptl/pthread_kill.c: No such file or directory.
      [Current thread is 1 (Thread 0x7f670442f640 (LWP 1911609))]
      (gdb) set print addr off
      (gdb) bt
      #0  __pthread_kill_implementation (no_tid=0, signo=11, threadid=140080429856320) at ./nptl/pthread_kill.c:44
      #1  __pthread_kill_internal (signo=11, threadid=140080429856320) at ./nptl/pthread_kill.c:78
      #2  __GI___pthread_kill (threadid=140080429856320, signo=11) at ./nptl/pthread_kill.c:89
      #3  handle_fatal_signal (sig=11) at /data/Server/10.11.12/sql/signal_handler.cc:298
      #4  <signal handler called>
      #5  cmp_dtuple_rec (offsets=<optimized out>, index=<optimized out>, rec=<optimized out>, dtuple=<optimized out>) at /data/Server/10.11.12/storage/innobase/include/rem0cmp.h:191
      #6  row_vers_impl_x_locked_low (mtr=, offsets=<optimized out>, index=<optimized out>, rec=<optimized out>, clust_index=<optimized out>, clust_rec=<optimized out>, caller_trx=<optimized out>)
          at /data/Server/10.11.12/storage/innobase/row/row0vers.cc:333
      #7  row_vers_impl_x_locked (caller_trx=<optimized out>, rec=<optimized out>, index=<optimized out>, offsets=<optimized out>) at /data/Server/10.11.12/storage/innobase/row/row0vers.cc:439
      #8  lock_rec_convert_impl_to_expl<false> (offsets=<optimized out>, index=, rec="111111111\200", block=..., caller_trx=) at /data/Server/10.11.12/storage/innobase/lock/lock0lock.cc:6002
      #9  lock_sec_rec_read_check_and_lock (flags=flags@entry=0, block=, rec="111111111\200", index=, offsets=<optimized out>, mode=mode@entry=LOCK_S, gap_mode=0, thr=) at /data/Server/10.11.12/storage/innobase/lock/lock0lock.cc:6221
      #10 row_ins_set_shared_rec_lock (type=<optimized out>, block=<optimized out>, rec=<optimized out>, index=<optimized out>, offsets=<optimized out>, thr=<optimized out>) at /data/Server/10.11.12/storage/innobase/row/row0ins.cc:1414
      #11 row_ins_scan_sec_index_for_duplicate (offsets_heap=<optimized out>, mtr=, thr=, entry=, index=, flags=0) at /data/Server/10.11.12/storage/innobase/row/row0ins.cc:2153
      #12 row_ins_sec_index_entry_low (flags=0, mode=<optimized out>, index=, offsets_heap=<optimized out>, heap=, entry=, trx_id=0, thr=) at /data/Server/10.11.12/storage/innobase/row/row0ins.cc:3150
      #13 row_ins_sec_index_entry (index=, entry=, thr=, check_foreign=<optimized out>) at /data/Server/10.11.12/storage/innobase/row/row0ins.cc:3420
      #14 row_ins_index_entry (thr=, entry=<optimized out>, index=<optimized out>) at /data/Server/10.11.12/storage/innobase/row/row0ins.cc:3487
      #15 row_ins_index_entry_step (thr=, node=) at /data/Server/10.11.12/storage/innobase/row/row0ins.cc:3651
      #16 row_ins (thr=, node=) at /data/Server/10.11.12/storage/innobase/row/row0ins.cc:3776
      #17 row_ins_step (thr=thr@entry=) at /data/Server/10.11.12/storage/innobase/row/row0ins.cc:3905
      #18 row_insert_for_mysql (mysql_rec=mysql_rec@entry="\364\001", prebuilt=, ins_mode=ROW_INS_NORMAL) at /data/Server/10.11.12/storage/innobase/row/row0mysql.cc:1300
      #19 ha_innobase::write_row (this=, record="\364\001") at /data/Server/10.11.12/storage/innobase/handler/ha_innodb.cc:7812
      #20 handler::ha_write_row (this=, buf="\364\001") at /data/Server/10.11.12/sql/handler.cc:7765
      #21 write_record (thd=thd@entry=, table=table@entry=, info=info@entry=, sink=sink@entry=) at /data/Server/10.11.12/sql/sql_insert.cc:2372
      #22 mysql_insert (thd=thd@entry=, table_list=, fields=..., values_list=..., update_fields=..., update_values=..., duplic=<optimized out>, ignore=<optimized out>, result=<optimized out>)
          at /data/Server/10.11.12/sql/sql_insert.cc:1197
      #23 mysql_execute_command (thd=, is_called_from_prepared_stmt=<optimized out>) at /data/Server/10.11.12/sql/sql_parse.cc:4632
      #24 mysql_parse (thd=, rawbuf=<optimized out>, length=<optimized out>, parser_state=<optimized out>) at /data/Server/10.11.12/sql/sql_parse.cc:8179
      #25 dispatch_command (command=COM_QUERY, thd=, packet=<optimized out>, packet_length=<optimized out>, blocking=<optimized out>) at /data/Server/10.11.12/sql/sql_parse.cc:2004
      #26 do_command (thd=thd@entry=, blocking=blocking@entry=true) at /data/Server/10.11.12/sql/sql_parse.cc:1418
      #27 do_handle_one_connection (connect=<optimized out>, put_in_cache=true) at /data/Server/10.11.12/sql/sql_connect.cc:1386
      #28 handle_one_connection (arg=) at /data/Server/10.11.12/sql/sql_connect.cc:1298
      #29 start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
      #30 clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
      

      Core dump is present on pluto: /data/results/1750249790/TBR-2295

      Attachments

        Activity

          People

            saahil Saahil Alam
            saahil Saahil Alam
            Votes:
            0 Vote for this issue
            Watchers:
            3 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.