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

SIGSEGV in srv_printf_innodb_monitor

    XMLWordPrintable

Details

    • Can result in hang or crash

    Description

      SIGSEGV found in debug build
      Leads t o:

      GIT_SHOW: HEAD -> 10.11, origin/bb-10.11-MDEV-26115, origin/10.11 852e4510fa662c571a42f550278d4abd09e3c5cf 2025-07-23T09:34:47+07:00

      Thread 3 received signal SIGSEGV, Segmentation fault.
      [Switching to Thread 1343930.1353307]
      0x000056046c811e79 in srv_printf_innodb_monitor (file=0x56046f0ad0e0, nowait=nowait@entry=0, trx_start_pos=trx_start_pos@entry=0xa230e73ac80, trx_end=trx_end@entry=0xa230e73ac88) at /data/Server/10.11_new/storage/innobase/srv/srv0
      srv.cc:777
      777                             ut_ad(part->heap->type == MEM_HEAP_FOR_BTR_SEARCH);
      (rr) set print addr off
      (rr) bt
      #0  srv_printf_innodb_monitor (file=, nowait=nowait@entry=0, trx_start_pos=trx_start_pos@entry=, trx_end=trx_end@entry=) at /data/Server/10.11_new/storage/innobase/srv/srv0srv.cc:777
      #1  innodb_show_status (hton=hton@entry=, thd=thd@entry=, stat_print=stat_print@entry=<stat_print(THD*, char const*, size_t, char const*, size_t, char const*, size_t)>)
          at /data/Server/10.11_new/storage/innobase/handler/ha_innodb.cc:16489
      #2  innobase_show_status (hton=, thd=, stat_print=<stat_print(THD*, char const*, size_t, char const*, size_t, char const*, size_t)>, stat_type=HA_ENGINE_STATUS)
          at /data/Server/10.11_new/storage/innobase/handler/ha_innodb.cc:16571
      #3  ha_show_status (thd=thd@entry=, db_type=, stat=<optimized out>, stat@entry=HA_ENGINE_STATUS) at /data/Server/10.11_new/sql/handler.cc:7135
      #4  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:4230
      #5  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:8178
      #6  dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=, packet=packet@entry="", packet_length=packet_length@entry=62, blocking=blocking@entry=true) at /data/Server/10.11_new/sql/sql_parse.cc:1906
      #7  do_command (thd=thd@entry=, blocking=blocking@entry=true) at /data/Server/10.11_new/sql/sql_parse.cc:1419
      #8  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
      #9  handle_one_connection (arg=) at /data/Server/10.11_new/sql/sql_connect.cc:1298
      #10 start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
      #11 clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:100
      

      RR trace is present on pluto:
      /data/results/1754035426/TBR-1432

      Attachments

        1. simplify_TBR-1432.cfg
          47 kB
          Saahil Alam
        2. TBR-1432.yy
          0.4 kB
          Saahil Alam

        Issue Links

          Activity

            People

              marko Marko Mäkelä
              saahil Saahil Alam
              Marko Mäkelä Marko Mäkelä
              Thirunarayanan Balathandayuthapani Thirunarayanan Balathandayuthapani
              Saahil Alam Saahil Alam
              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.