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

race between provider deinit and release of connection/transaction handler

    Details

    • Type: Bug
    • Status: Done
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.6.44-28.34, 5.7.26-31.37
    • Component/s: None
    • Labels:
      None

      Description

      GDB Info

      #0  __pthread_kill (threadid=<optimized out>, signo=6) at ../sysdeps/unix/sysv/linux/pthread_kill.c:62
      #1  0x000000000475bbe7 in my_write_core (sig=6) at /mnt/workspace/qa.pxc80.build/BUILD_TYPE/debug/Host/min-xenial-x64/mysys/stacktrace.cc:278
      #2  0x000000000359ac0e in handle_fatal_signal (sig=6) at /mnt/workspace/qa.pxc80.build/BUILD_TYPE/debug/Host/min-xenial-x64/sql/signal_handler.cc:264
      #3  <signal handler called>
      #4  0x00007f7199f19428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
      #5  0x00007f7199f1b02a in __GI_abort () at abort.c:89
      #6  0x00007f7199f11bd7 in __assert_fail_base (fmt=<optimized out>, assertion=assertion@entry=0x7f7184524e95 "conn_map_.size() == 0", file=file@entry=0x7f7184524e41 "galera/src/wsdb.cpp", line=line@entry=63, function=function@entry=0x7f7184525480 <galera::Wsdb::~Wsdb()::__PRETTY_FUNCTION__> "galera::Wsdb::~Wsdb()") at assert.c:92
      #7  0x00007f7199f11c82 in __GI___assert_fail (assertion=0x7f7184524e95 "conn_map_.size() == 0", file=0x7f7184524e41 "galera/src/wsdb.cpp", line=63, function=0x7f7184525480 <galera::Wsdb::~Wsdb()::__PRETTY_FUNCTION__> "galera::Wsdb::~Wsdb()") at assert.c:101
      #8  0x00007f7184493f45 in galera::Wsdb::~Wsdb (this=0x7f718c3f6898, __in_chrg=<optimized out>) at galera/src/wsdb.cpp:63
      #9  0x00007f71844d10ea in galera::ReplicatorSMM::~ReplicatorSMM (this=0x7f718c3f6000, __in_chrg=<optimized out>) at galera/src/replicator_smm.cpp:297
      #10 0x00007f71844d1556 in galera::ReplicatorSMM::~ReplicatorSMM (this=0x7f718c3f6000, __in_chrg=<optimized out>) at galera/src/replicator_smm.cpp:317
      #11 0x00007f71844f3d78 in galera_tear_down (gh=0x7f7199458600) at galera/src/wsrep_provider.cpp:103
      #12 0x00000000051b5ac9 in wsrep_unload (hptr=0x7f7199458600) at /mnt/workspace/qa.pxc80.build/BUILD_TYPE/debug/Host/min-xenial-x64/wsrep/src/wsrep_loader.c:208
      #13 0x00000000035bd5cc in wsrep_deinit () at /mnt/workspace/qa.pxc80.build/BUILD_TYPE/debug/Host/min-xenial-x64/sql/wsrep_mysqld.cc:1159
      #14 0x00000000035cf554 in wsrep_provider_update (thd=0x7f7157424000) at /mnt/workspace/qa.pxc80.build/BUILD_TYPE/debug/Host/min-xenial-x64/sql/wsrep_var.cc:368
      #15 0x000000000328ca08 in sys_var::update (this=0x71c6640 <Sys_wsrep_provider>, thd=0x7f7157424000, var=0x7f71312bdae0) at /mnt/workspace/qa.pxc80.build/BUILD_TYPE/debug/Host/min-xenial-x64/sql/set_var.cc:297
      #16 0x000000000328d16d in sys_var::set_default (this=0x71c6640 <Sys_wsrep_provider>, thd=0x7f7157424000, var=0x7f71312bdae0) at /mnt/workspace/qa.pxc80.build/BUILD_TYPE/debug/Host/min-xenial-x64/sql/set_var.cc:388
      #17 0x000000000328f494 in set_var::update (this=0x7f71312bdae0, thd=0x7f7157424000) at /mnt/workspace/qa.pxc80.build/BUILD_TYPE/debug/Host/min-xenial-x64/sql/set_var.cc:1110
      #18 0x000000000328e5f9 in sql_set_variables (thd=0x7f7157424000, var_list=0x7f7157428a88, opened=true) at /mnt/workspace/qa.pxc80.build/BUILD_TYPE/debug/Host/min-xenial-x64/sql/set_var.cc:814
      #19 0x00000000033b47d0 in mysql_execute_command (thd=0x7f7157424000, first_level=true) at /mnt/workspace/qa.pxc80.build/BUILD_TYPE/debug/Host/min-xenial-x64/sql/sql_parse.cc:4030
      #20 0x00000000033bc1e1 in mysql_parse (thd=0x7f7157424000, parser_state=0x7f717a5f3c80, update_userstat=false, force_primary_storage_engine=false) at /mnt/workspace/qa.pxc80.build/BUILD_TYPE/debug/Host/min-xenial-x64/sql/sql_parse.cc:6076
      #21 0x00000000033bfc57 in wsrep_mysql_parse (thd=0x7f7157424000, rawbuf=0x7f71312bd028 "SET @@global.wsrep_provider=default", length=35, parser_state=0x7f717a5f3c80, update_userstat=false, force_primary_storage_engine=false) at /mnt/workspace/qa.pxc80.build/BUILD_TYPE/debug/Host/min-xenial-x64/sql/sql_parse.cc:7263
      #22 0x00000000033ae313 in dispatch_command (thd=0x7f7157424000, com_data=0x7f717a5f5c50, command=COM_QUERY) at /mnt/workspace/qa.pxc80.build/BUILD_TYPE/debug/Host/min-xenial-x64/sql/sql_parse.cc:2050
      #23 0x00000000033abacf in do_command (thd=0x7f7157424000) at /mnt/workspace/qa.pxc80.build/BUILD_TYPE/debug/Host/min-xenial-x64/sql/sql_parse.cc:1419
      #24 0x00000000035841d9 in handle_connection (arg=0x7f71853d5960) at /mnt/workspace/qa.pxc80.build/BUILD_TYPE/debug/Host/min-xenial-x64/sql/conn_handler/connection_handler_per_thread.cc:311
      #25 0x000000000485290a in pfs_spawn_thread (arg=0x7f7138597420) at /mnt/workspace/qa.pxc80.build/BUILD_TYPE/debug/Host/min-xenial-x64/storage/perfschema/pfs.cc:2836
      #26 0x00007f719bc376ba in start_thread (arg=0x7f717a5f7700) at pthread_create.c:333
      #27 0x00007f7199feb41d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
      

        Smart Checklist

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  krunal.bauskar Krunal Bauskar
                  Reporter:
                  ramesh.sivaraman Ramesh Sivaraman
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Time Tracking

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - Not Specified
                    Not Specified
                    Logged:
                    Time Spent - 6 hours, 35 minutes
                    6h 35m