Type:
Bug
Priority:
Major
Resolution:
Unresolved
Affects Version/s:
11.4
CS 11.4.6 ef966af801afc2a07222b5df65dddd52c77431dd (Optimized) Build 15/02/2025
InnoDB: Failing assertion: t->id != table->id
CS 11.4.6 ef966af801afc2a07222b5df65dddd52c77431dd (Optimized) Build 15/02/2025
Core was generated by `/test/MD150225-mariadb-11.4.6-linux-x86_64-opt/bin/mariadbd --no-defaults --max'.
Program terminated with signal SIGABRT, Aborted.
#0 __pthread_kill_implementation (no_tid=0, signo=6, threadid=<optimized out>)at ./nptl/pthread_kill.c:44
[Current thread is 1 (LWP 57378)]
(gdb) bt
#0 __pthread_kill_implementation (no_tid=0, signo=6, threadid=<optimized out>)at ./nptl/pthread_kill.c:44
#1 __pthread_kill_internal (signo=6, threadid=<optimized out>)at ./nptl/pthread_kill.c:78
#2 __GI___pthread_kill (threadid=<optimized out>, signo=signo@entry=6)at ./nptl/pthread_kill.c:89
#3 0x000014cbb8a4526e in __GI_raise (sig=sig@entry=6)at ../sysdeps/posix/raise.c:26
#4 0x000014cbb8a288ff in __GI_abort () at ./stdlib/abort.c:79
#5 0x000055c6ef177506 in ut_dbg_assertion_failed (expr=0x55c6efc9d2a4 "t->id != table->id", file=0x55c6efc9cc25 "/test/11.4_opt/storage/innobase/dict/dict0dict.cc", line=line@entry=1201) at /test/11.4_opt/storage/innobase/ut/ut0dbg.cc:60
#6 0x000055c6ef92e28a in dict_sys_t::add(dict_table_t*)::{lambda(dict_table_t const*)#2}::operator()(dict_table_t const*) const (t=<optimized out>, this=<optimized out>)at /test/11.4_opt/storage/innobase/dict/dict0dict.cc:1201
#7 hash_cell_t::search<dict_table_t, dict_sys_t::add(dict_table_t*)::{lambda(dict_table_t const*)#2}>(dict_table_t* dict_table_t::*, dict_sys_t::add(dict_table_t*)::{lambda(dict_table_t const*)#2}) (next=&dict_table_t::id_hash, u={table = 0x14cb540536c0}, this=<optimized out>) at include/hash0hash.h:89
#8 dict_sys_t::add (this=0x55c6f04da580 <dict_sys>, table=0x14cb540536c0)at /test/11.4_opt/storage/innobase/dict/dict0dict.cc:1197
#9 0x000055c6ef93260d in dict_load_table_one (name=@0x14cbb1766f80: {data_ = 0x14cbb1767240 "test/t1#P#p10", size_ = 13}, ignore_err=ignore_err@entry=DICT_ERR_IGNORE_FK_NOKEY, fk_tables=std::deque with 0 elements)at /test/11.4_opt/storage/innobase/dict/dict0load.cc:2416
#10 0x000055c6ef9311d7 in dict_sys_t::load_table (this=0x55c6f04da580 <dict_sys>, name=@0x14cbb1766f80: {data_ = 0x14cbb1767240 "test/t1#P#p10", size_ = 13}, ignore=DICT_ERR_IGNORE_FK_NOKEY)at /test/11.4_opt/storage/innobase/dict/dict0load.cc:2550
#11 0x000055c6ef924fa5 in dict_table_open_on_name (table_name=table_name@entry=0x14cbb1767240 "test/t1#P#p10", dict_locked=false, ignore_err=ignore_err@entry=DICT_ERR_IGNORE_FK_NOKEY)at /test/11.4_opt/storage/innobase/dict/dict0dict.cc:1108
#12 0x000055c6ef7ddf64 in ha_innobase::open_dict_table (norm_name=0x14cbb1767240 "test/t1#P#p10", ignore_err=DICT_ERR_IGNORE_FK_NOKEY, is_partition=<optimized out>)at /test/11.4_opt/storage/innobase/handler/ha_innodb.cc:6139
#13 ha_innobase::open (this=0x14cb542a1dc8, name=0x14cbb1767570 "./test/t1#P#p10")at /test/11.4_opt/storage/innobase/handler/ha_innodb.cc:5844
#14 0x000055c6ef524d56 in handler::ha_open (this=0x14cb542a1dc8, table_arg=<optimized out>, name=0x14cbb1767570 "./test/t1#P#p10", mode=2, test_if_locked=1042, mem_root=0x0, partitions_to_open=0x0)at /test/11.4_opt/sql/handler.cc:3592
#15 0x000055c6ef745faf in ha_partition::open_read_partitions (this=this@entry=0x14cb54260d58, name_buff=name_buff@entry=0x14cbb1767570 "./test/t1#P#p10", name_buff_size=name_buff_size@entry=513)at /test/11.4_opt/sql/ha_partition.cc:8931
#16 0x000055c6ef745b19 in ha_partition::open (this=0x14cb54260d58, name=0x14cb542656c0 "./test/t1", mode=<optimized out>, test_if_locked=<optimized out>) at /test/11.4_opt/sql/ha_partition.cc:3920
#17 0x000055c6ef524d56 in handler::ha_open (this=0x14cb54260d58, table_arg=<optimized out>, name=0x14cb542656c0 "./test/t1", mode=2, test_if_locked=18, mem_root=0x0, partitions_to_open=0x0)at /test/11.4_opt/sql/handler.cc:3592
#18 0x000055c6ef3b00ad in open_table_from_share (thd=thd@entry=0x14cb54000c68, share=share@entry=0x14cb542651c0, alias=alias@entry=0x14cb54018548, db_stat=db_stat@entry=33, prgflag=prgflag@entry=8, ha_open_flags=<optimized out>, outparam=0x14cb54240c38, is_create_table=<optimized out>, partitions_to_open=0x0)at /test/11.4_opt/sql/table.cc:4611
#19 0x000055c6ef250d46 in open_table (thd=0x14cb54000c68, table_list=table_list@entry=0x14cb54018500, ot_ctx=ot_ctx@entry=0x14cbb1767ba0) at /test/11.4_opt/sql/sql_base.cc:2263
#20 0x000055c6ef253b17 in open_and_process_table (thd=0x14cb54000c68, tables=0x14cb54018500, counter=0x14cbb1767e4c, flags=0, prelocking_strategy=0x14cbb1768070, ot_ctx=0x14cbb1767ba0, has_prelocking_list=<optimized out>) at /test/11.4_opt/sql/sql_base.cc:4196
#21 open_tables (thd=thd@entry=0x14cb54000c68, options=@0x14cb540064d0: {m_options = DDL_options_st::OPT_NONE}, start=start@entry=0x14cbb1767e40, counter=counter@entry=0x14cbb1767e4c, flags=flags@entry=0, prelocking_strategy=prelocking_strategy@entry=0x14cbb1768070)at /test/11.4_opt/sql/sql_base.cc:4682
#22 0x000055c6ef255454 in open_and_lock_tables (thd=0xd7f5, thd@entry=0x14cb54000c68, options=<error reading variable: Cannot access memory at address 0xe022>, tables=0x14cb54017418, derived=true, flags=398, flags@entry=0, prelocking_strategy=0x0, prelocking_strategy@entry=0x14cbb1768070)at /test/11.4_opt/sql/sql_base.cc:5656
#23 0x000055c6ef2c3cdc in open_and_lock_tables (thd=0x14cb54000c68, tables=0x6, derived=true, flags=0) at /test/11.4_opt/sql/sql_base.h:532
#24 mysql_execute_command (thd=thd@entry=0x14cb54000c68, is_called_from_prepared_stmt=<optimized out>)at /test/11.4_opt/sql/sql_parse.cc:4573
#25 0x000055c6ef2bc7e1 in mysql_parse (thd=thd@entry=0x14cb54000c68, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x14cbb1768490)at /test/11.4_opt/sql/sql_parse.cc:7907
#26 0x000055c6ef2bac99 in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x14cb54000c68, packet=packet@entry=0x14cb540087e9 "INSERT INTO t1(g) SELECT ST_GeomFromWKB(ST_AsBinary(g)) FROM t1 ORDER BY pk", packet_length=packet_length@entry=75, blocking=true) at /test/11.4_opt/sql/sql_parse.cc:1904
#27 0x000055c6ef2bcbf1 in do_command (thd=thd@entry=0x14cb54000c68, blocking=true) at /test/11.4_opt/sql/sql_parse.cc:1417
#28 0x000055c6ef3e479d in do_handle_one_connection (connect=<optimized out>, connect@entry=0x55c6f3542c08, put_in_cache=true)at /test/11.4_opt/sql/sql_connect.cc:1408
#29 0x000055c6ef3e4563 in handle_one_connection (arg=arg@entry=0x55c6f3542c08)at /test/11.4_opt/sql/sql_connect.cc:1320
#30 0x000055c6ef753a4e in pfs_spawn_thread (arg=0x55c6f34ef758)at /test/11.4_opt/storage/perfschema/pfs.cc:2201
#31 0x000014cbb8a9ca94 in start_thread (arg=<optimized out>)at ./nptl/pthread_create.c:447
#32 0x000014cbb8b29c3c in clone3 ()at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78
I am working on a testcase
relates to
MDEV-23256
SIGSEGV's in Query_cache::unlink_table, my_hash_delete, Query_cache::double_linked_list_exclude, Assertion `table_block_data->m_cached_query_count >= 0', InnoDB assertion: table->foreign_set.empty(), ASAN: heap-buffer-overflow in Query_cache_block::init
Closed
{"report":{"fcp":968.1999998092651,"ttfb":292.19999980926514,"pageVisibility":"visible","entityId":132858,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"4b6d8998-5ece-447d-a623-15f27136c09b","navigationType":0,"readyForUser":1052.1999998092651,"redirectCount":0,"resourceLoadedEnd":1220.6000003814697,"resourceLoadedStart":297.4000005722046,"resourceTiming":[{"duration":198.79999923706055,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":297.4000005722046,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":297.4000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":496.19999980926514,"responseStart":0,"secureConnectionStart":0},{"duration":198.80000019073486,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bv2/820016/12ta74/2380add21a9a1006587582385952de73/_/download/contextbatch/css/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":297.69999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":297.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":496.5,"responseStart":0,"secureConnectionStart":0},{"duration":207.79999923706055,"initiatorType":"script","name":"https://jira.mariadb.org/s/e9b27a47da5fb0f74a35acd57e9847fb-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":297.9000005722046,"connectEnd":297.9000005722046,"connectStart":297.9000005722046,"domainLookupEnd":297.9000005722046,"domainLookupStart":297.9000005722046,"fetchStart":297.9000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":297.9000005722046,"responseEnd":505.69999980926514,"responseStart":505.6000003814697,"secureConnectionStart":297.9000005722046},{"duration":263.80000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/c32eb0da7ad9831253f8397e6cc26afd-CDN/lu2bv2/820016/12ta74/2380add21a9a1006587582385952de73/_/download/contextbatch/js/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true","startTime":298.1000003814697,"connectEnd":298.1000003814697,"connectStart":298.1000003814697,"domainLookupEnd":298.1000003814697,"domainLookupStart":298.1000003814697,"fetchStart":298.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":298.1000003814697,"responseEnd":561.9000005722046,"responseStart":561.9000005722046,"secureConnectionStart":298.1000003814697},{"duration":267.6000003814697,"initiatorType":"script","name":"https://jira.mariadb.org/s/bc0bcb146314416123c992714ee00ff7-CDN/lu2bv2/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":298.30000019073486,"connectEnd":298.30000019073486,"connectStart":298.30000019073486,"domainLookupEnd":298.30000019073486,"domainLookupStart":298.30000019073486,"fetchStart":298.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":298.30000019073486,"responseEnd":565.9000005722046,"responseStart":565.9000005722046,"secureConnectionStart":298.30000019073486},{"duration":268,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":298.5,"connectEnd":298.5,"connectStart":298.5,"domainLookupEnd":298.5,"domainLookupStart":298.5,"fetchStart":298.5,"redirectEnd":0,"redirectStart":0,"requestStart":298.5,"responseEnd":566.5,"responseStart":566.5,"secureConnectionStart":298.5},{"duration":268.19999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":298.6000003814697,"connectEnd":298.6000003814697,"connectStart":298.6000003814697,"domainLookupEnd":298.6000003814697,"domainLookupStart":298.6000003814697,"fetchStart":298.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":298.6000003814697,"responseEnd":566.8000001907349,"responseStart":566.8000001907349,"secureConnectionStart":298.6000003814697},{"duration":353.69999980926514,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bv2/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":298.80000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":298.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":652.5,"responseStart":0,"secureConnectionStart":0},{"duration":268.30000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":299,"connectEnd":299,"connectStart":299,"domainLookupEnd":299,"domainLookupStart":299,"fetchStart":299,"redirectEnd":0,"redirectStart":0,"requestStart":299,"responseEnd":567.3000001907349,"responseStart":567.3000001907349,"secureConnectionStart":299},{"duration":353.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bv2/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/css/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.css?jira.create.linked.issue=true","startTime":299.19999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":299.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":652.6999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":268.80000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/719848dd97ebe0663199f49a3936487a-CDN/lu2bv2/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/js/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.js?jira.create.linked.issue=true&locale=en","startTime":299.30000019073486,"connectEnd":299.30000019073486,"connectStart":299.30000019073486,"domainLookupEnd":299.30000019073486,"domainLookupStart":299.30000019073486,"fetchStart":299.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":299.30000019073486,"responseEnd":568.1000003814697,"responseStart":568.1000003814697,"secureConnectionStart":299.30000019073486},{"duration":721.8999996185303,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":304.9000005722046,"connectEnd":304.9000005722046,"connectStart":304.9000005722046,"domainLookupEnd":304.9000005722046,"domainLookupStart":304.9000005722046,"fetchStart":304.9000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":304.9000005722046,"responseEnd":1026.8000001907349,"responseStart":1026.8000001907349,"secureConnectionStart":304.9000005722046},{"duration":915.6999998092651,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bv2/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":304.9000005722046,"connectEnd":304.9000005722046,"connectStart":304.9000005722046,"domainLookupEnd":304.9000005722046,"domainLookupStart":304.9000005722046,"fetchStart":304.9000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":304.9000005722046,"responseEnd":1220.6000003814697,"responseStart":1220.6000003814697,"secureConnectionStart":304.9000005722046},{"duration":363.6000003814697,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":663.6999998092651,"connectEnd":663.6999998092651,"connectStart":663.6999998092651,"domainLookupEnd":663.6999998092651,"domainLookupStart":663.6999998092651,"fetchStart":663.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":663.6999998092651,"responseEnd":1027.3000001907349,"responseStart":1027.3000001907349,"secureConnectionStart":663.6999998092651},{"duration":260.20000076293945,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":961.6999998092651,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":961.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1221.9000005722046,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":142,"responseStart":292,"responseEnd":298,"domLoading":295,"domInteractive":1239,"domContentLoadedEventStart":1239,"domContentLoadedEventEnd":1280,"domComplete":2248,"loadEventStart":2248,"loadEventEnd":2249,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1222.8000001907349},{"name":"bigPipe.sidebar-id.end","time":1223.8000001907349},{"name":"bigPipe.activity-panel-pipe-id.start","time":1223.9000005722046},{"name":"bigPipe.activity-panel-pipe-id.end","time":1226.1999998092651},{"name":"activityTabFullyLoaded","time":1286.5}],"measures":[],"correlationId":"23e9763c83811e","effectiveType":"4g","downlink":9.4,"rtt":0,"serverDuration":86,"dbReadsTimeInMs":10,"dbConnsTimeInMs":17,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}