Bug #96287 | MySQL Server Crashes while loading data from tsv file | ||
---|---|---|---|
Submitted: | 23 Jul 2019 9:50 | Modified: | 24 Jul 2019 12:23 |
Reporter: | Vikrant Yadav | Email Updates: | |
Status: | Duplicate | Impact on me: | |
Category: | MySQL Server | Severity: | S3 (Non-critical) |
Version: | OS: | CentOS (7) | |
Assigned to: | CPU Architecture: | Any |
[23 Jul 2019 9:50]
Vikrant Yadav
[23 Jul 2019 13:58]
MySQL Verification Team
Hi, Thank you for your bug report. However, this is not a bug. You have simply run out of the memory. It does not necessarily mean that you have used more memory than available. It could also mean that memory got fragmented. In any case, you should decrease all your configuration variables related to memory usage, including the local buffers. Not a bug.
[24 Jul 2019 11:24]
Daniël van Eeden
Could be related to Bug #87748
[24 Jul 2019 11:28]
Daniël van Eeden
More readable stacktrace: /usr/sbin/mysqld(my_print_stacktrace+0x3b)[0xef3cab] /usr/sbin/mysqld(handle_fatal_signal+0x461)[0x79ffc1] /lib64/libpthread.so.0(+0xf5d0)[0x7f2ada9b85d0] /lib64/libc.so.6(gsignal+0x37)[0x7f2ad8cce2c7] /lib64/libc.so.6(abort+0x148)[0x7f2ad8ccf9b8] /lib64/libstdc++.so.6(__gnu_cxx::__verbose_terminate_handler()+0x165)[0x7f2ad95dd7d5] /lib64/libstdc++.so.6(+0x5e746)[0x7f2ad95db746] /lib64/libstdc++.so.6(+0x5e773)[0x7f2ad95db773] /lib64/libstdc++.so.6(+0x5e993)[0x7f2ad95db993] /lib64/libstdc++.so.6(operator new(unsigned long)+0x7d)[0x7f2ad95dbf2d] /usr/sbin/mysqld(std::vector<unsigned long long, std::allocator<unsigned long long> >::_M_insert_aux(__gnu_cxx::__normal_iterator<unsigned long long*, std::vector<unsigned long long, std::allocator<unsigned long long> > >, unsigned long long const&)+0xb5)[0xc2c8f5] /usr/sbin/mysqld(Rpl_transaction_write_set_ctx::add_write_set(unsigned long long)+0x126)[0xc2b226] /usr/sbin/mysqld(add_pke(TABLE*, THD*)+0xaf2)[0xc2e1f2] /usr/sbin/mysqld(binlog_log_row(TABLE*, unsigned char const*, unsigned char const*, bool (*)(THD*, TABLE*, bool, unsigned char const*, unsigned char const*))+0x313)[0x7f9283] /usr/sbin/mysqld(handler::ha_write_row(unsigned char*)+0xbc)[0x7f9abc] /usr/sbin/mysqld(write_record(THD*, TABLE*, COPY_INFO*, COPY_INFO*)+0xb9)[0xe39c29] /usr/sbin/mysqld(mysql_load(THD*, sql_exchange*, TABLE_LIST*, List<Item>&, List<Item>&, List<Item>&, enum_duplicates, bool)+0x1f85)[0xe45f95] /usr/sbin/mysqld(mysql_execute_command(THD*, bool)+0x2de7)[0xcbbc97] /usr/sbin/mysqld(mysql_parse(THD*, Parser_state*)+0x3dd)[0xcbf78d] /usr/sbin/mysqld(dispatch_command(THD*, COM_DATA const*, enum_server_command)+0xaba)[0xcc032a] /usr/sbin/mysqld(do_command(THD*)+0x19f)[0xcc1dbf] /usr/sbin/mysqld(handle_connection+0x290)[0xd84290] /usr/sbin/mysqld(pfs_spawn_thread+0x1b4)[0x126b5c4] /lib64/libpthread.so.0(+0x7dd5)[0x7f2ada9b0dd5] /lib64/libc.so.6(clone+0x6d)[0x7f2ad8d9602d] Looks like this is related to WriteSet
[24 Jul 2019 12:23]
MySQL Verification Team
I agree ....... This bug is a duplicate of the bug: https://bugs.mysql.com/bug.php?id=87748
[24 Jul 2019 12:30]
MySQL Verification Team
This bug is fixed in 8.0.16.
[24 Jun 2021 10:30]
cheng zhao
Hi I check that patch in https://bugs.mysql.com/bug.php?id=87748, and find it only fix PSI_engine_data_lock_iterator::scan() as follow + try { + DBUG_EXECUTE_IF("simulate_bad_alloc_exception_2", + throw std::bad_alloc();); + iterator_done = it->scan(&m_container); + } catch (const std::bad_alloc &) { + my_error(ER_STD_BAD_ALLOC_ERROR, MYF(0), + "while scanning data_lock_waits table", "rnd_next"); + return ER_STD_BAD_ALLOC_ERROR; + } this fix could not provent issue that this bug report descirbes.
[28 Jun 2021 12:05]
MySQL Verification Team
Hi Mr. zhao, Thank you for your contribution .....