Details
-
Bug
-
Status: Confirmed (View Workflow)
-
Major
-
Resolution: Unresolved
-
10.5.15, 10.3(EOL), 10.4(EOL), 10.5, 10.6, 10.7(EOL), 10.8(EOL)
-
None
-
Window Server 2016
MariaDB 10.5.15 (Innodb, Connect Storage Engine)
Description
*1. Error LOG*
220504 14:43:43 [ERROR] mysqld got exception 0xc0000005 ;
|
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.5.15-MariaDB-log
|
key_buffer_size=134217728
|
read_buffer_size=8388608
|
max_used_connections=11
|
max_threads=65537
|
thread_count=13
|
It is possible that mysqld could use up to
|
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 1073902023 K bytes of memory
|
Hope that's ok; if not, decrease some variables in the equation.
|
|
Thread pointer: 0x2631f66ab28
|
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...
|
ha_connect.dll!TDBJGL::`vftable'()
|
ha_connect.dll!DTVAL::FormatValue()
|
ha_connect.dll!TDBASE::MakeIndex()
|
ha_connect.dll!TYPVAL<unsigned short>::MaxVal()
|
server.dll!handler::ha_rnd_next()[handler.cc:3080]
|
server.dll!rr_sequential()[records.cc:519]
|
server.dll!sub_select()[sql_select.cc:20910]
|
server.dll!do_select()[sql_select.cc:20445]
|
server.dll!JOIN::exec_inner()[sql_select.cc:4538]
|
server.dll!JOIN::exec()[sql_select.cc:4319]
|
server.dll!mysql_select()[sql_select.cc:4797]
|
server.dll!handle_select()[sql_select.cc:444]
|
server.dll!execute_sqlcom_select()[sql_parse.cc:6314]
|
server.dll!mysql_execute_command()[sql_parse.cc:4005]
|
server.dll!sp_instr_stmt::exec_core()[sp_head.cc:3775]
|
server.dll!sp_lex_keeper::reset_lex_and_exec_core()[sp_head.cc:3499]
|
server.dll!sp_instr_stmt::execute()[sp_head.cc:3679]
|
server.dll!sp_head::execute()[sp_head.cc:1437]
|
server.dll!sp_head::execute_function()[sp_head.cc:2166]
|
server.dll!Item_sp::execute_impl()[item.cc:2879]
|
server.dll!Item_sp::execute()[item.cc:2793]
|
server.dll!Item_func_sp::execute()[item_func.cc:6648]
|
server.dll!Item_func_sp::val_int()[item_func.h:3485]
|
server.dll!Type_handler::Item_send_long()[sql_type.cc:7488]
|
server.dll!Protocol::send_result_set_row()[protocol.cc:1087]
|
server.dll!select_send::send_data()[sql_class.cc:3081]
|
server.dll!end_send()[sql_select.cc:22124]
|
server.dll!evaluate_join_record()[sql_select.cc:21144]
|
server.dll!sub_select()[sql_select.cc:20952]
|
server.dll!do_select()[sql_select.cc:20445]
|
server.dll!JOIN::exec_inner()[sql_select.cc:4538]
|
server.dll!JOIN::exec()[sql_select.cc:4319]
|
server.dll!mysql_select()[sql_select.cc:4797]
|
server.dll!handle_select()[sql_select.cc:444]
|
server.dll!execute_sqlcom_select()[sql_parse.cc:6314]
|
server.dll!mysql_execute_command()[sql_parse.cc:4005]
|
server.dll!mysql_parse()[sql_parse.cc:8104]
|
server.dll!dispatch_command()[sql_parse.cc:1894]
|
server.dll!do_command()[sql_parse.cc:1370]
|
server.dll!threadpool_process_request()[threadpool_common.cc:370]
|
server.dll!tp_callback()[threadpool_common.cc:194]
|
ntdll.dll!RtlReleaseSRWLockExclusive()
|
ntdll.dll!RtlReleaseSRWLockExclusive()
|
KERNEL32.DLL!BaseThreadInitThunk()
|
ntdll.dll!RtlUserThreadStart()
|
|
Trying to get some variables.
|
Some pointers may be invalid and cause the dump to abort.
|
Query (0x2631f81afe8): select
|
|
count(closing_status) into vCloseCnt
|
|
from CBO_EA_AP_PERIOD_V
|
|
where NAME_CONST('pPOST_DT',_utf8'20200115' COLLATE 'utf8_general_ci') >= date_format(start_date,'%Y%m%d')
|
|
and NAME_CONST('pPOST_DT',_utf8'20200115' COLLATE 'utf8_general_ci') <= date_Format(end_date,'%Y%m%d')
|
|
and period_num <> 13
|
|
and closing_status <> 'O'
|
|
|
Connection ID (thread ID): 5
|
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=on,table_elimination=on,extended_keys=on,exists_to_in=on,orderby_uses_equalities=on,condition_pushdown_for_derived=on,split_materialized=on,condition_pushdown_for_subquery=on,rowid_filter=on,condition_pushdown_from_having=on,not_null_range_scan=off
|
|
The manual page at https://mariadb.com/kb/en/how-to-produce-a-full-stack-trace-for-mysqld/ contains
|
information that should help you find out what is causing the crash.
|
Writing a core file at D:\MariaDB_DIAEACCT_NEW\MariaDB_DATA\
|
Minidump written to D:\MariaDB_DIAEACCT_NEW\MariaDB_DATA\mysqld.dmp
|
|
*2. Test*
|
* -- Connect Table Create* |
CREATE TABLE `cbo_ea_ap_period_v` ( |
`PERIOD_NAME` varchar(15) NOT NULL, |
`CLOSING_STATUS` varchar(1) NOT NULL, |
`START_DATE` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), |
`END_DATE` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', |
`PERIOD_YEAR` decimal(17,0) NOT NULL, |
`PERIOD_NUM` decimal(17,0) NOT NULL) |
ENGINE=CONNECT DEFAULT CHARSET=euckr CONNECTION='DSN=TDIA_DIAT;UID=cboeacct;PWD=cboeacct' `TABLE_TYPE`='ODBC' `TABNAME`='CBO_EA_AP_PERIOD_V' `DBNAME`='APPS' `OPTION_LIST`='memory=2'; |
|
* -- Function Create* |
CREATE or replace DEFINER=``@`%` FUNCTION `fn_ap_close_test`(pPOST_DT varchar(8) |
) RETURNS int(11) |
begin
|
DECLARE vCloseCnt int; |
select |
count(closing_status) into vCloseCnt |
from CBO_EA_AP_PERIOD_V |
where pPOST_DT >= date_format(start_date,'%Y%m%d') |
and pPOST_DT <= date_Format(end_date,'%Y%m%d') |
and period_num <> 13 |
and closing_status <> 'O' |
;
|
RETURN vCloseCnt; |
|
end
|
|
|
* -- Select Function* |
select fn_ap_close_test(GR.post_dt) |
from TB_SLIP_GR GR |
where GR_SLIP_NO in ('GR202001-02892') |
; <<= 1row Select Success |
|
select fn_ap_close_test(GR.post_dt) |
from TB_SLIP_GR GR |
where GR_SLIP_NO in ('GR202001-02892','GR202001-02858') |
; *<<= Crash if check more than 2 lines+ |
|