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

DRAFT: SIGSEGV|bg_slave_kill|handle_manager|start_thread|clone3

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Replication
    • None
    • Can result in hang or crash

    Description

      Pquery found this sporadic crash on the debug build which is difficult to reproduce locally.

      MDEV-32570 CS 12.3.0 4698b89b5dbf39396fe2509920c4fa064faf15b2 (Debug, Clang 18.1.3-11) Build 22/01/2026

      .
      

      Core was generated by `/test/MDEV-32570-MD220126-mariadb-12.3.0-linux-x86_64-dbg/bin/mariadbd --no-def'.
      Program terminated with signal SIGSEGV, Segmentation fault.
      #0 0x00005c4f04ecc625 in bg_slave_kill (victim=0x127330000d58) at /test/main-MDEV-32570-preview_dbg/sql/slave.cc:498
      498 to_kill->rgi_slave->killed_for_retry= rpl_group_info::RETRY_KILL_KILLED;
      [Current thread is 1 (LWP 3438588)]
      (gdb) bt
      #0 0x00005c4f04ecc625 in bg_slave_kill (victim=0x127330000d58) at /test/main-MDEV-32570-preview_dbg/sql/slave.cc:498
      #1 0x00005c4f050037dd in handle_manager (arg=0x0) at /test/main-MDEV-32570-preview_dbg/sql/sql_manager.cc:120
      #2 0x00001273bb49caa4 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:447
      #3 0x00001273bb529c6c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78
      (gdb)

       

      Preliminary analysis:
      The crash has happened only on the debug build.
      It's a slave crash.
      From the bulk sql file which caused the crash, it seems a SHUTDOWN command has caused the above crash.

      Attachments

        Issue Links

          Activity

            People

              bnestere Brandon Nesterenko
              susil.behera Susil Behera
              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.