Next Generation DBMS TokuDB, based on Percona Server 5.7 with more features
Switch branches/tags
Clone or download
Pull request Compare This branch is 27 commits ahead, 1873 commits behind percona:5.7.
BohuTANG tokudb: fixup PFS key double-free during shutdown
TokuDB will be crashed during shutdown due to PFS key double-free.

(gdb) bt
#0  __pthread_kill (threadid=<optimized out>, signo=signo@entry=11) at ../sysdeps/unix/sysv/linux/pthread_kill.c:62
#1  0x0000000000f6b3e7 in my_write_core (sig=sig@entry=11) at /u01/tokudb/mysys/stacktrace.c:249
#2  0x000000000086b6e5 in handle_fatal_signal (sig=11) at /u01/tokudb/sql/signal_handler.cc:223
#3  <signal handler called>
percona#4  destroy_mutex (pfs=0x7f8fb71c9900) at /u01/tokudb/storage/perfschema/pfs_instr.cc:327
percona#5  0x00000000013c574a in pfs_destroy_mutex_v1 (mutex=<optimized out>) at /u01/tokudb/storage/perfschema/pfs.cc:1833
percona#6  0x0000000000fc350a in inline_mysql_mutex_destroy (that=0x1f84ea0 <tokudb_map_mutex>) at /u01/tokudb/include/mysql/psi/mysql_thread.h:681
percona#7  tokudb::thread::mutex_t::~mutex_t (this=0x1f84ea0 <tokudb_map_mutex>, __in_chrg=<optimized out>) at /u01/tokudb/storage/tokudb/tokudb_thread.h:214
percona#8  0x00007f8fbb38cff8 in _run_exit_handlers (status=status@entry=0, listp=0x7f8fbb7175f8 <_exit_funcs>, run_list_atexit=run_list_atexit@entry=true) at exit.c:82
percona#9  0x00007f8fbb38d045 in __GI_exit (status=status@entry=0) at exit.c:104
percona#10 0x000000000085b7b5 in mysqld_exit (exit_code=exit_code@entry=0) at /u01/tokudb/sql/mysqld.cc:1205
percona#11 0x0000000000865fa6 in mysqld_main (argc=46, argv=0x7f8fbaeb3088) at /u01/tokudb/sql/mysqld.cc:5430
percona#12 0x00007f8fbb373830 in __libc_start_main (main=0x78d700 <main(int, char**)>, argc=10, argv=0x7ffd36ab1a28, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffd36ab1a18) at ../csu/libc-start.c:291
percona#13 0x00000000007a7b79 in _start ()

And the AddressSanitizer errors:
==27219==ERROR: AddressSanitizer: heap-use-after-free on address 0x7f009b12d118 at pc 0x00000265d80b bp 0x7ffd3bb7ffb0 sp 0x7ffd3bb7ffa0
READ of size 8 at 0x7f009b12d118 thread T0
#0 0x265d80a in destroy_mutex(PFS_mutex*) /u01/tokudb/storage/perfschema/pfs_instr.cc:323
#1 0x1cfaef3 in inline_mysql_mutex_destroy /u01/tokudb/include/mysql/psi/mysql_thread.h:681
#2 0x1cfaef3 in tokudb::thread::mutex_t::~mutex_t() /u01/tokudb/storage/tokudb/tokudb_thread.h:214
#3 0x7f009d512ff7 (/lib/x86_64-linux-gnu/libc.so.6+0x39ff7)
percona#4 0x7f009d513044 in exit (/lib/x86_64-linux-gnu/libc.so.6+0x3a044)
percona#5 0x9a8239 in mysqld_exit /u01/tokudb/sql/mysqld.cc:1205
percona#6 0x9b210f in unireg_abort /u01/tokudb/sql/mysqld.cc:1175
percona#7 0x9b629e in init_server_components /u01/tokudb/sql/mysqld.cc:4509
percona#8 0x9b8aca in mysqld_main(int, char**) /u01/tokudb/sql/mysqld.cc:5001
percona#9 0x7f009d4f982f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
percona#10 0x7e8308 in _start (/home/ubuntu/mysql_20161216/bin/mysqld+0x7e8308)
Latest commit 39b1969 Jan 18, 2018
Permalink
Failed to load latest commit information.
BUILD Bug#21246941 REMOVE BUILD/BUILD_MCCGE.SH FROM THE 5.7 SOURCE TREE Jun 12, 2015
Docs Bug#22194831 INSTALL-SOURCE AND INSTALL-WIN-SOURCE CONTAIN OUTDATED I… Nov 25, 2015
build-ps Merge remote-tracking branch 'percona/releaes-5.7.20-18' Dec 16, 2017
client Merge pull request percona#1992 from dutow/ps-5.7-artful-fix Dec 8, 2017
cmake Merge remote-tracking branch 'percona/releaes-5.7.20-18' Dec 16, 2017
cmd-line-utils/libedit Merge branch 'mysql-5.6' into mysql-5.7 Apr 24, 2015
dbug Bug#22932576 MYSQL5.6 DOES NOT BUILD ON SOLARIS12 Mar 21, 2016
doc Merge pull request percona#1995 from hrvojem/doc-646-5.7 Dec 7, 2017
extra Merge remote-tracking branch 'percona/releaes-5.7.20-18' Dec 16, 2017
include Merge pull request percona#1984 from percona-ysorokin/ps-5.7.20-merge Nov 23, 2017
internal/mysql-test/suite/i_main Fixes for the Percona Server 5.7 port Dec 4, 2015
libbinlogevents lp1729241, BLD-860: Fixed compilation issues with gcc-7 for the 5.7 b… Dec 8, 2017
libbinlogstandalone Remove the MSVC CRT libraries from release packages Feb 17, 2017
libevent Bug#23344916 ADAPT TO GCC 5.3 ON SOLARIS May 30, 2016
libmysql Merged 'mysql-5.7.19' into ps-5.7.19-merge Aug 18, 2017
libmysqld Merged 'mysql-5.7.17' into ps-5.7.17-merge Jan 24, 2017
libservices Bug #22908232 A TYPO IN MYSQL_KEYRING_FILE_SERVICE Mar 11, 2016
man Merged 'mysql-5.7.20' into ps-5.7.20-merge Nov 22, 2017
mysql-test tokudb: fixup the alter_table_current_timestamp.result Jan 6, 2018
mysys Merged 'mysql-5.7.20' into ps-5.7.20-merge Nov 22, 2017
mysys_ssl Merge branch 'ps-5.6-bug1702903-debian_stretch' into ps-5.7-bug170290… Jul 17, 2017
packaging Bug#26680491 BUILD ON WINDOWS: ADAPT WIX SEARCH TO 32/64BIT VERSIONS … Aug 25, 2017
plugin Merge pull request percona#1992 from dutow/ps-5.7-artful-fix Dec 8, 2017
policy Added selinux package Aug 4, 2014
rapid Merge pull request percona#1992 from dutow/ps-5.7-artful-fix Dec 8, 2017
regex lp1729241, BLD-860: Fixed compilation issues with gcc-7 for the 5.7 b… Dec 8, 2017
scripts [BLD-893] mysqld_safe in 5.7 does not restart the server when it is k… Nov 24, 2017
sql-common lp1729241, BLD-860: Fixed compilation issues with gcc-7 for the 5.7 b… Dec 8, 2017
sql Add xelabs build Dec 17, 2017
storage tokudb: fixup PFS key double-free during shutdown Jan 18, 2018
strings lp1729241, BLD-860: Fixed compilation issues with gcc-7 for the 5.7 b… Dec 8, 2017
support-files Merge MySQL 5.7.18, implementing May 5, 2017
testclients Merge MySQL 5.7.18, implementing May 5, 2017
unittest Merge pull request percona#1992 from dutow/ps-5.7-artful-fix Dec 8, 2017
vio Merge branch 'ps-5.6-bug1702903-debian_stretch' into ps-5.7-bug170290… Jul 17, 2017
win WL#411: Generated columns Oct 23, 2014
xelabs Add xelabs build Dec 17, 2017
zlib wl#8338 MySQLng Plugin Feb 26, 2016
.gitattributes Bug#22240513 REMOVE GITIGNORE / BZRIGNORE FROM OFFICIAL RELEASE Dec 5, 2016
.gitignore Fix .gitignore. spec files shouldn't be listed Jul 11, 2016
.gitmodules Merge remote-tracking branch 'percona/releaes-5.7.18-16' Aug 6, 2017
.is_percona_server_bzr Manually merge lp:~stewart/percona-server/pkg-5.6 Jan 14, 2014
.travis.yml build: fix the travis ci test Nov 9, 2017
CMakeLists.txt Merge remote-tracking branch 'percona/releaes-5.7.20-18' Dec 16, 2017
COPYING DBP-13 add license to the backup plugin Feb 2, 2015
COPYING.innodb-deadlock-count-patch move Percona-Server to be the top level directory. We are now a tree … Oct 8, 2013
COPYING.show_temp_51 Fix bug 1184287 (Replace innodb_page_size_basic test with upstream Jul 22, 2014
Doxyfile-perfschema Fixed miscellaneous doxygen formatting errors. Nov 29, 2012
INSTALL Merge branch 'mysql-5.6' into mysql-5.7 Nov 17, 2015
README.MySQL Merge Percona Server 5.6 to MySQL 5.7.9, producing Percona Server 5.7.9 Dec 4, 2015
README.md build: fix the travis ci test Nov 9, 2017
VERSION Merged 'mysql-5.7.20' into ps-5.7.20-merge Nov 22, 2017
config.h.cmake Null-merge branch 5.6 (commit 17927d5) into 5.7 Aug 24, 2017
configure.cmake Bug#25909965 REMOVE DEPENDENCIS ON LIBSTATOMIC.SO ON SOLARIS Apr 24, 2017

README.md