Core was generated by `/test/MS260221-mysql-5.7.29-linux-x86_64-dbg/bin/mysqld --no-defaults --core-fi'.
|
Program terminated with signal SIGABRT, Aborted.
|
#0 __pthread_kill (threadid=<optimized out>, signo=signo@entry=6)
|
at ../sysdeps/unix/sysv/linux/pthread_kill.c:56
|
[Current thread is 1 (Thread 0x14f3d0055700 (LWP 4132105))]
|
(gdb) bt
|
#0 __pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at ../sysdeps/unix/sysv/linux/pthread_kill.c:56
|
#1 0x000055feaaca10a9 in my_write_core (sig=sig@entry=6) at /test/mysql-5.7.29_dbg/include/my_thread.h:105
|
#2 0x000055feaa38b75f in handle_fatal_signal (sig=6) at /test/mysql-5.7.29_dbg/sql/signal_handler.cc:227
|
#3 <signal handler called>
|
#4 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
|
#5 0x000014f3db8d9859 in __GI_abort () at abort.c:79
|
#6 0x000055feaaf673f8 in ut_dbg_assertion_failed (expr=expr@entry=0x0, file=file@entry=0x55feab5d30a8 "/test/mysql-5.7.29_dbg/storage/innobase/ut/ut0ut.cc", line=line@entry=918) at /test/mysql-5.7.29_dbg/storage/innobase/ut/ut0dbg.cc:75
|
#7 0x000055feaaf6a29d in ib::fatal::~fatal (this=0x14f3d0050d30, __in_chrg=<optimized out>) at /test/mysql-5.7.29_dbg/storage/innobase/ut/ut0ut.cc:918
|
#8 0x000055feab01e921 in dfield_check_typed (field=0x14f3c44580a8) at /test/mysql-5.7.29_dbg/storage/innobase/include/data0data.ic:102
|
#9 0x000055feab01e98b in dtuple_check_typed (tuple=tuple@entry=0x14f3889338d8) at /test/mysql-5.7.29_dbg/storage/innobase/data/data0data.cc:207
|
#10 0x000055feab0f6fdb in rec_get_converted_size (index=0x14f38800c9a0, dtuple=dtuple@entry=0x14f3889338d8, n_ext=n_ext@entry=0) at /test/mysql-5.7.29_dbg/storage/innobase/include/rem0rec.ic:1640
|
#11 0x000055feab0f97e8 in rtr_page_split_initialize_nodes (heap=<optimized out>, cursor=cursor@entry=0x14f3d0051450, offsets=offsets@entry=0x14f3d00513b8, tuple=tuple@entry=0x14f3889338d8, buf_pos=buf_pos@entry=0x14f3d0051080) at /test/mysql-5.7.29_dbg/storage/innobase/gis/gis0rtree.cc:121
|
#12 0x000055feab102fd9 in rtr_page_split_and_insert (flags=flags@entry=7, cursor=cursor@entry=0x14f3d0051450, offsets=offsets@entry=0x14f3d00513b8, heap=heap@entry=0x14f3d00513c0, tuple=tuple@entry=0x14f3889338d8, n_ext=n_ext@entry=0, mtr=<optimized out>) at /test/mysql-5.7.29_dbg/storage/innobase/gis/gis0rtree.cc:1070
|
#13 0x000055feaaf8b56d in btr_root_raise_and_insert (flags=flags@entry=7, cursor=cursor@entry=0x14f3d0051450, offsets=offsets@entry=0x14f3d00513b8, heap=heap@entry=0x14f3d00513c0, tuple=tuple@entry=0x14f3889338d8, n_ext=0, mtr=0x14f3d0051d50) at /test/mysql-5.7.29_dbg/storage/innobase/btr/btr0btr.cc:1776
|
#14 0x000055feaaf97a77 in btr_cur_pessimistic_insert (flags=flags@entry=7, cursor=cursor@entry=0x14f3d0051450, offsets=offsets@entry=0x14f3d00513b8, heap=heap@entry=0x14f3d00513c0, entry=entry@entry=0x14f3889338d8, rec=rec@entry=0x14f3d00513d0, big_rec=0x14f3d00513c8, n_ext=<optimized out>, thr=0x0, mtr=0x14f3d0051d50) at /test/mysql-5.7.29_dbg/storage/innobase/btr/btr0cur.cc:3454
|
#15 0x000055feab101541 in rtr_adjust_upper_level (sea_cur=sea_cur@entry=0x14f3d0051990, flags=flags@entry=0, block=block@entry=0x14f3c39e5758, new_block=new_block@entry=0x14f3c39e6a48, mbr=mbr@entry=0x14f3d0051640, new_mbr=new_mbr@entry=0x14f3d0051660, direction=<optimized out>, mtr=<optimized out>) at /test/mysql-5.7.29_dbg/storage/innobase/gis/gis0rtree.cc:738
|
#16 0x000055feab1049a4 in rtr_page_split_and_insert (flags=flags@entry=0, cursor=cursor@entry=0x14f3d0051990, offsets=offsets@entry=0x14f3d0051930, heap=heap@entry=0x14f3d0051928, tuple=tuple@entry=0x14f38800c2f8, n_ext=n_ext@entry=0, mtr=<optimized out>) at /test/mysql-5.7.29_dbg/storage/innobase/gis/gis0rtree.cc:1283
|
#17 0x000055feaaf89adb in btr_page_split_and_insert (flags=flags@entry=0, cursor=cursor@entry=0x14f3d0051990, offsets=offsets@entry=0x14f3d0051930, heap=heap@entry=0x14f3d0051928, tuple=tuple@entry=0x14f38800c2f8, n_ext=0, mtr=0x14f3d0051d50) at /test/mysql-5.7.29_dbg/storage/innobase/btr/btr0btr.cc:2554
|
#18 0x000055feaaf9799c in btr_cur_pessimistic_insert (flags=flags@entry=0, cursor=cursor@entry=0x14f3d0051990, offsets=offsets@entry=0x14f3d0051930, heap=heap@entry=0x14f3d0051928, entry=entry@entry=0x14f38800c2f8, rec=rec@entry=0x14f3d0051938, big_rec=0x14f3d0051960, n_ext=<optimized out>, thr=0x14f388021e00, mtr=0x14f3d0051d50) at /test/mysql-5.7.29_dbg/storage/innobase/btr/btr0cur.cc:3457
|
#19 0x000055feaae39c2d in row_ins_sec_index_entry_low (flags=flags@entry=0, mode=mode@entry=33, index=index@entry=0x14f38800c9a0, offsets_heap=<optimized out>, offsets_heap@entry=0x14f388934538, heap=heap@entry=0x14f388022548, entry=entry@entry=0x14f38800c2f8, trx_id=0, thr=0x14f388021e00, dup_chk_only=false) at /test/mysql-5.7.29_dbg/storage/innobase/row/row0ins.cc:3155
|
#20 0x000055feaae3aad5 in row_ins_sec_index_entry (index=index@entry=0x14f38800c9a0, entry=entry@entry=0x14f38800c2f8, thr=thr@entry=0x14f388021e00, dup_chk_only=dup_chk_only@entry=false) at /test/mysql-5.7.29_dbg/storage/innobase/row/row0ins.cc:3405
|
#21 0x000055feaae3acec in row_ins_index_entry (index=0x14f38800c9a0, entry=0x14f38800c2f8, thr=thr@entry=0x14f388021e00) at /test/mysql-5.7.29_dbg/storage/innobase/row/row0ins.cc:3439
|
#22 0x000055feaae3adbb in row_ins_index_entry_step (node=node@entry=0x14f388021b88, thr=thr@entry=0x14f388021e00) at /test/mysql-5.7.29_dbg/storage/innobase/row/row0ins.cc:3587
|
#23 0x000055feaae3aeaf in row_ins (node=node@entry=0x14f388021b88, thr=thr@entry=0x14f388021e00) at /test/mysql-5.7.29_dbg/storage/innobase/row/row0ins.cc:3725
|
#24 0x000055feaae3b92b in row_ins_step (thr=thr@entry=0x14f388021e00) at /test/mysql-5.7.29_dbg/storage/innobase/row/row0ins.cc:3861
|
#25 0x000055feaae57366 in row_insert_for_mysql_using_ins_graph (mysql_rec=<optimized out>, prebuilt=<optimized out>) at /test/mysql-5.7.29_dbg/storage/innobase/row/row0mysql.cc:1746
|
#26 0x000055feaae5bd12 in row_insert_for_mysql (mysql_rec=mysql_rec@entry=0x14f388019e30 "\005", prebuilt=<optimized out>) at /test/mysql-5.7.29_dbg/storage/innobase/row/row0mysql.cc:1866
|
#27 0x000055feaacf3652 in ha_innobase::write_row (this=0x14f388019b40, record=0x14f388019e30 "\005") at /test/mysql-5.7.29_dbg/storage/innobase/handler/ha_innodb.cc:7612
|
#28 0x000055feaa3ffb09 in handler::ha_write_row (this=0x14f388019b40, buf=0x14f388019e30 "\005") at /test/mysql-5.7.29_dbg/sql/handler.cc:8093
|
#29 0x000055feaab8d53d in write_record (thd=thd@entry=0x14f388000e10, table=table@entry=0x14f388020ba0, info=info@entry=0x14f3d00532a0, update=update@entry=0x14f3d0053320) at /test/mysql-5.7.29_dbg/sql/sql_insert.cc:1895
|
#30 0x000055feaab8ea5f in Sql_cmd_insert::mysql_insert (this=this@entry=0x14f3880069b0, thd=thd@entry=0x14f388000e10, table_list=table_list@entry=0x14f388006300) at /test/mysql-5.7.29_dbg/sql/sql_insert.cc:776
|
#31 0x000055feaab8f02a in Sql_cmd_insert::execute (this=0x14f3880069b0, thd=0x14f388000e10) at /test/mysql-5.7.29_dbg/sql/sql_insert.cc:3140
|
#32 0x000055feaa9a78f0 in mysql_execute_command (thd=thd@entry=0x14f388000e10, first_level=first_level@entry=true) at /test/mysql-5.7.29_dbg/sql/sql_parse.cc:3606
|
#33 0x000055feaa9accff in mysql_parse (thd=thd@entry=0x14f388000e10, parser_state=parser_state@entry=0x14f3d0054530) at /test/mysql-5.7.29_dbg/sql/sql_parse.cc:5584
|
#34 0x000055feaa9aee3e in dispatch_command (thd=thd@entry=0x14f388000e10, com_data=com_data@entry=0x14f3d0054df0, command=COM_QUERY) at /test/mysql-5.7.29_dbg/sql/sql_parse.cc:1491
|
#35 0x000055feaa9b0f5f in do_command (thd=thd@entry=0x14f388000e10) at /test/mysql-5.7.29_dbg/sql/sql_parse.cc:1032
|
#36 0x000055feaaaaa0ac in handle_connection (arg=arg@entry=0x55feadc79760) at /test/mysql-5.7.29_dbg/sql/conn_handler/connection_handler_per_thread.cc:313
|
#37 0x000055feab1a42ef in pfs_spawn_thread (arg=0x55feada247b0) at /test/mysql-5.7.29_dbg/storage/perfschema/pfs.cc:2197
|
#38 0x000014f3dbdfc609 in start_thread (arg=<optimized out>) at pthread_create.c:477
|
#39 0x000014f3db9d6293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
|
I've tested MySQL 5.7.29 (debug build) and for me this test case from Marko:
openxs@ao756:~/dbs/5.7d/mysql-test$ cat t/marko.test
--source include/have_innodb.inc
--source include/have_debug.inc
SET @save_limit = @@innodb_limit_optimistic_insert_debug;
create table t1(a serial, b geometry not null, spatial index(b)) engine=innodb;
SET GLOBAL innodb_limit_optimistic_insert_debug = 2;
begin;
insert into t1 (b) values (Point(1,1)),(Point(1,1)),(Point(1,1)),(Point(1,1)),(Point(1,1));
rollback;
check table t1;
drop table t1;
SET GLOBAL innodb_limit_optimistic_insert_debug = @save_limit;
openxs@ao756:~/dbs/5.7d/mysql-test$
Leads to assertion failure:
...
2020-01-17T15:39:30.273537Z 0 [Note] /home/openxs/dbs/5.7d/bin/mysqld: ready for connections.
Version: '5.7.29-debug-log' socket: '/home/openxs/dbs/5.7d/mysql-test/var/tmp/mysqld.1.sock' port: 13000 MySQL Community Server (GPL)
2020-01-17T15:39:31.551226Z 3 [ERROR] [FATAL] InnoDB: Data field type 0, len 1072693248
2020-01-17 18:39:31 0x7fab00751700 InnoDB: Assertion failure in thread 140372423808768 in file ut0ut.cc line 918
InnoDB: We intentionally generate a memory trap.
InnoDB: Submit a detailed bug report to http://bugs.mysql.com.
InnoDB: If you get repeated assertion failures or crashes, even
InnoDB: immediately after the mysqld startup, there may be
InnoDB: corruption in the InnoDB tablespace. Please refer to
InnoDB: http://dev.mysql.com/doc/refman/5.7/en/forcing-innodb-recovery.html
InnoDB: about forcing recovery.
15:39:31 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.
Attempting to collect some information that could help diagnose the problem.
As this is a crash and something is definitely wrong, the information
collection process might fail.
key_buffer_size=1048576
read_buffer_size=131072
max_used_connections=1
max_threads=151
thread_count=1
connection_count=1
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 61093 K bytes of memory
Hope that's ok; if not, decrease some variables in the equation.
Thread pointer: 0x7faab81201a0
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 = 7fab00750e38 thread_stack 0x40000
/home/openxs/dbs/5.7d/bin/mysqld(my_print_stacktrace+0x47)[0x19871c2]
/home/openxs/dbs/5.7d/bin/mysqld(handle_fatal_signal+0x425)[0xf16956]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x11390)[0x7fab079e8390]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0x38)[0x7fab06da1428]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x16a)[0x7fab06da302a]
/home/openxs/dbs/5.7d/bin/mysqld[0x1c88217]
/home/openxs/dbs/5.7d/bin/mysqld(_ZN2ib5fatalD1Ev+0x71)[0x1c8d0d9]
/home/openxs/dbs/5.7d/bin/mysqld(_Z18dfield_check_typedPK8dfield_t+0x11a)[0x1d20e71]
/home/openxs/dbs/5.7d/bin/mysqld(_Z18dtuple_check_typedPK8dtuple_t+0x4e)[0x1d20f01]
/home/openxs/dbs/5.7d/bin/mysqld[0x1de0554]
/home/openxs/dbs/5.7d/bin/mysqld[0x1de2e19]
/home/openxs/dbs/5.7d/bin/mysqld(_Z25rtr_page_split_and_insertmP9btr_cur_tPPmPP16mem_block_info_tPK8dtuple_tmP5mtr_t+0x3d8)[0x1de5712]
/home/openxs/dbs/5.7d/bin/mysqld(_Z25btr_root_raise_and_insertmP9btr_cur_tPPmPP16mem_block_info_tPK8dtuple_tmP5mtr_t+0x8dd)[0x1ca1a83]
/home/openxs/dbs/5.7d/bin/mysqld(_Z26btr_cur_pessimistic_insertmP9btr_cur_tPPmPP16mem_block_info_tP8dtuple_tPPhPP9big_rec_tmP9que_thr_tP5mtr_t+0x45b)[0x1cbd4df]
/home/openxs/dbs/5.7d/bin/mysqld[0x1de4708]
/home/openxs/dbs/5.7d/bin/mysqld(_Z25rtr_page_split_and_insertmP9btr_cur_tPPmPP16mem_block_info_tPK8dtuple_tmP5mtr_t+0xe28)[0x1de6162]
/home/openxs/dbs/5.7d/bin/mysqld(_Z25btr_page_split_and_insertmP9btr_cur_tPPmPP16mem_block_info_tPK8dtuple_tmP5mtr_t+0xc9)[0x1ca399b]
/home/openxs/dbs/5.7d/bin/mysqld(_Z26btr_cur_pessimistic_insertmP9btr_cur_tPPmPP16mem_block_info_tP8dtuple_tPPhPP9big_rec_tmP9que_thr_tP5mtr_t+0x4a1)[0x1cbd525]
/home/openxs/dbs/5.7d/bin/mysqld(_Z27row_ins_sec_index_entry_lowmmP12dict_index_tP16mem_block_info_tS2_P8dtuple_tmP9que_thr_tb+0xee2)[0x1b7a05c]
/home/openxs/dbs/5.7d/bin/mysqld(_Z23row_ins_sec_index_entryP12dict_index_tP8dtuple_tP9que_thr_tb+0x26e)[0x1b7ab62]
/home/openxs/dbs/5.7d/bin/mysqld[0x1b7ac5a]
/home/openxs/dbs/5.7d/bin/mysqld[0x1b7b1d0]
/home/openxs/dbs/5.7d/bin/mysqld[0x1b7b565]
/home/openxs/dbs/5.7d/bin/mysqld(_Z12row_ins_stepP9que_thr_t+0x2cb)[0x1b7b9d9]
/home/openxs/dbs/5.7d/bin/mysqld[0x1b9b44b]
/home/openxs/dbs/5.7d/bin/mysqld(_Z20row_insert_for_mysqlPKhP14row_prebuilt_t+0x4c)[0x1b9ba37]
/home/openxs/dbs/5.7d/bin/mysqld(_ZN11ha_innobase9write_rowEPh+0x740)[0x1a30ab8]
/home/openxs/dbs/5.7d/bin/mysqld(_ZN7handler12ha_write_rowEPh+0x224)[0xfa8fce]
/home/openxs/dbs/5.7d/bin/mysqld(_Z12write_recordP3THDP5TABLEP9COPY_INFOS4_+0xfee)[0x185cd2e]
/home/openxs/dbs/5.7d/bin/mysqld(_ZN14Sql_cmd_insert12mysql_insertEP3THDP10TABLE_LIST+0xf21)[0x1859b57]
/home/openxs/dbs/5.7d/bin/mysqld(_ZN14Sql_cmd_insert7executeEP3THD+0x19f)[0x1860c6b]
/home/openxs/dbs/5.7d/bin/mysqld(_Z21mysql_execute_commandP3THDb+0x2d7a)[0x1617db1]
/home/openxs/dbs/5.7d/bin/mysqld(_Z11mysql_parseP3THDP12Parser_state+0x5d5)[0x161dbfd]
/home/openxs/dbs/5.7d/bin/mysqld(_Z16dispatch_commandP3THDPK8COM_DATA19enum_server_command+0xc39)[0x1612b07]
/home/openxs/dbs/5.7d/bin/mysqld(_Z10do_commandP3THD+0x51a)[0x1611996]
/home/openxs/dbs/5.7d/bin/mysqld(handle_connection+0x1ee)[0x17561a1]
/home/openxs/dbs/5.7d/bin/mysqld(pfs_spawn_thread+0x173)[0x1e515e2]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x76ba)[0x7fab079de6ba]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x6d)[0x7fab06e7341d]
Trying to get some variables.
Some pointers may be invalid and cause the dump to abort.
Query (7faab8012710): insert into t1 (b) values (Point(1,1)),(Point(1,1)),(Point(1,1)),(Point(1,1)),(Point(1,1))
Connection ID (thread ID): 3
Status: NOT_KILLED
The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains
information that should help you find out what is causing the crash.
Writing a core file
safe_process[7006]: Child process: 7007, killed by signal: 6