[MDEV-6334] mysqld spider crash Created: 2014-06-12  Updated: 2019-07-08  Resolved: 2019-07-08

Status: Closed
Project: MariaDB Server
Component/s: Storage Engine - Spider
Affects Version/s: 10.0.10
Fix Version/s: 10.0.11

Type: Bug Priority: Major
Reporter: lyl,l.lou Assignee: Kentoku Shiba (Inactive)
Resolution: Fixed Votes: 0
Labels: spider
Environment:

centos 6.5 x64



 Description   

140611 15:57:12 [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 http://kb.askmonty.org/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.0.10-MariaDB
key_buffer_size=402653184
read_buffer_size=2097152
max_used_connections=3
max_threads=153
thread_count=3
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 1023048 K  bytes of memory
Hope that's ok; if not, decrease some variables in the equation.
 
Thread pointer: 0x0x32db7f8
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 = 0x7f04fc1abd78 thread_stack 0x48000
mysys/stacktrace.c:247(my_print_stacktrace)[0xa99329]
sql/signal_handler.cc:153(handle_fatal_signal)[0x6da8aa]
/lib64/libpthread.so.0(+0xf710)[0x7f0503083710]
/usr/local/mariadb/lib/plugin/ha_spider.so(_Z24spider_db_discard_resultP9ha_spideriP14st_spider_conn+0x3a)[0x7f04bdf702aa]
/usr/local/mariadb/lib/plugin/ha_spider.so(_Z24spider_db_udf_ping_tableP24st_spider_table_mon_listP15st_spider_shareP21st_spider_transactionP14st_spider_connPcjbbx+0x682)[0x7f04bdf7d572]
/usr/local/mariadb/lib/plugin/ha_spider.so(_Z22spider_ping_table_bodyP11st_udf_initP11st_udf_argsPcS3_+0x826)[0x7f04bdfa3c76]
sql/sql_udf.h:110(udf_handler::val_int(char*))[0x728706]
sql/item.cc:6636(Item::send(Protocol*, String*))[0x6f02ec]
sql/protocol.cc:900(Protocol::send_result_set_row(List<Item>*))[0x524299]
sql/sql_class.cc:2543(select_send::send_data(List<Item>&))[0x567dd5]
sql/sql_select.cc:2439(JOIN::exec_inner())[0x5ded4c]
sql/sql_select.cc:2357(JOIN::exec())[0x5dff99]
sql/sql_select.cc:3295(mysql_select(THD*, Item***, 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*))[0x5dd10a]
sql/sql_select.cc:372(handle_select(THD*, LEX*, select_result*, unsigned long))[0x5e0294]
sql/sql_parse.cc:5307(execute_sqlcom_select)[0x58dd34]
sql/sql_parse.cc:2590(mysql_execute_command(THD*))[0x595e00]
sql/sql_parse.cc:6452(mysql_parse(THD*, char*, unsigned int, Parser_state*))[0x597cf9]
sql/sql_parse.cc:1310(dispatch_command(enum_server_command, THD*, char*, unsigned int))[0x599293]
sql/sql_connect.cc:1379(do_handle_one_connection(THD*))[0x64d5f4]
sql/sql_connect.cc:1295(handle_one_connection)[0x64d680]
perfschema/pfs.cc:1856(pfs_spawn_thread)[0x82c610]
/lib64/libpthread.so.0(+0x79d1)[0x7f050307b9d1]
/lib64/libc.so.6(clone+0x6d)[0x7f0501783b7d]
 
Trying to get some variables.
Some pointers may be invalid and cause the dump to abort.
Query (0x7f048c004d60): is an invalid pointer
Connection ID (thread ID): 8
Status: NOT_KILLED
 
Optimizer switch: index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,index_merge_sort_intersection=off,engine_condition_pushdown=off,index_condition_pushdown=on,derived_merge=on,derived_with_keys=on,firstmatch=on,loosescan=on,materialization=on,in_to_exists=on,semijoin=on,partial_match_rowid_merge=on,partial_match_table_scan=on,subquery_cache=on,mrr=off,mrr_cost_based=off,mrr_sort_keys=off,outer_join_with_cache=on,semijoin_with_cache=on,join_cache_incremental=on,join_cache_hashed=on,join_cache_bka=on,optimize_join_buffer_size=off,table_elimination=on,extended_keys=on,exists_to_in=off
 
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.
140611 15:57:12 mysqld_safe Number of processes running now: 0
140611 15:57:12 mysqld_safe mysqld restarted
140611 15:57:12 [Note] InnoDB: The InnoDB memory heap is disabled
140611 15:57:12 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
140611 15:57:12 [Note] InnoDB: Compressed tables use zlib 1.2.3
140611 15:57:12 [Note] InnoDB: Using CPU crc32 instructions
140611 15:57:12 [Note] InnoDB: Initializing buffer pool, size = 128.0M
140611 15:57:12 [Note] InnoDB: Completed initialization of buffer pool
140611 15:57:12 [Note] InnoDB: Highest supported file format is Barracuda.
140611 15:57:12 [Note] InnoDB: The log sequence numbers 8465585 and 8465585 in ibdata files do not match the log sequence number 8478678 in the ib_logfiles!
140611 15:57:12 [Note] InnoDB: Database was not shutdown normally!
140611 15:57:12 [Note] InnoDB: Starting crash recovery.
140611 15:57:12 [Note] InnoDB: Reading tablespace information from the .ibd files...
140611 15:57:12 [Note] InnoDB: Restoring possible half-written data pages
140611 15:57:12 [Note] InnoDB: from the doublewrite buffer...
140611 15:57:12 [Note] InnoDB: 128 rollback segment(s) are active.
140611 15:57:12 [Note] InnoDB: Waiting for purge to start
140611 15:57:12 [Note] InnoDB:  Percona XtraDB (http://www.percona.com) 5.6.15-63.0 started; log sequence number 8478678
140611 15:57:12 [Note] Recovering after a crash using tc.log
140611 15:57:12 [Note] Starting crash recovery...
140611 15:57:12 [Note] Crash recovery finished.
140611 15:57:12 [Note] Server socket created on IP: '0.0.0.0'.
140611 15:57:12 [Note] Event Scheduler: Loaded 0 events
140611 15:57:12 [Note] /usr/local/mariadb/bin/mysqld: ready for connections.
Version: '10.0.10-MariaDB'  socket: '/tmp/mariadb3306.sock'  port: 3306  Source distribution



 Comments   
Comment by lyl,l.lou [ 2014-06-18 ]

==30375== ERROR SUMMARY: 4 errors from 3 contexts (suppressed: 9 from 9)
==30375==
==30375== 1 errors in context 1 of 3:
==30375== Use of uninitialised value of size 8
==30375== at 0x53F2D2AA: spider_db_discard_result(ha_spider*, int, st_spider_conn*) (spd_db_conn.cc:3872)
==30375== by 0x53F3A571: spider_db_udf_ping_table(st_spider_table_mon_list*, st_spider_share*, st_spider_transaction*, st_spider_conn*, char*, unsigned int, bool, bool, long long) (spd_db_conn.cc:8972)
==30375== by 0x53F60C75: spider_ping_table_body(st_udf_init*, st_udf_args*, char*, char*) (spd_ping_table.cc:983)
==30375== by 0x728705: Item_func_udf_int::val_int() (sql_udf.h:109)
==30375== by 0x6F02EB: Item::send(Protocol*, String*) (item.cc:6635)
==30375== by 0x524298: Protocol::send_result_set_row(List<Item>*) (protocol.cc:900)
==30375== by 0x567DD4: select_send::send_data(List<Item>&) (sql_class.cc:2543)
==30375== by 0x5DED4B: JOIN::exec_inner() (sql_select.cc:2439)
==30375== by 0x5DFF98: JOIN::exec() (sql_select.cc:2355)
==30375== by 0x5DD109: mysql_select(THD*, Item**, 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*) (sql_select.cc:3293)
==30375== by 0x5E0293: handle_select(THD*, LEX*, select_result*, unsigned long) (sql_select.cc:372)
==30375== by 0x58DD33: execute_sqlcom_select(THD*, TABLE_LIST*) (sql_parse.cc:5306)
==30375== Uninitialised value was created by a stack allocation
==30375== at 0x53F39F0D: spider_db_udf_ping_table(st_spider_table_mon_list*, st_spider_share*, st_spider_transaction*, st_spider_conn*, char*, unsigned int, bool, bool, long long) (spd_db_conn.cc:8867)
==30375==
==30375==
==30375== 1 errors in context 2 of 3:
==30375== Use of uninitialised value of size 8
==30375== at 0x53F2D2F0: spider_db_discard_result(ha_spider*, int, st_spider_conn*) (spd_db_conn.cc:3878)
==30375== by 0x53F3A571: spider_db_udf_ping_table(st_spider_table_mon_list*, st_spider_share*, st_spider_transaction*, st_spider_conn*, char*, unsigned int, bool, bool, long long) (spd_db_conn.cc:8972)
==30375== by 0x53F60C75: spider_ping_table_body(st_udf_init*, st_udf_args*, char*, char*) (spd_ping_table.cc:983)
==30375== by 0x728705: Item_func_udf_int::val_int() (sql_udf.h:109)
==30375== by 0x6F02EB: Item::send(Protocol*, String*) (item.cc:6635)
==30375== by 0x524298: Protocol::send_result_set_row(List<Item>*) (protocol.cc:900)
==30375== by 0x567DD4: select_send::send_data(List<Item>&) (sql_class.cc:2543)
==30375== by 0x5DED4B: JOIN::exec_inner() (sql_select.cc:2439)
==30375== by 0x5DFF98: JOIN::exec() (sql_select.cc:2355)
==30375== by 0x5DD109: mysql_select(THD*, Item**, 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*) (sql_select.cc:3293)
==30375== by 0x5E0293: handle_select(THD*, LEX*, select_result*, unsigned long) (sql_select.cc:372)
==30375== by 0x58DD33: execute_sqlcom_select(THD*, TABLE_LIST*) (sql_parse.cc:5306)
==30375== Uninitialised value was created by a stack allocation
==30375== at 0x53F39F0D: spider_db_udf_ping_table(st_spider_table_mon_list*, st_spider_share*, st_spider_transaction*, st_spider_conn*, char*, unsigned int, bool, bool, long long) (spd_db_conn.cc:8867)
==30375==
==30375==
==30375== 2 errors in context 3 of 3:
==30375== Use of uninitialised value of size 8
==30375== at 0x53F2D28E: spider_db_discard_result(ha_spider*, int, st_spider_conn*) (spd_db_conn.cc:3870)
==30375== by 0x53F3A571: spider_db_udf_ping_table(st_spider_table_mon_list*, st_spider_share*, st_spider_transaction*, st_spider_conn*, char*, unsigned int, bool, bool, long long) (spd_db_conn.cc:8972)
==30375== by 0x53F60C75: spider_ping_table_body(st_udf_init*, st_udf_args*, char*, char*) (spd_ping_table.cc:983)
==30375== by 0x728705: Item_func_udf_int::val_int() (sql_udf.h:109)
==30375== by 0x6F02EB: Item::send(Protocol*, String*) (item.cc:6635)
==30375== by 0x524298: Protocol::send_result_set_row(List<Item>*) (protocol.cc:900)
==30375== by 0x567DD4: select_send::send_data(List<Item>&) (sql_class.cc:2543)
==30375== by 0x5DED4B: JOIN::exec_inner() (sql_select.cc:2439)
==30375== by 0x5DFF98: JOIN::exec() (sql_select.cc:2355)
==30375== by 0x5DD109: mysql_select(THD*, Item**, 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*) (sql_select.cc:3293)
==30375== by 0x5E0293: handle_select(THD*, LEX*, select_result*, unsigned long) (sql_select.cc:372)
==30375== by 0x58DD33: execute_sqlcom_select(THD*, TABLE_LIST*) (sql_parse.cc:5306)
==30375== Uninitialised value was created by a stack allocation
==30375== at 0x53F39F0D: spider_db_udf_ping_table(st_spider_table_mon_list*, st_spider_share*, st_spider_transaction*, st_spider_conn*, char*, unsigned int, bool, bool, long long) (spd_db_conn.cc:8867)
==30375==
-30375-
-30375- used_suppression: 7 U1004-ARM-_dl_relocate_object
-30375- used_suppression: 2 glibc-2.5.x-on-SUSE-10.2-(PPC)-2a

Comment by lyl,l.lou [ 2014-06-18 ]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fa24cd0a700 (LWP 32914)]
0x00007fa2480e62aa in spider_db_discard_result (spider=0x7fa24cd05590, link_idx=0, conn=0x7fa218019a88)
at /usr/local/src/mariadb-10.0.10/storage/spider/spd_db_conn.cc:3872
3872 spider_clear_bit(spider->db_request_phase, link_idx);
(gdb) bt
#0 0x00007fa2480e62aa in spider_db_discard_result (spider=0x7fa24cd05590, link_idx=0,
conn=0x7fa218019a88) at /usr/local/src/mariadb-10.0.10/storage/spider/spd_db_conn.cc:3872
#1 0x00007fa2480f3572 in spider_db_udf_ping_table (table_mon_list=0x7fa23404c048,
share=0x7fa23404c170, trx=0x7fa2180080a8, conn=0x7fa218019a88, where_clause=0x7fa218004c88 "",
where_clause_length=0, ping_only=false, use_where=false, limit=1)
at /usr/local/src/mariadb-10.0.10/storage/spider/spd_db_conn.cc:8972
#2 0x00007fa248119c76 in spider_ping_table_body (initid=<value optimized out>, args=0x7fa2180058d8,
is_null=<value optimized out>, error=0x7fa218005948 "")
at /usr/local/src/mariadb-10.0.10/storage/spider/spd_ping_table.cc:983
#3 0x0000000000728706 in val_int (this=0x7fa218005808)
at /usr/local/src/mariadb-10.0.10/sql/sql_udf.h:109
#4 Item_func_udf_int::val_int (this=0x7fa218005808)
at /usr/local/src/mariadb-10.0.10/sql/item_func.cc:3820
#5 0x00000000006f02ec in Item::send (this=0x7fa218005808, protocol=0x47b0f58, buffer=0x7fa24cd06990)
at /usr/local/src/mariadb-10.0.10/sql/item.cc:6635
#6 0x0000000000524299 in Protocol::send_result_set_row (this=0x47b0f58,
row_items=<value optimized out>) at /usr/local/src/mariadb-10.0.10/sql/protocol.cc:900
#7 0x0000000000567dd5 in select_send::send_data (this=0x7fa218005a98, items=<value optimized out>)
at /usr/local/src/mariadb-10.0.10/sql/sql_class.cc:2543
#8 0x00000000005ded4c in JOIN::exec_inner (this=0x7fa218005ab8)
at /usr/local/src/mariadb-10.0.10/sql/sql_select.cc:2439
#9 0x00000000005dff99 in JOIN::exec (this=0x7fa218005ab8)
at /usr/local/src/mariadb-10.0.10/sql/sql_select.cc:2355
#10 0x00000000005dd10a in mysql_select (thd=0x47b0a58, rref_pointer_array=<value optimized out>,
tables=0x0, wild_num=0, fields=<value optimized out>, conds=<value optimized out>, og_num=0,
order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2147748608,
result=0x7fa218005a98, unit=0x47b4628, select_lex=0x47b4d10)
at /usr/local/src/mariadb-10.0.10/sql/sql_select.cc:3293
#11 0x00000000005e0294 in handle_select (thd=0x47b0a58, lex=0x47b4560, result=0x7fa218005a98,
setup_tables_done_option=0) at /usr/local/src/mariadb-10.0.10/sql/sql_select.cc:372
#12 0x000000000058dd34 in execute_sqlcom_select (thd=0x47b0a58, all_tables=0x0)
at /usr/local/src/mariadb-10.0.10/sql/sql_parse.cc:5306
#13 0x0000000000595e00 in mysql_execute_command (thd=0x47b0a58)
at /usr/local/src/mariadb-10.0.10/sql/sql_parse.cc:2590
#14 0x0000000000597cf9 in mysql_parse (thd=0x47b0a58, rawbuf=<value optimized out>, length=69,
parser_state=0x7fa24cd09b70) at /usr/local/src/mariadb-10.0.10/sql/sql_parse.cc:6452
#15 0x0000000000599293 in dispatch_command (command=COM_QUERY, thd=0x47b0a58,
packet=<value optimized out>, packet_length=<value optimized out>)
at /usr/local/src/mariadb-10.0.10/sql/sql_parse.cc:1308
#16 0x000000000064d5f4 in do_handle_one_connection (thd_arg=<value optimized out>)
at /usr/local/src/mariadb-10.0.10/sql/sql_connect.cc:1379
#17 0x000000000064d680 in handle_one_connection (arg=<value optimized out>)
at /usr/local/src/mariadb-10.0.10/sql/sql_connect.cc:1293
#18 0x000000000082c610 in pfs_spawn_thread (arg=0x475e208)
at /usr/local/src/mariadb-10.0.10/storage/perfschema/pfs.cc:1853
#19 0x00007fa294d559d1 in start_thread () from /lib64/libpthread.so.0
#20 0x00007fa29345db7d in clone () from /lib64/libc.so.6

Comment by Kentoku Shiba (Inactive) [ 2014-06-18 ]

Would you please try to use MariaDB 10.0.12?

Comment by Kentoku Shiba (Inactive) [ 2019-07-08 ]

It was fixed at 10.0.11.

Generated at Thu Feb 08 07:11:06 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.