Bug #83737 | Assertion `t1->result_range' failed. | ||
---|---|---|---|
Submitted: | 8 Nov 2016 9:10 | Modified: | 7 Dec 2017 4:07 |
Reporter: | Roel Van de Paar | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: GIS | Severity: | S1 (Critical) |
Version: | 5.6.34,5.6.38 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[8 Nov 2016 9:10]
Roel Van de Paar
[8 Nov 2016 9:18]
MySQL Verification Team
Thank you for the bug report. I always to repeat with debug server same for you?. Thanks. c:\dbs>c:\dbs\5.6\bin\mysql -uroot --port=3560 -p --prompt="mysql 5.6 > " Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 2 Server version: 5.6.36 Source distribution PULL: 2016-NOV-05 Copyright (c) 2000, 2016, 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.6 > SELECT AsText(ST_SYMDIFFERENCE(MultiLineStringFromText('MULTILINESTRING((7 7,1 7,8 5,7 8,7 7),(6 3,3 4,1 1,9 9,9 0,8 4,9 9))'),Envelope(GeometryFromText('MULTIPOINT(7 9,0 0,3 7,1 6,0 0)'))))\G *************************** 1. row *************************** AsText(ST_SYMDIFFERENCE(MultiLineStringFromText('MULTILINESTRING((7 7,1 7,8 5,7 8,7 7),(6 3,3 4,1 1,9 9,9 0,8 4,9 9))'),Envelope(GeometryFromText('MULTIPOINT(7 9,0 0,3 7,1 6,0 0)')))): GEOMETRYCOLLECTION(LINESTRING(9 9,8 4,9 0,9 9),POINT(9 9),POLYGON((0 0,0 9,7 9,7 0,0 0)),LINESTRING(6 3,3 4,1 1,9 9),LINESTRING(7 5.285714285714286,8 5,7 8,7 7),POINT(7 8)) 1 row in set (0.00 sec) mysql 5.6 > exit Bye c:\dbs>56q c:\dbs>c:\dbs\5.6\bin\mysqladmin -uroot --port=3560 -p shutdown Enter password: c:\dbs>56c c:\dbs>c:\dbs\5.6\bin\mysql -uroot --port=3560 -p --prompt="mysql 5.6 > " Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 1 Server version: 5.6.36-debug Source distribution PULL: 2016-NOV-05 Copyright (c) 2000, 2016, 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.6 > SELECT AsText(ST_SYMDIFFERENCE(MultiLineStringFromText('MULTILINESTRING((7 7,1 7,8 5,7 8,7 7),(6 3,3 4,1 1,9 9,9 0,8 4,9 9))'),Envelope(GeometryFromText('MULTIPOINT(7 9,0 0,3 7,1 6,0 0)'))))\G ERROR 2013 (HY000): Lost connection to MySQL server during query mysql 5.6 >
[8 Nov 2016 9:25]
MySQL Verification Team
2016-11-08 07:15:39 256 [Note] c:\dbs\5.6\bin\mysqld: ready for connections. Version: '5.6.36-debug' socket: '' port: 3560 Source distribution PULL: 2016-NOV-05 Assertion failed: t1->result_range, file C:\build\2016NOV05\mysql-5.6\sql\gcalc_tools.cc, line 731 R6010 - abort() has been called 09:15:55 UTC - mysqld got exception 0x80000003 ; 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. 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 = 67958 K bytes of memory Hope that's ok; if not, decrease some variables in the equation. Thread pointer: 0x1cbde14e330 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... 7ff632d6ea45 mysqld.exe!my_sigabrt_handler()[my_thr_init.c:455] 7ff633351e1f mysqld.exe!raise()[winsig.c:594] 7ff633353d50 mysqld.exe!abort()[abort.c:82] 7ff63334e698 mysqld.exe!_wassert()[assert.c:156] 7ff632ae45d5 mysqld.exe!Gcalc_operation_reducer::end_couple()[gcalc_tools.cc:731] 7ff632ae30db mysqld.exe!Gcalc_operation_reducer::count_slice()[gcalc_tools.cc:942] 7ff632ae3c4e mysqld.exe!Gcalc_operation_reducer::count_all()[gcalc_tools.cc:1088] 7ff632afc7c3 mysqld.exe!Item_func_spatial_operation::val_str()[item_geofunc.cc:1061] 7ff632af8e04 mysqld.exe!Item_func_as_wkt::val_str_ascii()[item_geofunc.cc:146] 7ff632930b00 mysqld.exe!Item_str_func::val_str_from_val_str_ascii()[item_strfunc.cc:78] 7ff63296e2f0 mysqld.exe!Item_str_ascii_func::val_str()[item_strfunc.h:82] 7ff6328dee43 mysqld.exe!Item::send()[item.cc:6898] 7ff6328c4632 mysqld.exe!Protocol::send_result_set_row()[protocol.cc:844] 7ff6328d34dd mysqld.exe!select_send::send_data()[sql_class.cc:2543] 7ff632c3350e mysqld.exe!JOIN::exec()[sql_executor.cc:151] 7ff632bb4b1e mysqld.exe!mysql_execute_select()[sql_select.cc:1104] 7ff632ba7959 mysqld.exe!mysql_select()[sql_select.cc:1222] 7ff632ba756d mysqld.exe!handle_select()[sql_select.cc:110] 7ff6329b5b73 mysqld.exe!execute_sqlcom_select()[sql_parse.cc:5164] 7ff6329a7525 mysqld.exe!mysql_execute_command()[sql_parse.cc:2686] 7ff6329a5fba mysqld.exe!mysql_parse()[sql_parse.cc:6416] 7ff6329af6a9 mysqld.exe!dispatch_command()[sql_parse.cc:1372] 7ff6329ae6c5 mysqld.exe!do_command()[sql_parse.cc:1036] 7ff6329fffe2 mysqld.exe!do_handle_one_connection()[sql_connect.cc:982] 7ff6329ffe12 mysqld.exe!handle_one_connection()[sql_connect.cc:900] 7ff63322a2e5 mysqld.exe!pfs_spawn_thread()[pfs.cc:1862] 7ff632d6d016 mysqld.exe!pthread_start()[my_winthread.c:62] 7ff633362395 mysqld.exe!_callthreadstartex()[threadex.c:376] 7ff6333625e7 mysqld.exe!_threadstartex()[threadex.c:359] 7ffc71858364 KERNEL32.DLL!BaseThreadInitThunk() 7ffc71f85e91 ntdll.dll!RtlUserThreadStart()
[8 Nov 2016 10:13]
MySQL Verification Team
Thank you for the bug report.
[15 Nov 2017 18:01]
Erlend Dahl
Can't repeat on recent 5.7/8.0. There are no plans to backport a fix.
[16 Nov 2017 8:04]
Roel Van de Paar
Note that 8.0.3 requires a syntax update https://dev.mysql.com/doc/refman/8.0/en/gis-format-conversion-functions.html#function_aste... 8.0.3>SELECT ST_AsText(ST_SYMDIFFERENCE(ST_MultiLineStringFromText('ST_MULTILINESTRING((7 7,1 7,8 5,7 8,7 7),(6 3,3 4,1 1,9 9,9 0,8 4,9 9))'),ST_Envelope(ST_GeometryFromText('ST_MULTIPOINT(7 9,0 0,3 7,1 6,0 0)')))); ERROR 3037 (22023): Invalid GIS data provided to function st_multilinestringfromtext.
[16 Nov 2017 8:07]
Roel Van de Paar
5.7.19 and 8.0.3 react differently, and 5.7.19 reacts differently when using older or newer functions 5.7.19>SELECT ST_AsText(ST_SYMDIFFERENCE(ST_MultiLineStringFromText('ST_MULTILINESTRING((7 7,1 7,8 5,7 8,7 7),(6 3,3 4,1 1,9 9,9 0,8 4,9 9))'),ST_Envelope(ST_GeometryFromText('ST_MULTIPOINT(7 9,0 0,3 7,1 6,0 0)')))); ERROR 3037 (22023): Invalid GIS data provided to function st_geometryfromtext. 5.7.19>SELECT AsText(ST_SYMDIFFERENCE(MultiLineStringFromText('MULTILINESTRING((7 7,1 7,8 5,7 8,7 7),(6 3,3 4,1 1,9 9,9 0,8 4,9 9))'),Envelope(GeometryFromText('MULTIPOINT(7 9,0 0,3 7,1 6,0 0)')))); +-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | AsText(ST_SYMDIFFERENCE(MultiLineStringFromText('MULTILINESTRING((7 7,1 7,8 5,7 8,7 7),(6 3,3 4,1 1,9 9,9 0,8 4,9 9))'),Envelope(GeometryFromText('MULTIPOINT(7 9,0 0,3 7,1 6,0 0)')))) | +-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | GEOMETRYCOLLECTION(POLYGON((0 0,7 0,7 9,0 9,0 0)),MULTILINESTRING((7 5.285714285714286,8 5,7 8),(7 7,9 9,9 0,8 4,9 9))) | +-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ 1 row in set, 4 warnings (0.01 sec) 5.7.19>show warnings; +---------+------+--------------------------------------------------------------------------------------------------------------------------------+ | Level | Code | Message | +---------+------+--------------------------------------------------------------------------------------------------------------------------------+ | Warning | 1287 | 'ASTEXT' is deprecated and will be removed in a future release. Please use ST_ASTEXT instead | | Warning | 1287 | 'MULTILINESTRINGFROMTEXT' is deprecated and will be removed in a future release. Please use ST_MULTILINESTRINGFROMTEXT instead | | Warning | 1287 | 'ENVELOPE' is deprecated and will be removed in a future release. Please use ST_ENVELOPE instead | | Warning | 1287 | 'GEOMETRYFROMTEXT' is deprecated and will be removed in a future release. Please use ST_GEOMETRYFROMTEXT instead | +---------+------+--------------------------------------------------------------------------------------------------------------------------------+ 4 rows in set (0.01 sec)
[16 Nov 2017 8:10]
Roel Van de Paar
Logged bug 88513
[7 Dec 2017 4:06]
Roel Van de Paar
See bug 88801
[7 Dec 2017 4:07]
Roel Van de Paar
This bug still crashes 5.6.38 5.6.38>SELECT AsText(ST_SYMDIFFERENCE(MultiLineStringFromText('MULTILINESTRING((7 7,1 7,8 5,7 8,7 7),(6 3,3 4,1 1,9 9,9 0,8 4,9 9))'),Envelope(GeometryFromText('MULTIPOINT(7 9,0 0,3 7,1 6,0 0)')))); ERROR 2013 (HY000): Lost connection to MySQL server during query
[7 Dec 2017 4:07]
Roel Van de Paar
Please fix