Bug #84940 | MySQL Server crash possibly introduced in InnoDB statistics calculation | ||
---|---|---|---|
Submitted: | 10 Feb 2017 7:46 | Modified: | 10 Apr 2017 6:46 |
Reporter: | Oli Sennhauser | Email Updates: | |
Status: | Duplicate | Impact on me: | |
Category: | MySQL Server: InnoDB storage engine | Severity: | S2 (Serious) |
Version: | 5.6.35, 5.7.17 | OS: | Linux (Debian 8, unknown) |
Assigned to: | CPU Architecture: | Any |
[10 Feb 2017 7:46]
Oli Sennhauser
[10 Feb 2017 8:12]
MySQL Verification Team
Oli, Umesh, this would be same as internal: Bug 24585978 - INNODB: ASSERTION TOTAL_RECS > 0 FAILURE IN FILE DICT0STATS.CC
[10 Feb 2017 15:29]
MySQL Verification Team
Hi Oli, It turns out that this bug is a duplicate of the following one: https://bugs.mysql.com/bug.php?id=82842 And this bug is already fixed. Here is the note from that bug: ------------- Fixed as of the upcoming 5.7.18, 8.0.1 release, and here's the changelog entry: An error in code related to table statistics raised an assertion in the dict0stats.cc source file. ------------- Oli, Please, do let us know if you still experience this problem in 5.7.18. Thanks.
[10 Feb 2017 16:06]
Oli Sennhauser
Hi Sinisha Thanks for the information. Bug #82842 is hidden (because of "security" reasons?!?). Would be nice having a back-port to 5.6 as well. Current customer is still running 5.6. Especially when you have introduced it in 5.6 in a recent release. Regards, Oli
[10 Feb 2017 16:49]
MySQL Verification Team
Oli, It should be fixed already in 5.6.36, so please, test it when it is out !!!!!
[14 Mar 2017 10:34]
MySQL Verification Team
Bug #85438 marked as duplicate of this
[7 Apr 2017 8:30]
Jai Gupta
mysql --version mysql Ver 14.14 Distrib 5.6.35-80.0, for Linux (x86_64) using 6.0 terminate called after throwing an instance of 'std::out_of_range' what(): vector::_M_range_check 08:05:38 UTC - mysqld got signal 6 ; This could be because you hit a bug. It is also possible that this binary or one of the libraries it was linked against is corrupt, improperly built, or misconfigured. This error can also be caused by malfunctioning hardware. We will try our best to scrape up some info that will hopefully help diagnose the problem, but since we have already crashed, something is definitely wrong and this may fail. Please help us make Percona XtraDB Cluster better by reporting any bugs at https://bugs.launchpad.net/percona-xtradb-cluster key_buffer_size=25165824 read_buffer_size=131072 max_used_connections=201 max_threads=202 thread_count=53 connection_count=4 It is possible that mysqld could use up to key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 156765 K bytes of memory Hope that's ok; if not, decrease some variables in the equation. Thread pointer: 0x0 Attempting backtrace. You can use the following information to find out where mysqld died. If you see no messages after this, something went terribly wrong... stack_bottom = 0 thread_stack 0x40000 /usr/sbin/mysqld(my_print_stacktrace+0x35)[0x90ebc5] /usr/sbin/mysqld(handle_fatal_signal+0x4b4)[0x66d3d4] /lib64/libpthread.so.0(+0xf7e0)[0x7f0517fa57e0] /lib64/libc.so.6(gsignal+0x35)[0x7f05161de5e5] /lib64/libc.so.6(abort+0x175)[0x7f05161dfdc5] /usr/lib64/libstdc++.so.6(_ZN9__gnu_cxx27__verbose_terminate_handlerEv+0x12d)[0x7f0516a98a7d] /usr/lib64/libstdc++.so.6(+0xbcbd6)[0x7f0516a96bd6] /usr/lib64/libstdc++.so.6(+0xbcc03)[0x7f0516a96c03] /usr/lib64/libstdc++.so.6(+0xbcd22)[0x7f0516a96d22] /usr/lib64/libstdc++.so.6(_ZSt20__throw_out_of_rangePKc+0x67)[0x7f0516a3bdb7] /usr/sbin/mysqld[0xb22e6c] /usr/sbin/mysqld[0xb25191] /usr/sbin/mysqld[0xb2787a] /lib64/libpthread.so.0(+0x7aa1)[0x7f0517f9daa1] /lib64/libc.so.6(clone+0x6d)[0x7f0516294aad] You may download the Percona XtraDB Cluster operations manual by visiting http://www.percona.com/software/percona-xtradb-cluster/. You may find information in the manual which will help you identify the cause of the crash.
[7 Apr 2017 14:47]
MySQL Verification Team
Hi Oli! This bug is fixed in 5.7 and higher versions. It will never be fixed in 5.6, as the patch would be too large for 5.6. Do us a favor and try latest 5.7.
[7 Apr 2017 14:50]
MySQL Verification Team
Oli, It is actually fixed in 5.6.36. You used 5.6.35. Also, we do not maintain Percona XtraDB Cluster, so we do not know when will they port the fix.
[10 Apr 2017 6:46]
Oli Sennhauser
Hello Sinisa Thank you for the notification. I will inform the customer. Best Regards, Oli
[10 Apr 2017 14:50]
MySQL Verification Team
Oli, It was my pleasure !!!!
[24 Apr 2017 6:53]
Libor Laichmann
Could you confirm me that this bug has been resolved in the 5.7.18 version? Thx
[24 Apr 2017 13:34]
MySQL Verification Team
Yes, this bug is fixed in 5.7.18 release. You do not have to ask me the questions. Our ChangeLog, named "MySQL Release Notes" is freely available for download or browsing on our dev.mysql.com site.
[15 May 2017 20:54]
Edward Hibbert
I'm seeing this on production system running a Percona Cluster, where the fix has not yet been ported. Does anyone know if there are any workarounds for this, e.g. by setting configuration variable relating to the statistics function?
[16 May 2017 5:29]
MySQL Verification Team
workaround is to disable innodb persistent stats. [mysqld] innodb-stats-persistent = 0 innodb-stats-transient-sample-pages = 20 innodb-stats-auto-recalc = 0
[16 May 2017 6:55]
Edward Hibbert
Thanks Shane - will try that and see if it helps stability. What's the downside of that - maybe less efficient queries?
[19 May 2017 9:58]
Edward Hibbert
Turning the stats off does appear to work around this crash.
[28 Aug 2017 7:42]
MySQL Verification Team
Bug #87557 marked as duplicate of this one.
[29 Nov 2017 9:55]
Sveta Smirnova
I see there is not ChangeLog entry for version 5.6.36 which may indicate this bug is fixed.
[29 Nov 2017 10:18]
MySQL Verification Team
Hi Sveta, Thank you for the feedback. I see from internal bug updates that Bug #24585978(Bug #82842) is fixed in 5.6.36, 5.7.18 and 8.0.1-dmr and same is reflected in the 5.7.18/8.0.1-dmr change log but seems to be missing in 5.6.36 change log. InnoDB: An error in code related to table statistics raised an assertion in the dict0stats.cc source file. (Bug #24585978) https://dev.mysql.com/doc/relnotes/mysql/5.7/en/news-5-7-18.html https://dev.mysql.com/doc/relnotes/mysql/8.0/en/news-8-0-1.html I'll pass on this to concern person on this. Thanks, Umesh
[29 Nov 2017 12:47]
MySQL Verification Team
Daniel added the changelog entry to the 5.6.36 Release Notes. It should appear online soon. Thanks, Umesh
[31 May 2021 11:27]
oradba dba
Do you know on which version it gets resolved?
[31 May 2021 12:45]
MySQL Verification Team
The answer to the last question is contained in the comment before it. It is resolved in 5.6.36, which yet has to be published. Timing is still unknown .......
[31 May 2021 12:46]
MySQL Verification Team
It is also fixed in the last 5.7 release and in any 8.0 release.