Uploaded image for project: 'Percona XtraDB Cluster'
  1. Percona XtraDB Cluster
  2. PXC-749

Assertion `pool_.size() == allocd_' failed in gu::MemPool<thread_safe>::~MemPool() [with bool thread_safe = false]

    Details

    • Type: Bug
    • Status: Done
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      GDB info

      #0  0x00007f95a0e32741 in pthread_kill () from /lib64/libpthread.so.0
      #1  0x000000000187be40 in my_write_core (sig=6) at /mnt/workspace/qa.pxc57.build/BUILD_TYPE/debug/label_exp/centos7-64/mysys/stacktrace.c:247
      #2  0x0000000000e8927a in handle_fatal_signal (sig=6) at /mnt/workspace/qa.pxc57.build/BUILD_TYPE/debug/label_exp/centos7-64/sql/signal_handler.cc:235
      #3  <signal handler called>
      #4  0x00007f959efb95f7 in raise () from /lib64/libc.so.6
      #5  0x00007f959efbace8 in abort () from /lib64/libc.so.6
      #6  0x00007f959efb2566 in __assert_fail_base () from /lib64/libc.so.6
      #7  0x00007f959efb2612 in __assert_fail () from /lib64/libc.so.6
      #8  0x00007f958fcedcd2 in gu::MemPool<false>::~MemPool (this=0x36a58c0, __in_chrg=<optimized out>) at galerautils/src/gu_mem_pool.hpp:52
      #9  0x00007f958fcedd44 in gu::MemPool<true>::~MemPool (this=0x36a58c0, __in_chrg=<optimized out>) at galerautils/src/gu_mem_pool.hpp:188
      #10 0x00007f958fcec8ed in galera::Wsdb::~Wsdb (this=0x36a58c0, __in_chrg=<optimized out>) at galera/src/wsdb.cpp:52
      #11 0x00007f958fd13f5d in galera::ReplicatorSMM::~ReplicatorSMM (this=0x36a5130, __in_chrg=<optimized out>) at galera/src/replicator_smm.cpp:302
      #12 0x00007f958fd141a9 in galera::ReplicatorSMM::~ReplicatorSMM (this=0x36a5130, __in_chrg=<optimized out>) at galera/src/replicator_smm.cpp:321
      #13 0x00007f958fd207ff in galera_tear_down (gh=0x3671d30) at galera/src/wsrep_provider.cpp:103
      #14 0x0000000001d9387f in wsrep_unload (hptr=0x3671d30) at /mnt/workspace/qa.pxc57.build/BUILD_TYPE/debug/label_exp/centos7-64/wsrep/wsrep_loader.c:221
      #15 0x0000000000e99fe7 in wsrep_deinit () at /mnt/workspace/qa.pxc57.build/BUILD_TYPE/debug/label_exp/centos7-64/sql/wsrep_mysqld.cc:1201
      #16 0x0000000000ea6455 in wsrep_provider_update (self=0x2d06fc0 <Sys_wsrep_provider>, thd=0x7f9518000b70, type=OPT_GLOBAL) at /mnt/workspace/qa.pxc57.build/BUILD_TYPE/debug/label_exp/centos7-64/sql/wsrep_var.cc:365
      #17 0x000000000147718b in sys_var::update (this=0x2d06fc0 <Sys_wsrep_provider>, thd=0x7f9518000b70, var=0x7f9518006530) at /mnt/workspace/qa.pxc57.build/BUILD_TYPE/debug/label_exp/centos7-64/sql/set_var.cc:184
      #18 0x000000000147788e in sys_var::set_default (this=0x2d06fc0 <Sys_wsrep_provider>, thd=0x7f9518000b70, var=0x7f9518006530) at /mnt/workspace/qa.pxc57.build/BUILD_TYPE/debug/label_exp/centos7-64/sql/set_var.cc:292
      #19 0x000000000147886e in set_var::update (this=0x7f9518006530, thd=0x7f9518000b70) at /mnt/workspace/qa.pxc57.build/BUILD_TYPE/debug/label_exp/centos7-64/sql/set_var.cc:812
      #20 0x0000000001478116 in sql_set_variables (thd=0x7f9518000b70, var_list=0x7f95180035a0) at /mnt/workspace/qa.pxc57.build/BUILD_TYPE/debug/label_exp/centos7-64/sql/set_var.cc:669
      #21 0x00000000015467ff in mysql_execute_command (thd=0x7f9518000b70, first_level=true) at /mnt/workspace/qa.pxc57.build/BUILD_TYPE/debug/label_exp/centos7-64/sql/sql_parse.cc:4404
      #22 0x000000000154e7b4 in mysql_parse (thd=0x7f9518000b70, parser_state=0x7f957c15f100) at /mnt/workspace/qa.pxc57.build/BUILD_TYPE/debug/label_exp/centos7-64/sql/sql_parse.cc:6870
      #23 0x000000000154d8c8 in wsrep_mysql_parse (thd=0x7f9518000b70, rawbuf=0x7f9518005ab0 "SET @@global.wsrep_provider=default", length=35, parser_state=0x7f957c15f100) at /mnt/workspace/qa.pxc57.build/BUILD_TYPE/debug/label_exp/centos7-64/sql/sql_parse.cc:6538
      #24 0x000000000153f831 in dispatch_command (thd=0x7f9518000b70, com_data=0x7f957c15f890, command=COM_QUERY) at /mnt/workspace/qa.pxc57.build/BUILD_TYPE/debug/label_exp/centos7-64/sql/sql_parse.cc:1747
      #25 0x000000000153dd96 in do_command (thd=0x7f9518000b70) at /mnt/workspace/qa.pxc57.build/BUILD_TYPE/debug/label_exp/centos7-64/sql/sql_parse.cc:1139
      #26 0x00000000016817c5 in handle_connection (arg=0x3beab30) at /mnt/workspace/qa.pxc57.build/BUILD_TYPE/debug/label_exp/centos7-64/sql/conn_handler/connection_handler_per_thread.cc:312
      #27 0x00000000018a72b8 in pfs_spawn_thread (arg=0x3bf1800) at /mnt/workspace/qa.pxc57.build/BUILD_TYPE/debug/label_exp/centos7-64/storage/perfschema/pfs.cc:2188
      #28 0x00007f95a0e2ddc5 in start_thread () from /lib64/libpthread.so.0
      #29 0x00007f959f07aced in clone () from /lib64/libc.so.6
      

      Testcase

      # mysqld options to reproduce this issue --multi-range-count=1125899906842624  --wsrep-certify-nonPK=0 --wsrep-convert-LOCK-to-trx=0
      
      CREATE DATABASE test;USE test;
      set sql_mode='traditional';
      use mysql;
      SET @@global.long_query_time = TRUE;
      create TABLE t1 ( a varchar(255), key a(a) ) character set utf8 collate utf8_czech_ci;
      INSERT INTO t1 VALUES (CONVERT(_ucs2 0x062F0633062A USING utf8));
      DROP TABLE t1;
      create table t1 (a tinytext character set latin1);
      SET @@global.wsrep_provider=default;
      

        Smart Checklist

          Attachments

            Activity

              People

              • Assignee:
                kenn.takara Kenn Takara
                Reporter:
                ramesh.sivaraman Ramesh Sivaraman
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: