Bug #84221 | SIGSEGV in mysql_upgrade | ||
---|---|---|---|
Submitted: | 16 Dec 2016 0:45 | Modified: | 16 Dec 2016 13:00 |
Reporter: | Anatoli · | Email Updates: | |
Status: | Can't repeat | Impact on me: | |
Category: | MySQL Server: Command-line Clients | Severity: | S1 (Critical) |
Version: | 5.7.17 | OS: | Ubuntu (Ubuntu 14.04.5 LTS) |
Assigned to: | CPU Architecture: | Any | |
Tags: | mysql_upgrade |
[16 Dec 2016 0:45]
Anatoli ·
[16 Dec 2016 13:00]
MySQL Verification Team
I couldn't repeat on Fedora 23: [miguel@fedora23 mysql-5.7.17]$ cmake . -LH -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_unicode_ci -DENABLE_DOWNLOADS=OFF -DWITH_BOOST=../boost/boost_1_59_0/ -DWITH_DEBUG=1 -- Running cmake version 3.4.3 -- Found Git: /usr/bin/git (found version "2.5.0") -- Configuring with MAX_INDEXES = 64U -- Looking for SHM_HUGETLB -- Looking for SHM_HUGETLB - found -- Looking for sys/types.h <cut> -- Configuring done -- Generating done -- Build files have been written to: /home/miguel/mysql-5.7.17 -- Cache values [miguel@fedora23 mysql-5.7.17]$ make Scanning dependencies of target INFO_BIN [ 0%] Built target INFO_BIN Scanning dependencies of target INFO_SRC [ 0%] Built target INFO_SRC Scanning dependencies of target abi_check [ 0%] Built target abi_check Scanning dependencies of target zlib [ 0%] Building C object zlib/CMakeFiles/zlib.dir/adler32.c.o [ 0%] Building C object zlib/CMakeFiles/zlib.dir/compress.c.o <CUT> [100%] Built target mysqltest_embedded [100%] Building CXX object mysql-test/lib/My/SafeProcess/CMakeFiles/my_safe_process.dir/safe_process.cc.o [100%] Linking CXX executable my_safe_process [100%] Built target my_safe_process [miguel@fedora23 mysql-5.7.17]$ ./client/mysql_upgrade Checking if update is needed. Checking server version. Running queries to upgrade MySQL server. Checking system database. mysql.columns_priv OK mysql.db OK mysql.engine_cost OK mysql.event OK mysql.func OK mysql.general_log OK mysql.gtid_executed OK mysql.help_category OK mysql.help_keyword OK mysql.help_relation OK mysql.help_topic OK mysql.innodb_index_stats OK mysql.innodb_table_stats OK mysql.ndb_binlog_index OK mysql.plugin OK mysql.proc OK mysql.procs_priv OK mysql.proxies_priv OK mysql.server_cost OK mysql.servers OK mysql.slave_master_info OK mysql.slave_relay_log_info OK mysql.slave_worker_info OK mysql.slow_log OK mysql.tables_priv OK mysql.time_zone OK mysql.time_zone_leap_second OK mysql.time_zone_name OK mysql.time_zone_transition OK mysql.time_zone_transition_type OK mysql.user OK The sys schema is already up to date (version 1.5.1). Checking databases. sys.sys_config OK Upgrade process completed successfully. Checking if update is needed. [miguel@fedora23 5.7]$ bin/mysql_upgrade mysql_upgrade: Got error: 1045: Access denied for user 'miguel'@'localhost' (using password: NO) while connecting to the MySQL server Upgrade process encountered error and will not continue. [miguel@fedora23 5.7]$ bin/mysql_upgrade -uroot Checking if update is needed. This installation of MySQL is already upgraded to 5.7.17, use --force if you still need to run mysql_upgrade [miguel@fedora23 5.7]$ bin/mysql_upgrade -uroot --force Checking server version. Running queries to upgrade MySQL server. Checking system database. mysql.columns_priv OK mysql.db OK mysql.engine_cost OK mysql.event OK mysql.func OK mysql.general_log OK mysql.gtid_executed OK mysql.help_category OK mysql.help_keyword OK mysql.help_relation OK mysql.help_topic OK mysql.innodb_index_stats OK mysql.innodb_table_stats OK mysql.ndb_binlog_index OK mysql.plugin OK mysql.proc OK mysql.procs_priv OK mysql.proxies_priv OK mysql.server_cost OK mysql.servers OK mysql.slave_master_info OK mysql.slave_relay_log_info OK mysql.slave_worker_info OK mysql.slow_log OK mysql.tables_priv OK mysql.time_zone OK mysql.time_zone_leap_second OK mysql.time_zone_name OK mysql.time_zone_transition OK mysql.time_zone_transition_type OK mysql.user OK The sys schema is already up to date (version 1.5.1). Checking databases. sys.sys_config OK Upgrade process completed successfully.
[21 Jul 2017 12:15]
Mr Jay
I can confirm that mysql_upgrade segfaults in multiple 5.7-versions. Last version tested is 5.7.19 (ndbcluster 7.5.7) Standard 64bit linux.