Details
Description
The attached issue_28287_bad.sql script kills MariaDb 10.2.17. The mysql-error.log contains
2019-08-16 23:14:02 139832664938240 [ERROR] Found wrong key definition in summary_temporary; Please do "ALTER TABLE 'summary_temporary' FORCE " to fix it!
|
2019-08-16 23:14:02 139832664938240 [ERROR] Found wrong key definition in summary_temporary; Please do "ALTER TABLE 'summary_temporary' FORCE " to fix it!
|
190816 23:14:02 [ERROR] mysqld got signal 11 ;
|
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.
|
|
To report this bug, see https://mariadb.com/kb/en/reporting-bugs
|
|
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.
|
|
Server version: 10.2.17-MariaDB-10.2.17+maria~precise-log
|
key_buffer_size=104857600
|
read_buffer_size=131072
|
max_used_connections=5
|
max_threads=202
|
thread_count=9
|
It is possible that mysqld could use up to
|
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 546245 K bytes of memory
|
Hope that's ok; if not, decrease some variables in the equation.
|
|
Thread pointer: 0x7f2ca80009a8
|
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 = 0x7f2d54524e50 thread_stack 0x49000
|
*** buffer overflow detected ***: /usr/sbin/mysqld terminated
|
======= Backtrace: =========
|
/lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x37)[0x7f2d52511817]
|
/lib/x86_64-linux-gnu/libc.so.6(+0x109710)[0x7f2d52510710]
|
/lib/x86_64-linux-gnu/libc.so.6(+0x10a7ce)[0x7f2d525117ce]
|
/usr/sbin/mysqld(my_addr_resolve+0xd8)[0xd7c8b8]
|
/usr/sbin/mysqld(my_print_stacktrace+0x1bd)[0xd66b6d]
|
/usr/sbin/mysqld(handle_fatal_signal+0x4c2)[0x7f3852]
|
/lib/x86_64-linux-gnu/libpthread.so.0(+0xfcb0)[0x7f2d52dd1cb0]
|
/lib/x86_64-linux-gnu/libc.so.6(+0x148059)[0x7f2d5254f059]
|
/usr/sbin/mysqld[0xca3a21]
|
/usr/sbin/mysqld[0xca4ca1]
|
/usr/sbin/mysqld[0xca60fd]
|
/usr/sbin/mysqld[0xcb18d4]
|
/usr/sbin/mysqld(_ZN7handler12ha_write_rowEPh+0x33f)[0x7feb6f]
|
/usr/sbin/mysqld(_Z12write_recordP3THDP5TABLEP12st_copy_info+0x73)[0x60f083]
|
/usr/sbin/mysqld(_ZN13select_insert9send_dataER4ListI4ItemE+0xd2)[0x60fa32]
|
/usr/sbin/mysqld[0x65daa7]
|
/usr/sbin/mysqld[0x66198f]
|
/usr/sbin/mysqld(_Z10sub_selectP4JOINP13st_join_tableb+0x176)[0x669d46]
|
/usr/sbin/mysqld(_ZN4JOIN10exec_innerEv+0x90a)[0x68d36a]
|
/usr/sbin/mysqld(_Z12mysql_selectP3THDP10TABLE_LISTjR4ListI4ItemEPS4_jP8st_orderS9_S7_S9_yP13select_resultP18st_select_lex_unitP13st_select_lex+0x14d)[0x68d84d]
|
/usr/sbin/mysqld(_Z13handle_selectP3THDP3LEXP13select_resultm+0x24c)[0x68e66c]
|
/usr/sbin/mysqld(_Z21mysql_execute_commandP3THD+0x7b44)[0x6320f4]
|
/usr/sbin/mysqld(_Z11mysql_parseP3THDPcjP12Parser_statebb+0x2ae)[0x6333fe]
|
/usr/sbin/mysqld(_Z16dispatch_command19enum_server_commandP3THDPcjbb+0x270a)[0x63652a]
|
/usr/sbin/mysqld(_Z10do_commandP3THD+0x151)[0x636b31]
|
/usr/sbin/mysqld(_Z24do_handle_one_connectionP7CONNECT+0x38b)[0x71ef2b]
|
/usr/sbin/mysqld(handle_one_connection+0x3f)[0x71f00f]
|
/lib/x86_64-linux-gnu/libpthread.so.0(+0x7e9a)[0x7f2d52dc9e9a]
|
/lib/x86_64-linux-gnu/libc.so.6(clone+0x6d)[0x7f2d524faccd]
|
======= Memory map: ========
|
00400000-01371000 r-xp 00000000 fc:01 932705 /usr/sbin/mysqld
|
01571000-0157b000 r--p 00f71000 fc:01 932705 /usr/sbin/mysqld
|
0157b000-01631000 rw-p 00f7b000 fc:01 932705 /usr/sbin/mysqld
|
01631000-01ec6000 rw-p 00000000 00:00 0
|
036ee000-07b00000 rw-p 00000000 00:00 0 [heap]
|
7f2c84000000-7f2c84021000 rw-p 00000000 00:00 0
|
...
|
7f2d546ae000-7f2d546b3000 rw-p 00000000 00:00 0
|
7f2d546b3000-7f2d546b4000 r--p 00022000 fc:01 393415 /lib/x86_64-linux-gnu/ld-2.15.so
|
7f2d546b4000-7f2d546b6000 rw-p 00023000 fc:01 393415 /lib/x86_64-linux-gnu/ld-2.15.so
|
7fffe47d8000-7fffe47f9000 rw-p 00000000 00:00 0 [stack]
|
7fffe47ff000-7fffe4800000 r-xp 00000000 00:00 0 [vdso]
|
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
|
Fatal signal 6 while backtracing
|
The attached issue_28287_ok.sql script is virtually identical but it does not kill MariaDb 10.2.17. Instead the final statement has warnings, the same as in the error log:
MariaDB [test]> show warnings;
|
+---------+------+---------------------------------------------------------------------------------------------------------------+ |
| Level | Code | Message | |
+---------+------+---------------------------------------------------------------------------------------------------------------+ |
| Warning | 1194 | Found wrong key definition in summary_temporary; Please do "ALTER TABLE 'summary_temporary' FORCE" to fix it! | |
| Warning | 1194 | Found wrong key definition in summary_temporary; Please do "ALTER TABLE 'summary_temporary' FORCE" to fix it! | |
+---------+------+---------------------------------------------------------------------------------------------------------------+ |
2 rows in set (0.00 sec) |
Attachments
Issue Links
- duplicates
-
MDEV-17021 Server crash or assertion `length <= column->length' failure in write_block_record
-
- Closed
-
I am not getting the crash, but the warnings are indeed present in 10.2.17, and don't appear starting from 10.2.18 (also 10.0.37 and 1.1.36).
10.2.17 is an year old and 10 releases behind, please try to upgrade to the latest and see if it helps to resolve the problem.