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

int myclone::Client::pfs_begin_state(): Assertion `s_num_clones == 1' failed

    XMLWordPrintable

Details

    • Can result in hang or crash

    Description

      Assertion found on debug build

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

      # 2025-09-02T20:19:12 [2626295] | mariadbd: /data/Server/MDEV-36733/plugin/clone/src/clone_client.cc:625: int myclone::Client::pfs_begin_state(): Assertion `s_num_clones == 1' failed.
      

      Stack

      # 2025-09-02T20:27:48 [2626295] | Thread 3 (Thread 2635011.2671291 (one_connection)):
      # 2025-09-02T20:27:48 [2626295] | #0  __pthread_kill_implementation (no_tid=0, signo=6, threadid=140496569935424) at ./nptl/pthread_kill.c:44
      # 2025-09-02T20:27:48 [2626295] | #1  __pthread_kill_internal (signo=6, threadid=140496569935424) at ./nptl/pthread_kill.c:78
      # 2025-09-02T20:27:48 [2626295] | #2  __GI___pthread_kill (threadid=140496569935424, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
      # 2025-09-02T20:27:48 [2626295] | #3  0x000060bc66901476 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
      # 2025-09-02T20:27:48 [2626295] | #4  0x000060bc668e77f3 in __GI_abort () at ./stdlib/abort.c:79
      # 2025-09-02T20:27:48 [2626295] | #5  0x000060bc668e771b in __assert_fail_base (fmt=0x60bc66a9c130 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x1e99687ea0de "s_num_clones == 1", file=0x1e99687ea4a8 "/data/Server/MDEV-36733/plugin/clone/src/clone_client.cc", line=625, function=<optimized out>) at ./assert/assert.c:92
      # 2025-09-02T20:27:48 [2626295] | #6  0x000060bc668f8e96 in __GI___assert_fail (assertion=0x1e99687ea0de "s_num_clones == 1", file=0x1e99687ea4a8 "/data/Server/MDEV-36733/plugin/clone/src/clone_client.cc", line=625, function=0x1e99687ea798 "int myclone::Client::pfs_begin_state()") at ./assert/assert.c:101
      # 2025-09-02T20:27:48 [2626295] | #7  0x00001e99687b6092 in myclone::Client::pfs_begin_state (this=this@entry=0x7fc7e82481a8) at /data/Server/MDEV-36733/plugin/clone/src/clone_client.cc:625
      # 2025-09-02T20:27:48 [2626295] | #8  0x00001e99687d2337 in myclone::Local::clone (this=this@entry=0x7fc7e82481a0) at /data/Server/MDEV-36733/plugin/clone/src/clone_local.cc:64
      # 2025-09-02T20:27:48 [2626295] | #9  0x00001e99687b34a6 in plugin_clone_local (thd=0x631360020158, data_dir=<optimized out>) at /data/Server/MDEV-36733/plugin/clone/src/clone_plugin.cc:429
      # 2025-09-02T20:27:48 [2626295] | #10 0x000055a258a17842 in Clone_handler::clone_local (this=0x1359200d7010, thd=thd@entry=0x631360020158, data_dir=<optimized out>) at /data/Server/MDEV-36733/sql/clone_handler.cc:124
      # 2025-09-02T20:27:48 [2626295] | #11 0x000055a25888128c in Sql_cmd_clone::execute (this=0x6313600356f8, thd=0x631360020158) at /data/Server/MDEV-36733/sql/sql_admin.cc:1800
      # 2025-09-02T20:27:48 [2626295] | #12 0x000055a2586e2b61 in mysql_execute_command (thd=thd@entry=0x631360020158, is_called_from_prepared_stmt=is_called_from_prepared_stmt@entry=false) at /data/Server/MDEV-36733/sql/sql_parse.cc:5889
      # 2025-09-02T20:27:48 [2626295] | #13 0x000055a2586e3871 in mysql_parse (thd=thd@entry=0x631360020158, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x7fc7e8249320) at /data/Server/MDEV-36733/sql/sql_parse.cc:7914
      # 2025-09-02T20:27:48 [2626295] | #14 0x000055a2586e59ed in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x631360020158, packet=packet@entry=0x63136002a7b9 "CLONE LOCAL DATA DIRECTORY = '/invalid/nonexistent/path' /* E_R Thread13 QNO 631 CON_ID 27 */ ", packet_length=packet_length@entry=94, blocking=blocking@entry=true) at /data/Server/MDEV-36733/sql/sql_parse.cc:1896
      # 2025-09-02T20:27:48 [2626295] | #15 0x000055a2586e7a3e in do_command (thd=thd@entry=0x631360020158, blocking=blocking@entry=true) at /data/Server/MDEV-36733/sql/sql_parse.cc:1419
      # 2025-09-02T20:27:48 [2626295] | #16 0x000055a25886ea17 in do_handle_one_connection (connect=<optimized out>, connect@entry=0x55a25c6186a8, put_in_cache=put_in_cache@entry=true) at /data/Server/MDEV-36733/sql/sql_connect.cc:1414
      # 2025-09-02T20:27:48 [2626295] | #17 0x000055a25886ec57 in handle_one_connection (arg=0x55a25c6186a8) at /data/Server/MDEV-36733/sql/sql_connect.cc:1326
      # 2025-09-02T20:27:48 [2626295] | #18 0x000060bc66953ac3 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
      # 2025-09-02T20:27:48 [2626295] | #19 0x000060bc669e4a04 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:100
      

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

      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.