Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.3.8, 10.2(EOL), 10.3(EOL)
-
None
-
centos 6
Description
180808 14:45:38 [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 https://mariadb.com/kb/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.3.8-MariaDB-log
key_buffer_size=134217728
read_buffer_size=262144
max_used_connections=56
max_threads=65537
thread_count=12
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 151151222 K bytes of memory
Hope that's ok; if not, decrease some variables in the equation.
Thread pointer: 0x7fbd44068208
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 = 0x7fbed0e6fcc8 thread_stack 0x49000
mysys/stacktrace.c:270(my_print_stacktrace)[0x7fbed1ca008b]
sql/signal_handler.cc:168(handle_fatal_signal)[0x7fbed178ca57]
/lib64/libpthread.so.0(+0x36aa20f7e0)[0x7fbed0ba37e0]
sql/sql_base.cc:6110(find_field_in_tables(THD*, Item_ident*, TABLE_LIST*, TABLE_LIST*, Item**, find_item_error_report_type, bool, bool))[0x7fbed1587bff]
sql/sql_select.cc:22928(find_order_in_list)[0x7fbed15fe947]
sql/sql_select.cc:23041(setup_order(THD*, Bounds_checked_array<Item*>, TABLE_LIST*, List<Item>&, List<Item>&, st_order*, bool))[0x7fbed16129f6]
sql/sql_window.cc:224(setup_windows(THD*, Bounds_checked_array<Item*>, TABLE_LIST*, List<Item>&, List<Item>&, List<Window_spec>&, List<Item_window_func>&))[0x7fbed16f9a9f]
sql/sql_select.cc:671(setup_without_group)[0x7fbed1614f47]
sql/sql_union.cc:667(st_select_lex_unit::prepare_join(THD*, st_select_lex*, select_result*, unsigned long, bool))[0x7fbed1664b25]
sql/sql_union.cc:977(st_select_lex_unit::prepare(TABLE_LIST*, select_result*, unsigned long))[0x7fbed16676ba]
sql/sql_derived.cc:766(mysql_derived_prepare(THD*, LEX*, TABLE_LIST*))[0x7fbed15a402a]
sql/sql_derived.cc:197(mysql_handle_single_derived(LEX*, TABLE_LIST*, unsigned int))[0x7fbed15a3767]
sql/sql_lex.cc:4073(st_select_lex::handle_derived(LEX*, unsigned int))[0x7fbed15b9cf7]
sql/sql_select.cc:997(JOIN::prepare(TABLE_LIST*, unsigned int, Item*, unsigned int, st_order*, bool, st_order*, Item*, st_order*, st_select_lex*, st_select_lex_unit*))[0x7fbed16147a8]
sql/sql_select.cc:4198(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*))[0x7fbed1626c7e]
sql/sql_select.cc:382(handle_select(THD*, LEX*, select_result*, unsigned long))[0x7fbed1627e5c]
sql/sql_parse.cc:6543(execute_sqlcom_select)[0x7fbed14ef349]
sql/sql_parse.cc:3765(mysql_execute_command(THD*))[0x7fbed15d8453]
sql/sql_prepare.cc:4763(Prepared_statement::execute(String*, bool))[0x7fbed15ea6fe]
sql/sql_prepare.cc:4191(Prepared_statement::execute_loop(String*, bool, unsigned char*, unsigned char*))[0x7fbed15ede01]
sql/sql_prepare.cc:3300(mysql_sql_stmt_execute(THD*))[0x7fbed15ee80d]
sql/sql_parse.cc:3781(mysql_execute_command(THD*))[0x7fbed15d414c]
sql/sp_head.cc:3594(sp_instr_stmt::exec_core(THD*, unsigned int*))[0x7fbed154a72e]
sql/sp_head.cc:3320(sp_lex_keeper::reset_lex_and_exec_core(THD*, unsigned int*, bool, sp_instr*))[0x7fbed15511e4]
sql/sp_head.cc:3499(sp_instr_stmt::execute(THD*, unsigned int*))[0x7fbed15519a9]
sql/sp_head.cc:1353(sp_head::execute(THD*, bool))[0x7fbed154df12]
sql/sp_head.cc:2293(sp_head::execute_procedure(THD*, List<Item>*))[0x7fbed154ee6a]
sql/sql_parse.cc:2948(do_execute_sp)[0x7fbed15cd3c0]
sql/sql_parse.cc:3187(Sql_cmd_call::execute(THD*))[0x7fbed15ce6e6]
sql/sql_parse.cc:6280(mysql_execute_command(THD*))[0x7fbed15d36c9]
sql/sql_class.h:1809(mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool))[0x7fbed15da9d9]
sql/sql_parse.cc:1847(dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool))[0x7fbed15dca1a]
sql/sql_parse.cc:1394(do_command(THD*))[0x7fbed15dd19e]
sql/threadpool_common.cc:358(threadpool_process_request)[0x7fbed16dbe07]
sql/threadpool_generic.cc:1601(worker_main)[0x7fbed1763180]
/lib64/libpthread.so.0(+0x36aa207aa1)[0x7fbed0b9baa1]
/lib64/libc.so.6(clone+0x6d)[0x7fbecf2b493d]
Trying to get some variables.
Some pointers may be invalid and cause the dump to abort.
Query (0x7fbd442ab520): WITH base AS (
SELECT * FROM partner_goods_storage pgs
UNION
SELECT * FROM partner_goods_storage_package pgsp
), time_line AS (
SELECT seq, DATE_SUB(CURRENT_DATE(), INTERVAL seq DAY) reg_date
FROM seq_0_to_82
), result AS ( SELECT tl.reg_date, SUM(b.bill) OVER (ORDER BY tl.reg_date) bill_sum, SUM(b.period) OVER (ORDER BY tl.reg_date) period_sum
FROM time_line tl
LEFT JOIN (
SELECT DATE_FORMAT(b.start_time, '%Y%m%d') reg_date,
COUNT(DATE_FORMAT(b.start_time, '%Y%m%d')) paid_count,
SUM(IF(gp.goods_type = '정기결제', 1, 0)) bill,
SUM(IF(gp.goods_type = '기간약정', 1, 0)) period,
GROUP_CONCAT(b.payment_number)
FROM base b
JOIN goods_payment gp ON b.payment_number = gp.payment_number
JOIN sales_incentive si ON gp.payment_number = si.payment_number AND si.sales_incentive_type = '판매'
JOIN sales_person_sell_point_status spsps ON gp.payment_number = spsps.payment_number AND spsps.sell_point_status IN ('확정','적립','전환') AND si.pid = spsps.pid
LEFT JOIN partner_goods pg ON b.payment_number = pg.payment_number
LEFT JOIN tmp_test_aloha_members ttam ON gp.member_idx = ttam.member_idx
WHERE ttam.member_id IS NULL
GROUP BY DATE_FORMAT(b.start_time, '%Y%m%d') ) b ON b.reg_date = tl.reg_date
ORDER BY tl.reg_date desc)
SELECT reg_date, bill_sum, period_sum FROM result where reg_date between '2018-07-05' and '2018-08-05'
Connection ID (thread ID): 444066
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=on,orderby_uses_equalities=on,condition_pushdown_for_derived=on,split_materialized=on
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.
2018-08-08 14:45:39 0 [Note] InnoDB: Using Linux native AIO
2018-08-08 14:45:39 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2018-08-08 14:45:39 0 [Note] InnoDB: Uses event mutexes
2018-08-08 14:45:39 0 [Note] InnoDB: Compressed tables use zlib 1.2.3
2018-08-08 14:45:39 0 [Note] InnoDB: Number of pools: 1
2018-08-08 14:45:39 0 [Note] InnoDB: Using SSE2 crc32 instructions
2018-08-08 14:45:39 0 [Note] InnoDB: Initializing buffer pool, total size = 2G, instances = 8, chunk size = 128M
2018-08-08 14:45:39 0 [Note] InnoDB: Completed initialization of buffer pool
2018-08-08 14:45:39 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
2018-08-08 14:45:39 0 [Note] InnoDB: Starting crash recovery from checkpoint LSN=29129140536
2018-08-08 14:45:40 0 [Note] InnoDB: Last binlog file '/var/log/mysql/binary_log.000060', position 352896849
2018-08-08 14:45:40 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2018-08-08 14:45:40 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
2018-08-08 14:45:40 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2018-08-08 14:45:40 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2018-08-08 14:45:40 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2018-08-08 14:45:40 0 [Note] InnoDB: Waiting for purge to start
2018-08-08 14:45:40 0 [Note] InnoDB: 10.3.8 started; log sequence number 29129140545; transaction id 34985656
2018-08-08 14:45:40 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
2018-08-08 14:45:40 0 [Note] Plugin 'FEEDBACK' is disabled.
2018-08-08 14:45:40 0 [Note] Recovering after a crash using /var/log/mysql/binary_log
2018-08-08 14:45:40 0 [Note] InnoDB: Buffer pool(s) load completed at 180808 14:45:40
2018-08-08 14:45:40 0 [Note] Starting crash recovery...
2018-08-08 14:45:40 0 [Note] Crash recovery finished.
2018-08-08 14:45:40 0 [Note] Server socket created on IP: '::'.
2018-08-08 14:45:40 0 [ERROR] mysqld: Table './mysql/db' is marked as crashed and should be repaired
2018-08-08 14:45:40 0 [Warning] Checking table: './mysql/db'
2018-08-08 14:45:40 0 [ERROR] mysql.db: 1 client is using or hasn't closed the table properly
2018-08-08 14:45:40 0 [Warning] 'proxies_priv' entry '@% root@ucolo200-39' ignored in --skip-name-resolve mode.
2018-08-08 14:45:40 0 [ERROR] mysqld: Table './mysql/event' is marked as crashed and should be repaired
2018-08-08 14:45:40 0 [Warning] Checking table: './mysql/event'
2018-08-08 14:45:40 0 [ERROR] mysql.event: 1 client is using or hasn't closed the table properly
2018-08-08 14:45:40 7 [Note] Event Scheduler: scheduler thread started with id 7
2018-08-08 14:45:40 0 [Note] Reading of all Master_info entries succeded
2018-08-08 14:45:40 0 [Note] Added new Master_info '' to hash table
2018-08-08 14:45:40 0 [Note] /usr/sbin/mysqld: ready for connections.
Version: '10.3.8-MariaDB-log' socket: '/var/lib/mysql/mysql.sock' port: 3306 MariaDB Server
Attachments
Issue Links
- relates to
-
MDEV-13170 Database service (MySQL) stops after update with trigger
-
- Closed
-
Thanks for the report!
Reproducible with Maridb 10.2, 10.3
--source include/have_sequence.inc
DELIMITER $$;
BEGIN
(SELECT t1.d1, SUM(t1.seq) OVER (ORDER BY t1.d1) a1, SUM(t1.seq) OVER (ORDER BY t1.d1) a2
DELIMITER ;$$
CALL pr();
10.2 4ddcb4eb46c62cf4599365
Thread 1 (Thread 0x7fad7d0ca700 (LWP 16639)):
#0 __pthread_kill (threadid=<optimized out>, signo=11) at ../sysdeps/unix/sysv/linux/pthread_kill.c:62
#1 0x000055c47b99cd12 in my_write_core (sig=11) at /git/10.2/mysys/stacktrace.c:477
#2 0x000055c47b235815 in handle_fatal_signal (sig=11) at /git/10.2/sql/signal_handler.cc:305
#3 <signal handler called>
#4 0x000055c47af56d68 in find_field_in_tables (thd=0x7fad6c000b00, item=0x7fad6c03b7c8, first_table=0x7fad6c038e78, last_table=0x0, ref=0x7fad7d0c5458, report_error=IGNORE_ERRORS, check_privileges=false, register_tree_change=false) at /git/10.2/sql/sql_base.cc:5861
#5 0x000055c47b03a860 in find_order_in_list (thd=0x7fad6c000b00, ref_pointer_array=..., tables=0x7fad6c038e78, order=0x7fad6c0376e8, fields=..., all_fields=..., is_group_field=false, add_to_all_fields=true, from_window_spec=true) at /git/10.2/sql/sql_select.cc:22388
#6 0x000055c47b03ac6f in setup_order (thd=0x7fad6c000b00, ref_pointer_array=..., tables=0x7fad6c038e78, fields=..., all_fields=..., order=0x7fad6c0376e8, from_window_spec=true) at /git/10.2/sql/sql_select.cc:22503
#7 0x000055c47b188aa6 in setup_windows (thd=0x7fad6c000b00, ref_pointer_array=..., tables=0x7fad6c038e78, fields=..., all_fields=..., win_specs=..., win_funcs=...) at /git/10.2/sql/sql_window.cc:211
#8 0x000055c47b001027 in setup_without_group (thd=0x7fad6c000b00, ref_pointer_array=..., tables=0x7fad6c038e78, leaves=..., fields=..., all_fields=..., conds=0x7fad6c07e308, order=0x0, group=0x0, win_specs=..., win_funcs=..., hidden_group_fields=0x7fad6c07e1e7, reserved=0x7fad6c0363bc) at /git/10.2/sql/sql_select.cc:664
#9 0x000055c47b0018e2 in JOIN::prepare (this=0x7fad6c07df00, tables_init=0x7fad6c038e78, wild_num=0, conds_init=0x0, og_num=0, order_init=0x0, skip_order_by=false, group_init=0x0, having_init=0x0, proc_param_init=0x0, select_lex_arg=0x7fad6c0360f8, unit_arg=0x7fad6c0364e8) at /git/10.2/sql/sql_select.cc:819
#10 0x000055c47b0a90f5 in st_select_lex_unit::prepare (this=0x7fad6c0364e8, thd_arg=0x7fad6c000b00, sel_result=0x7fad6c07de30, additional_options=0) at /git/10.2/sql/sql_union.cc:585
#11 0x000055c47af91f8b in mysql_derived_prepare (thd=0x7fad6c000b00, lex=0x7fad6c034520, derived=0x7fad6c0394d8) at /git/10.2/sql/sql_derived.cc:770
#12 0x000055c47af90d66 in mysql_handle_single_derived (lex=0x7fad6c034520, derived=0x7fad6c0394d8, phases=2) at /git/10.2/sql/sql_derived.cc:197
#13 0x000055c47b0d22be in TABLE_LIST::handle_derived (this=0x7fad6c0394d8, lex=0x7fad6c034520, phases=2) at /git/10.2/sql/table.cc:7954
#14 0x000055c47afb220b in st_select_lex::handle_derived (this=0x7fad6c034d20, lex=0x7fad6c034520, phases=2) at /git/10.2/sql/sql_lex.cc:3918
#15 0x000055c47b00123f in JOIN::prepare (this=0x7fad6c07d198, tables_init=0x7fad6c0394d8, wild_num=0, conds_init=0x0, og_num=0, order_init=0x0, skip_order_by=false, group_init=0x0, having_init=0x0, proc_param_init=0x0, select_lex_arg=0x7fad6c034d20, unit_arg=0x7fad6c0345e8) at /git/10.2/sql/sql_select.cc:716
#16 0x000055c47b00c024 in mysql_select (thd=0x7fad6c000b00, tables=0x7fad6c0394d8, wild_num=0, fields=..., conds=0x0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2416185088, result=0x7fad6c039af8, unit=0x7fad6c0345e8, select_lex=0x7fad6c034d20) at /git/10.2/sql/sql_select.cc:3775
#17 0x000055c47b00043e in handle_select (thd=0x7fad6c000b00, lex=0x7fad6c034520, result=0x7fad6c039af8, setup_tables_done_option=0) at /git/10.2/sql/sql_select.cc:376
#18 0x000055c47afcbb7c in execute_sqlcom_select (thd=0x7fad6c000b00, all_tables=0x7fad6c0394d8) at /git/10.2/sql/sql_parse.cc:6477
#19 0x000055c47afc18ba in mysql_execute_command (thd=0x7fad6c000b00) at /git/10.2/sql/sql_parse.cc:3484
#20 0x000055c47afed35f in Prepared_statement::execute (this=0x7fad6c0908b0, expanded_query=0x7fad7d0c7420, open_cursor=false) at /git/10.2/sql/sql_prepare.cc:4774
#21 0x000055c47afeb6bd in Prepared_statement::execute_loop (this=0x7fad6c0908b0, expanded_query=0x7fad7d0c7420, open_cursor=false, packet=0x0, packet_end=0x0) at /git/10.2/sql/sql_prepare.cc:4203
#22 0x000055c47afe9394 in mysql_sql_stmt_execute (thd=0x7fad6c000b00) at /git/10.2/sql/sql_prepare.cc:3311
#23 0x000055c47afc18ff in mysql_execute_command (thd=0x7fad6c000b00) at /git/10.2/sql/sql_parse.cc:3500
#24 0x000055c47b3b7c64 in sp_instr_stmt::exec_core (this=0x7fad6c00a7e0, thd=0x7fad6c000b00, nextp=0x7fad7d0c8024) at /git/10.2/sql/sp_head.cc:3246
#25 0x000055c47b3b72d5 in sp_lex_keeper::reset_lex_and_exec_core (this=0x7fad6c00a820, thd=0x7fad6c000b00, nextp=0x7fad7d0c8024, open_tables=false, instr=0x7fad6c00a7e0) at /git/10.2/sql/sp_head.cc:3009
#26 0x000055c47b3b790d in sp_instr_stmt::execute (this=0x7fad6c00a7e0, thd=0x7fad6c000b00, nextp=0x7fad7d0c8024) at /git/10.2/sql/sp_head.cc:3162
#27 0x000055c47b3b2ae8 in sp_head::execute (this=0x7fad6c009168, thd=0x7fad6c000b00, merge_da_on_success=true) at /git/10.2/sql/sp_head.cc:1327
#28 0x000055c47b3b4b71 in sp_head::execute_procedure (this=0x7fad6c009168, thd=0x7fad6c000b00, args=0x7fad6c005408) at /git/10.2/sql/sp_head.cc:2116
#29 0x000055c47afbfea2 in do_execute_sp (thd=0x7fad6c000b00, sp=0x7fad6c009168) at /git/10.2/sql/sql_parse.cc:2912
#30 0x000055c47afc91f2 in mysql_execute_command (thd=0x7fad6c000b00) at /git/10.2/sql/sql_parse.cc:5825
#31 0x000055c47afcf992 in mysql_parse (thd=0x7fad6c000b00, rawbuf=0x7fad6c012478 "CALL pr()", length=9, parser_state=0x7fad7d0c9080, is_com_multi=false, is_next_command=false) at /git/10.2/sql/sql_parse.cc:8009
#32 0x000055c47afbd12d in dispatch_command (command=COM_QUERY, thd=0x7fad6c000b00, packet=0x7fad6c08c071 "CALL pr()", packet_length=9, is_com_multi=false, is_next_command=false) at /git/10.2/sql/sql_parse.cc:1824
#33 0x000055c47afbba89 in do_command (thd=0x7fad6c000b00) at /git/10.2/sql/sql_parse.cc:1378
#34 0x000055c47b10cddd in do_handle_one_connection (connect=0x55c47e4caf80) at /git/10.2/sql/sql_connect.cc:1335
#35 0x000055c47b10cb5d in handle_one_connection (arg=0x55c47e4caf80) at /git/10.2/sql/sql_connect.cc:1241
#36 0x000055c47b93a3c2 in pfs_spawn_thread (arg=0x55c47e56d780) at /git/10.2/storage/perfschema/pfs.cc:1862
#37 0x00007fad848826ba in start_thread (arg=0x7fad7d0ca700) at pthread_create.c:333
#38 0x00007fad83d1741d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109