Core was generated by `/test/MD110420-mariadb-10.5.3-linux-x86_64-dbg/bin/mysqld --no-defaults --core-'.
|
Program terminated with signal SIGABRT, Aborted.
|
#0 __pthread_kill (threadid=<optimized out>, signo=signo@entry=6)
|
at ../sysdeps/unix/sysv/linux/pthread_kill.c:57
|
[Current thread is 1 (Thread 0x7fc33ca9f700 (LWP 25287))]
|
(gdb) bt
|
#0 __pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at ../sysdeps/unix/sysv/linux/pthread_kill.c:57
|
#1 0x000055b00a11d21e in my_write_core (sig=sig@entry=6) at /test/10.5_dbg/mysys/stacktrace.c:518
|
#2 0x000055b0098c308f in handle_fatal_signal (sig=6) at /test/10.5_dbg/sql/signal_handler.cc:329
|
#3 <signal handler called>
|
#4 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
|
#5 0x00007fc33b1e3801 in __GI_abort () at abort.c:79
|
#6 0x00007fc33b1d339a in __assert_fail_base (fmt=0x7fc33b35a7d8 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x55b00a46471d "je->state == JST_KEY", file=file@entry=0x55b00a464681 "/test/10.5_dbg/sql/spatial.cc", line=line@entry=513, function=function@entry=0x55b00a464b20 <Geometry::create_from_json(Geometry_buffer*, st_json_engine_t*, bool, String*)::__PRETTY_FUNCTION__> "static Geometry* Geometry::create_from_json(Geometry_buffer*, json_engine_t*, bool, String*)") at assert.c:92
|
#7 0x00007fc33b1d3412 in __GI___assert_fail (assertion=assertion@entry=0x55b00a46471d "je->state == JST_KEY", file=file@entry=0x55b00a464681 "/test/10.5_dbg/sql/spatial.cc", line=line@entry=513, function=function@entry=0x55b00a464b20 <Geometry::create_from_json(Geometry_buffer*, st_json_engine_t*, bool, String*)::__PRETTY_FUNCTION__> "static Geometry* Geometry::create_from_json(Geometry_buffer*, json_engine_t*, bool, String*)") at assert.c:101
|
#8 0x000055b009a7adc1 in Geometry::create_from_json (buffer=buffer@entry=0x7fc33ca9cf40, je=je@entry=0x7fc33ca9ce50, er_on_3D=er_on_3D@entry=false, res=res@entry=0x7fc33ca9cfb0) at /test/10.5_dbg/sql/spatial.cc:513
|
#9 0x000055b009970af8 in Item_func_geometry_from_json::val_str (this=0x7fc30e874938, str=0x7fc33ca9cfb0) at /test/10.5_dbg/sql/item_geofunc.cc:159
|
#10 0x000055b009971eeb in Item_func_as_wkt::val_str_ascii (this=0x7fc30e874aa0, str=0x7fc33ca9d130) at /test/10.5_dbg/sql/item_geofunc.cc:201
|
#11 0x000055b009994574 in Item_func::val_str_from_val_str_ascii (this=0x7fc30e874aa0, str=0x7fc33ca9d130, ascii_buffer=0x7fc30e874b68) at /test/10.5_dbg/sql/item_strfunc.cc:98
|
#12 0x000055b009940f88 in Item_str_ascii_func::val_str (this=<optimized out>, str=<optimized out>) at /test/10.5_dbg/sql/item_strfunc.h:88
|
#13 0x000055b0097fe96c in Type_handler::Item_send_str (this=<optimized out>, item=0x7fc30e874aa0, protocol=0x7fc30e815650, buf=<optimized out>) at /test/10.5_dbg/sql/sql_type.cc:7137
|
#14 0x000055b009753a0f in Type_handler_string_result::Item_send (this=<optimized out>, item=<optimized out>, protocol=<optimized out>, buf=<optimized out>) at /test/10.5_dbg/sql/sql_type.h:5180
|
#15 0x000055b00952b23f in Item::send (this=0x7fc30e874aa0, protocol=0x7fc30e815650, buffer=0x7fc33ca9d100) at /test/10.5_dbg/sql/item.h:1054
|
#16 0x000055b009528faf in Protocol::send_result_set_row (this=this@entry=0x7fc30e815650, row_items=row_items@entry=0x7fc30e874480) at /test/10.5_dbg/sql/protocol.cc:1082
|
#17 0x000055b0095bafa8 in select_send::send_data (this=0x7fc30e8754b0, items=...) at /test/10.5_dbg/sql/sql_class.cc:3006
|
#18 0x000055b009696e8b in select_result_sink::send_data_with_check (sent=0, u=<optimized out>, items=..., this=<optimized out>) at /test/10.5_dbg/sql/sql_class.h:5236
|
#19 JOIN::exec_inner (this=this@entry=0x7fc30e8754d8) at /test/10.5_dbg/sql/sql_select.cc:4331
|
#20 0x000055b009697c6b in JOIN::exec (this=this@entry=0x7fc30e8754d8) at /test/10.5_dbg/sql/sql_select.cc:4244
|
#21 0x000055b009695f80 in mysql_select (thd=thd@entry=0x7fc30e815088, tables=<optimized out>, fields=..., conds=0x0, og_num=0, order=<optimized out>, group=0x0, having=0x0, proc_param=0x0, select_options=2147748608, result=0x7fc30e8754b0, unit=0x7fc30e819090, select_lex=0x7fc30e874330) at /test/10.5_dbg/sql/sql_select.cc:4668
|
#22 0x000055b0096962af in handle_select (thd=thd@entry=0x7fc30e815088, lex=lex@entry=0x7fc30e818fc8, result=result@entry=0x7fc30e8754b0, setup_tables_done_option=setup_tables_done_option@entry=0) at /test/10.5_dbg/sql/sql_select.cc:417
|
#23 0x000055b00962099a in execute_sqlcom_select (thd=thd@entry=0x7fc30e815088, all_tables=0x0) at /test/10.5_dbg/sql/sql_parse.cc:6168
|
#24 0x000055b0096193ed in mysql_execute_command (thd=thd@entry=0x7fc30e815088) at /test/10.5_dbg/sql/sql_parse.cc:3901
|
#25 0x000055b0096269d1 in mysql_parse (thd=thd@entry=0x7fc30e815088, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x7fc33ca9e450, is_com_multi=is_com_multi@entry=false, is_next_command=is_next_command@entry=false) at /test/10.5_dbg/sql/sql_parse.cc:7953
|
#26 0x000055b009612719 in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x7fc30e815088, packet=packet@entry=0x7fc30e867089 "", packet_length=packet_length@entry=100, is_com_multi=is_com_multi@entry=false, is_next_command=is_next_command@entry=false) at /test/10.5_dbg/sql/sql_parse.cc:1839
|
#27 0x000055b009610f6f in do_command (thd=0x7fc30e815088) at /test/10.5_dbg/sql/sql_parse.cc:1358
|
#28 0x000055b00976ba53 in do_handle_one_connection (connect=<optimized out>, connect@entry=0x7fc3130433a8, put_in_cache=put_in_cache@entry=true) at /test/10.5_dbg/sql/sql_connect.cc:1422
|
#29 0x000055b00976bd82 in handle_one_connection (arg=arg@entry=0x7fc3130433a8) at /test/10.5_dbg/sql/sql_connect.cc:1319
|
#30 0x000055b009bcc080 in pfs_spawn_thread (arg=0x7fc33a445888) at /test/10.5_dbg/storage/perfschema/pfs.cc:2201
|
#31 0x00007fc33bec66db in start_thread (arg=0x7fc33ca9f700) at pthread_create.c:463
|
#32 0x00007fc33b2c488f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
|
Thanks! Repeatable as described on 10.2-10.4:
10.2 cbac8f935182ecc5bb907de3a
/10.2/sql/spatial.cc:395: static Geometry* Geometry::create_from_json(Geometry_buffer*, json_engine_t*, bool, String*): Assertion `je->state == JST_KEY' failed.
190611 10:25:08 [ERROR] mysqld got signal 6 ;
sql/spatial.cc:397(Geometry::create_from_json(Geometry_buffer*, st_json_engine_t*, bool, String*))[0x55aa280ce97a]
sql/item_geofunc.cc:166(Item_func_geometry_from_json::val_str(String*))[0x55aa27e876a9]
sql/item.cc:6890(Item::send(Protocol*, String*))[0x55aa27d81415]
sql/protocol.cc:979(Protocol::send_result_set_row(List<Item>*))[0x55aa27594fe0]
sql/sql_class.cc:2723(select_send::send_data(List<Item>&))[0x55aa276af69c]
sql/sql_select.cc:3499(JOIN::exec_inner())[0x55aa278015e5]
sql/sql_select.cc:3421(JOIN::exec())[0x55aa27800462]
sql/sql_select.cc:3822(mysql_select(THD*, TABLE_LIST*, unsigned int, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*))[0x55aa278037af]
sql/sql_select.cc:376(handle_select(THD*, LEX*, select_result*, unsigned long))[0x55aa277e2ea3]
sql/sql_parse.cc:6493(execute_sqlcom_select(THD*, TABLE_LIST*))[0x55aa2776a93f]
sql/sql_parse.cc:3534(mysql_execute_command(THD*))[0x55aa27757d34]
sql/sql_parse.cc:8027(mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool))[0x55aa277730a3]
sql/sql_parse.cc:1835(dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool))[0x55aa2774e72d]
sql/sql_parse.cc:1387(do_command(THD*))[0x55aa2774b8aa]
sql/sql_connect.cc:1335(do_handle_one_connection(CONNECT*))[0x55aa27a75e04]
sql/sql_connect.cc:1242(handle_one_connection)[0x55aa27a7580c]
perfschema/pfs.cc:1864(pfs_spawn_thread)[0x55aa28c26d96]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x76ba)[0x7f26cf3556ba]
x86_64/clone.S:111(clone)[0x7f26ce7ea41d]
Query (0x62b000000410): SELECT ST_GEOMFROMGEOJSON("{ \"type\": \"Feature\", \"geometry\": [10, 20] }")
on non-debug:
MariaDB [test]> SELECT ST_GEOMFROMGEOJSON("{ \"type\": \"Feature\", \"geometry\": [10, 20] }");
+-------------------------------------------------------------------------+
| ST_GEOMFROMGEOJSON("{ \"type\": \"Feature\", \"geometry\": [10, 20] }") |
+-------------------------------------------------------------------------+
| NULL |
+-------------------------------------------------------------------------+
1 row in set, 1 warning (0.00 sec)
Warning (Code 4037): Unexpected end of JSON text in argument 1 to function 'st_geomfromgeojson'