Bug #92868 | Assertion "Geometry::is_valid_geotype(gt)" | ||
---|---|---|---|
Submitted: | 19 Oct 2018 19:25 | Modified: | 19 Oct 2018 23:52 |
Reporter: | Hrvoje Matijakovic | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: GIS | Severity: | S6 (Debug Builds) |
Version: | 5.7.23, 5.7.24 | OS: | CentOS |
Assigned to: | CPU Architecture: | x86 | |
Tags: | debug |
[19 Oct 2018 19:25]
Hrvoje Matijakovic
[19 Oct 2018 23:52]
MySQL Verification Team
Thank you for the bug report. Only 5.7 version affected. Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 2 Server version: 5.7.25-debug Source distribution BUILD: 2018-OCT-04 Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql 5.7 > drop database test; Query OK, 1 row affected (0,13 sec) mysql 5.7 > CREATE DATABASE test; Query OK, 1 row affected (0,00 sec) mysql 5.7 > USE test; set @@sql_mode=cast(pow(2,32)-1 as unsigned INT); create table t1(a INT)partition by key (a); INSERT INTO t1 VALUES(6243); Database changed mysql 5.7 > set @@sql_mode=cast(pow(2,32)-1 as unsigned INT); alter TABLE t1 change a a char(15); SELECT(SELECT MULTILINESTRING(d.a,d.a,d.a)FROM t1) FROM t1 AS d GROUP BY d.a;Query OK, 0 rows affected, 1 warning (0,03 sec) mysql 5.7 > create table t1(a INT)partition by key (a); Query OK, 0 rows affected (1,54 sec) mysql 5.7 > INSERT INTO t1 VALUES(6243); Query OK, 1 row affected (0,14 sec) mysql 5.7 > alter TABLE t1 change a a char(15); Query OK, 1 row affected (2,50 sec) Records: 1 Duplicates: 0 Warnings: 0 mysql 5.7 > SELECT(SELECT MULTILINESTRING(d.a,d.a,d.a)FROM t1) FROM t1 AS d GROUP BY d.a; ERROR 2013 (HY000): Lost connection to MySQL server during query mysql 5.7 > 2018-10-19T23:41:37.423863Z 0 [Note] /home/miguel/dbsd/5.7/bin/mysqld: ready for connections. Version: '5.7.25-debug' socket: '/tmp/mysql57.sock' port: 3357 Source distribution BUILD: 2018-OCT-04 mysqld: /home/miguel/buildd/2018OCT04/mysql-5.7/sql/spatial.h:1194: Geometry::wkbType get_wkb_geotype(const void*): Assertion `Geometry::is_valid_geotype(gt)' failed. 23:42: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=8388608 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 = 68260 K bytes of memory Hope that's ok; if not, decrease some variables in the equation. Thread pointer: 0x7fe350000dd0 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 = 7fe390446e18 thread_stack 0x40000 /home/miguel/dbsd/5.7/bin/mysqld(my_print_stacktrace+0x47)[0x5649e1727cdb] /home/miguel/dbsd/5.7/bin/mysqld(handle_fatal_signal+0x3f3)[0x5649e0cdaadc] /usr/lib/libpthread.so.0(+0x123c0)[0x7fe3b10d13c0] /usr/lib/libc.so.6(gsignal+0x10f)[0x7fe3b09add7f] /usr/lib/libc.so.6(abort+0x125)[0x7fe3b0998672] /usr/lib/libc.so.6(+0x22548)[0x7fe3b0998548] /usr/lib/libc.so.6(+0x30396)[0x7fe3b09a6396] /home/miguel/dbsd/5.7/bin/mysqld(_Z15get_wkb_geotypePKv+0x50)[0x5649e0e1ee35] /home/miguel/dbsd/5.7/bin/mysqld(_ZN28Item_func_spatial_collection7val_strEP6String+0x2c5)[0x5649e0e186a9] /home/miguel/dbsd/5.7/bin/mysqld(_ZN4Item10str_resultEP6String+0x30)[0x5649e0d41528] /home/miguel/dbsd/5.7/bin/mysqld(_ZN14Item_cache_str11cache_valueEv+0x98)[0x5649e0d903a2] /home/miguel/dbsd/5.7/bin/mysqld(_ZN24Item_singlerow_subselect5storeEjP4Item+0x9c)[0x5649e1257bb4] /home/miguel/dbsd/5.7/bin/mysqld(_ZN28Query_result_scalar_subquery9send_dataER4ListI4ItemE+0x132)[0x5649e12569f0] /home/miguel/dbsd/5.7/bin/mysqld(+0x1484957)[0x5649e137f957] /home/miguel/dbsd/5.7/bin/mysqld(+0x1481488)[0x5649e137c488] /home/miguel/dbsd/5.7/bin/mysqld(_Z10sub_selectP4JOINP7QEP_TABb+0x36d)[0x5649e137b82f] /home/miguel/dbsd/5.7/bin/mysqld(+0x1480028)[0x5649e137b028] /home/miguel/dbsd/5.7/bin/mysqld(_ZN4JOIN4execEv+0x66b)[0x5649e1378e09] /home/miguel/dbsd/5.7/bin/mysqld(_ZN30subselect_single_select_engine4execEv+0x49c)[0x5649e125e466] /home/miguel/dbsd/5.7/bin/mysqld(_ZN14Item_subselect4execEv+0x2cb)[0x5649e1256085] /home/miguel/dbsd/5.7/bin/mysqld(_ZN24Item_singlerow_subselect7val_strEP6String+0x3b)[0x5649e125811d] /home/miguel/dbsd/5.7/bin/mysqld(_ZN4Item19save_in_field_innerEP5Fieldb+0x52c)[0x5649e0d85ee6] /home/miguel/dbsd/5.7/bin/mysqld(_ZN4Item13save_in_fieldEP5Fieldb+0x34)[0x5649e0d85970] /home/miguel/dbsd/5.7/bin/mysqld(_ZN17Item_result_field20save_in_result_fieldEb+0x2f)[0x5649e0d96365] /home/miguel/dbsd/5.7/bin/mysqld(_Z10copy_funcsP14Mem_root_arrayIP4ItemLb1EEPK3THD+0x67)[0x5649e137a04c] /home/miguel/dbsd/5.7/bin/mysqld(+0x1485dbf)[0x5649e1380dbf] /home/miguel/dbsd/5.7/bin/mysqld(_ZN13QEP_tmp_table10put_recordEb+0x8b)[0x5649e13848e3] /home/miguel/dbsd/5.7/bin/mysqld(_ZN13QEP_tmp_table10put_recordEv+0x1d)[0x5649e1385601] /home/miguel/dbsd/5.7/bin/mysqld(_Z13sub_select_opP4JOINP7QEP_TABb+0x184)[0x5649e137b495] /home/miguel/dbsd/5.7/bin/mysqld(+0x1481488)[0x5649e137c488] /home/miguel/dbsd/5.7/bin/mysqld(_Z10sub_selectP4JOINP7QEP_TABb+0x36d)[0x5649e137b82f] /home/miguel/dbsd/5.7/bin/mysqld(+0x1480028)[0x5649e137b028] /home/miguel/dbsd/5.7/bin/mysqld(_ZN4JOIN4execEv+0x66b)[0x5649e1378e09] /home/miguel/dbsd/5.7/bin/mysqld(_Z12handle_queryP3THDP3LEXP12Query_resultyy+0x378)[0x5649e14192dd] /home/miguel/dbsd/5.7/bin/mysqld(+0x14cefb4)[0x5649e13c9fb4] /home/miguel/dbsd/5.7/bin/mysqld(_Z21mysql_execute_commandP3THDb+0xde4)[0x5649e13c3194] /home/miguel/dbsd/5.7/bin/mysqld(_Z11mysql_parseP3THDP12Parser_state+0x592)[0x5649e13caf2a] /home/miguel/dbsd/5.7/bin/mysqld(_Z16dispatch_commandP3THDPK8COM_DATA19enum_server_command+0xc3a)[0x5649e13bfe9c] /home/miguel/dbsd/5.7/bin/mysqld(_Z10do_commandP3THD+0x51d)[0x5649e13bed27] /home/miguel/dbsd/5.7/bin/mysqld(handle_connection+0x1ee)[0x5649e1500025] /home/miguel/dbsd/5.7/bin/mysqld(pfs_spawn_thread+0x173)[0x5649e1be4d10] /usr/lib/libpthread.so.0(+0x7a9d)[0x7fe3b10c6a9d] /usr/lib/libc.so.6(clone+0x43)[0x7fe3b0a71a43] Trying to get some variables. Some pointers may be invalid and cause the dump to abort. Query (7fe350005ae0): SELECT(SELECT MULTILINESTRING(d.a,d.a,d.a)FROM t1) FROM t1 AS d GROUP BY d.a Connection ID (thread ID): 2 Status: NOT_KILLED
[22 Oct 2018 5:02]
MySQL Verification Team
Bug 23573720 - ASSERTION FAILED: GEOMETRY::IS_VALID_GEOTYPE(GT)
[6 Nov 2018 6:25]
MySQL Verification Team
Bug #93092 marked as duplicate of this one, updating version.