[MDEV-11575] [Draft] Assertion failed: _CrtIsValidHeapPointer(pUserData) Created: 2016-12-14  Updated: 2018-08-06  Resolved: 2018-08-06

Status: Closed
Project: MariaDB Server
Component/s: OTHER
Affects Version/s: 10.2
Fix Version/s: N/A

Type: Bug Priority: Major
Reporter: Elena Stepanova Assignee: Elena Stepanova
Resolution: Incomplete Votes: 0
Labels: None


 Description   

http://buildbot.askmonty.org/buildbot/builders/win-rqg-se/builds/2954/steps/rqg_crash_tests/logs/stdio

########### E:\buildbot\bbwin1\win-rqg-se\build\..\..\..\vardirs\10.2-2954\optim-crash-tests\trial12.log (STATUS_SERVER_CRASHED): ###########
 
### Last interesting lines from the error log of server 1 ###
 
2016-12-14  5:13:08 324 [ERROR] mysqld.exe: Deadlock found when trying to get lock; try restarting transaction
2016-12-14  5:13:09 2996 [ERROR] mysqld.exe: Deadlock found when trying to get lock; try restarting transaction
f:\dd\vctools\crt\crtw32\misc\dbgheap.c(1322) : Assertion failed: _CrtIsValidHeapPointer(pUserData)
161214  5:13:44 [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.2.3-MariaDB-debug-log
key_buffer_size=1048576
read_buffer_size=131072
max_used_connections=7
max_threads=1001
thread_count=12
It is possible that mysqld could use up to 
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 388192 K  bytes of memory
Hope that's ok; if not, decrease some variables in the equation.
 
Thread pointer: 0x0xcad95befd8
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...
mysqld.exe!_output_s_l()[output.c:1648]
mysqld.exe!_vsnprintf_helper()[vsprintf.c:140]
mysqld.exe!_vsnprintf_s_l()[vsprintf.c:288]
mysqld.exe!_vsnprintf_s()[vsprintf.c:341]
mysqld.exe!_VCrtDbgReportA()[dbgrptt.c:301]
mysqld.exe!_CrtDbgReportV()[dbgrpt.c:263]
mysqld.exe!_CrtDbgReport()[dbgrpt.c:279]
mysqld.exe!_free_dbg_nolock()[dbgheap.c:1345]
mysqld.exe!_free_dbg()[dbgheap.c:1265]
mysqld.exe!free()[dbgfree.c:50]
mysqld.exe!row_prebuilt_free()[row0mysql.cc:1048]
mysqld.exe!ha_innobase::close()[ha_innodb.cc:7401]
mysqld.exe!handler::ha_close()[handler.cc:2565]
mysqld.exe!closefrm()[table.cc:3368]
mysqld.exe!intern_close_table()[table_cache.cc:223]
mysqld.exe!tc_remove_table()[table_cache.cc:261]
mysqld.exe!tc_release_table()[table_cache.cc:462]
mysqld.exe!close_thread_table()[sql_base.cc:884]
mysqld.exe!close_thread_tables()[sql_base.cc:831]
mysqld.exe!mysql_execute_command()[sql_parse.cc:6177]
mysqld.exe!mysql_parse()[sql_parse.cc:7790]
mysqld.exe!dispatch_command()[sql_parse.cc:1802]
mysqld.exe!do_command()[sql_parse.cc:1359]
mysqld.exe!threadpool_process_request()[threadpool_common.cc:319]
mysqld.exe!tp_callback()[threadpool_common.cc:158]
mysqld.exe!tp_callback()[threadpool_win.cc:378]
mysqld.exe!work_callback()[threadpool_win.cc:452]
ntdll.dll!RtlFreeUnicodeString()
ntdll.dll!RtlFreeUnicodeString()
KERNEL32.DLL!BaseThreadInitThunk()
ntdll.dll!RtlUserThreadStart()
 
Trying to get some variables.
Some pointers may be invalid and cause the dump to abort.
Query (0xcae046af90): CREATE TABLE transforms.insert_select_2132 SELECT field1, min(field2) as field2, max(field3) as field3, count(field4) as field4 FROM table_multipart WHERE field2 < 4 GROUP BY field1 /* QUERY_NO 5324 CON_ID 17 */  /* QUERY_NO 5337 CON_ID 17 */
Connection ID (thread ID): 17
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



 Comments   
Comment by Elena Stepanova [ 2016-12-19 ]

http://buildbot.askmonty.org/buildbot/builders/win-rqg-se/builds/2961/steps/rqg_crash_tests/logs/stdio

mysqld.exe!_output_s_l()[output.c:1648]
mysqld.exe!_vsnprintf_helper()[vsprintf.c:140]
mysqld.exe!_vsnprintf_s_l()[vsprintf.c:288]
mysqld.exe!_vsnprintf_s()[vsprintf.c:341]
mysqld.exe!_VCrtDbgReportA()[dbgrptt.c:301]
mysqld.exe!_CrtDbgReportV()[dbgrpt.c:263]
mysqld.exe!_CrtDbgReport()[dbgrpt.c:279]
mysqld.exe!_free_dbg_nolock()[dbgheap.c:1353]
mysqld.exe!_free_dbg()[dbgheap.c:1265]
mysqld.exe!free()[dbgfree.c:50]
mysqld.exe!row_prebuilt_free()[row0mysql.cc:1048]
mysqld.exe!ha_innobase::close()[ha_innodb.cc:7412]
mysqld.exe!handler::ha_close()[handler.cc:2565]
mysqld.exe!closefrm()[table.cc:3368]
mysqld.exe!intern_close_table()[table_cache.cc:223]
mysqld.exe!tdc_remove_table()[table_cache.cc:1130]
mysqld.exe!mysql_admin_table()[sql_admin.cc:1124]
mysqld.exe!Sql_cmd_analyze_table::execute()[sql_admin.cc:1272]
mysqld.exe!mysql_execute_command()[sql_parse.cc:6116]
mysqld.exe!mysql_parse()[sql_parse.cc:7790]
mysqld.exe!dispatch_command()[sql_parse.cc:1802]
mysqld.exe!do_command()[sql_parse.cc:1359]
mysqld.exe!threadpool_process_request()[threadpool_common.cc:319]
mysqld.exe!tp_callback()[threadpool_common.cc:158]
mysqld.exe!tp_callback()[threadpool_win.cc:378]
mysqld.exe!work_callback()[threadpool_win.cc:452]
ntdll.dll!RtlFreeUnicodeString()
ntdll.dll!RtlFreeUnicodeString()
KERNEL32.DLL!BaseThreadInitThunk()
ntdll.dll!RtlUserThreadStart()
 
Trying to get some variables.
Some pointers may be invalid and cause the dump to abort.
Query (0xb59ae3eff0): ANALYZE TABLE a,aa,b,bb,c,cc,d,dd,e,table_merge,table_merge_child,table_multipart,table_partitioned,table_standard,table_virtual /* QUERY_NO 4322 CON_ID 16 */
Connection ID (thread ID): 16
Status: NOT_KILLED

Comment by Elena Stepanova [ 2018-08-06 ]

Unfortunately I didn't store the test command line, so this record is useless.

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