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":1449.800000011921,"ttfb":651.1000000089407,"pageVisibility":"visible","entityId":132858,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"4b013164-5584-4805-b000-9bf0214ec78c","navigationType":0,"readyForUser":1526.7000000029802,"redirectCount":0,"resourceLoadedEnd":1141.6000000089407,"resourceLoadedStart":657.8000000119209,"resourceTiming":[{"duration":151.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":657.8000000119209,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":657.8000000119209,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":809.3000000119209,"responseStart":0,"secureConnectionStart":0},{"duration":151.6000000089407,"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":658,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":658,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":809.6000000089407,"responseStart":0,"secureConnectionStart":0},{"duration":364.29999999701977,"initiatorType":"script","name":"https://jira.mariadb.org/s/e9b27a47da5fb0f74a35acd57e9847fb-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":658.3000000119209,"connectEnd":658.3000000119209,"connectStart":658.3000000119209,"domainLookupEnd":658.3000000119209,"domainLookupStart":658.3000000119209,"fetchStart":658.3000000119209,"redirectEnd":0,"redirectStart":0,"requestStart":813.2000000029802,"responseEnd":1022.6000000089407,"responseStart":839.3000000119209,"secureConnectionStart":658.3000000119209},{"duration":483.1000000089407,"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":658.5,"connectEnd":658.5,"connectStart":658.5,"domainLookupEnd":658.5,"domainLookupStart":658.5,"fetchStart":658.5,"redirectEnd":0,"redirectStart":0,"requestStart":813.9000000059605,"responseEnd":1141.6000000089407,"responseStart":858.2000000029802,"secureConnectionStart":658.5},{"duration":192.79999999701977,"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":658.7000000029802,"connectEnd":658.7000000029802,"connectStart":658.7000000029802,"domainLookupEnd":658.7000000029802,"domainLookupStart":658.7000000029802,"fetchStart":658.7000000029802,"redirectEnd":0,"redirectStart":0,"requestStart":814.4000000059605,"responseEnd":851.5,"responseStart":842.5,"secureConnectionStart":658.7000000029802},{"duration":194,"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":658.9000000059605,"connectEnd":658.9000000059605,"connectStart":658.9000000059605,"domainLookupEnd":658.9000000059605,"domainLookupStart":658.9000000059605,"fetchStart":658.9000000059605,"redirectEnd":0,"redirectStart":0,"requestStart":815.3000000119209,"responseEnd":852.9000000059605,"responseStart":844.6000000089407,"secureConnectionStart":658.9000000059605},{"duration":193.90000000596046,"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":659.2000000029802,"connectEnd":659.2000000029802,"connectStart":659.2000000029802,"domainLookupEnd":659.2000000029802,"domainLookupStart":659.2000000029802,"fetchStart":659.2000000029802,"redirectEnd":0,"redirectStart":0,"requestStart":819.5,"responseEnd":853.1000000089407,"responseStart":845.9000000059605,"secureConnectionStart":659.2000000029802},{"duration":155.69999998807907,"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":659.3000000119209,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":659.3000000119209,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":815,"responseStart":0,"secureConnectionStart":0},{"duration":195.6000000089407,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":659.5,"connectEnd":659.5,"connectStart":659.5,"domainLookupEnd":659.5,"domainLookupStart":659.5,"fetchStart":659.5,"redirectEnd":0,"redirectStart":0,"requestStart":821.4000000059605,"responseEnd":855.1000000089407,"responseStart":847.7000000029802,"secureConnectionStart":659.5},{"duration":158,"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":659.6000000089407,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":659.6000000089407,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":817.6000000089407,"responseStart":0,"secureConnectionStart":0},{"duration":197.3999999910593,"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":659.8000000119209,"connectEnd":659.8000000119209,"connectStart":659.8000000119209,"domainLookupEnd":659.8000000119209,"domainLookupStart":659.8000000119209,"fetchStart":659.8000000119209,"redirectEnd":0,"redirectStart":0,"requestStart":824.8000000119209,"responseEnd":857.2000000029802,"responseStart":853.5,"secureConnectionStart":659.8000000119209},{"duration":453.79999999701977,"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":660.7000000029802,"connectEnd":660.7000000029802,"connectStart":660.7000000029802,"domainLookupEnd":660.7000000029802,"domainLookupStart":660.7000000029802,"fetchStart":660.7000000029802,"redirectEnd":0,"redirectStart":0,"requestStart":970.3000000119209,"responseEnd":1114.5,"responseStart":1110.300000011921,"secureConnectionStart":660.7000000029802},{"duration":465.69999998807907,"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":660.8000000119209,"connectEnd":660.8000000119209,"connectStart":660.8000000119209,"domainLookupEnd":660.8000000119209,"domainLookupStart":660.8000000119209,"fetchStart":660.8000000119209,"redirectEnd":0,"redirectStart":0,"requestStart":1112.9000000059605,"responseEnd":1126.5,"responseStart":1124.800000011921,"secureConnectionStart":660.8000000119209},{"duration":190.29999999701977,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1153.7000000029802,"connectEnd":1153.7000000029802,"connectStart":1153.7000000029802,"domainLookupEnd":1153.7000000029802,"domainLookupStart":1153.7000000029802,"fetchStart":1153.7000000029802,"redirectEnd":0,"redirectStart":0,"requestStart":1304,"responseEnd":1344,"responseStart":1342.300000011921,"secureConnectionStart":1153.7000000029802},{"duration":219.80000001192093,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1395,"connectEnd":1395,"connectStart":1395,"domainLookupEnd":1395,"domainLookupStart":1395,"fetchStart":1395,"redirectEnd":0,"redirectStart":0,"requestStart":1576.2000000029802,"responseEnd":1614.800000011921,"responseStart":1613.800000011921,"secureConnectionStart":1395}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":443,"responseStart":651,"responseEnd":654,"domLoading":655,"domInteractive":1634,"domContentLoadedEventStart":1634,"domContentLoadedEventEnd":1698,"domComplete":2015,"loadEventStart":2015,"loadEventEnd":2016,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1602.4000000059605},{"name":"bigPipe.sidebar-id.end","time":1603.2000000029802},{"name":"bigPipe.activity-panel-pipe-id.start","time":1603.300000011921},{"name":"bigPipe.activity-panel-pipe-id.end","time":1606.1000000089407},{"name":"activityTabFullyLoaded","time":1714.1000000089407}],"measures":[],"correlationId":"5b2cb4b5cb5525","effectiveType":"4g","downlink":9.4,"rtt":0,"serverDuration":122,"dbReadsTimeInMs":12,"dbConnsTimeInMs":21,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Preliminary testcase (sporadic)