SET GLOBAL join_buffer_space_limit=4095;
|
SET join_buffer_space_limit=DEFAULT;
|
CREATE TEMPORARY TABLE t (e INT,c CHAR(100),c2 CHAR(100),PRIMARY KEY(e),INDEX a(c)) ENGINE=InnoDB;
|
INSERT INTO t SELECT a.* FROM t a,t b,t c,t d,t e;
|
Leads to:
10.6.0 27d66d644cf2ebe9201e0362f2050036cce2908a (Debug)
|
Core was generated by `/test/MD260221-mariadb-10.6.0-linux-x86_64-dbg/bin/mysqld --no-defaults --core-'.
|
Program terminated with signal SIGABRT, Aborted.
|
#0 __pthread_kill (threadid=<optimized out>, signo=signo@entry=6)
|
at ../sysdeps/unix/sysv/linux/pthread_kill.c:56
|
[Current thread is 1 (Thread 0x1545800d8700 (LWP 2932073))]
|
(gdb) bt
|
#0 __pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at ../sysdeps/unix/sysv/linux/pthread_kill.c:56
|
#1 0x00005562dea58ab8 in my_write_core (sig=sig@entry=6) at /test/10.6_dbg/mysys/stacktrace.c:424
|
#2 0x00005562de1ed317 in handle_fatal_signal (sig=6) at /test/10.6_dbg/sql/signal_handler.cc:331
|
#3 <signal handler called>
|
#4 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
|
#5 0x000015458173d859 in __GI_abort () at abort.c:79
|
#6 0x00005562dea74fd5 in DbugExit (why=why@entry=0x1545800d66e0 "missing DBUG_RETURN or DBUG_VOID_RETURN macro in function \"my_malloc\"\n") at /test/10.6_dbg/dbug/dbug.c:2043
|
#7 0x00005562dea76f86 in _db_return_ (_stack_frame_=_stack_frame_@entry=0x1545800d6940) at /test/10.6_dbg/dbug/dbug.c:1210
|
#8 0x00005562dea53cb5 in my_malloc (key=0, size=18446744073709551409, my_flags=my_flags@entry=65536) at /test/10.6_dbg/mysys/my_malloc.c:116
|
#9 0x00005562de0c8372 in JOIN_CACHE::alloc_buffer (this=this@entry=0x154538033bd8) at /test/10.6_dbg/sql/sql_join_cache.cc:940
|
#10 0x00005562de0c8b0f in JOIN_CACHE::init (this=this@entry=0x154538033bd8, for_explain=for_explain@entry=false) at /test/10.6_dbg/sql/sql_join_cache.cc:1073
|
#11 0x00005562de0c8bec in JOIN_CACHE_BNL::init (this=0x154538033bd8, for_explain=<optimized out>) at /test/10.6_dbg/sql/sql_join_cache.cc:3634
|
#12 0x00005562ddfa1928 in JOIN::init_join_cache_and_keyread (this=this@entry=0x1545380176b8) at /test/10.6_dbg/sql/sql_select.cc:29461
|
#13 0x00005562ddfa6595 in JOIN::optimize_stage2 (this=this@entry=0x1545380176b8) at /test/10.6_dbg/sql/sql_select.cc:3000
|
#14 0x00005562ddfa808b in JOIN::optimize_inner (this=this@entry=0x1545380176b8) at /test/10.6_dbg/sql/sql_select.cc:2282
|
#15 0x00005562ddfa82b6 in JOIN::optimize (this=this@entry=0x1545380176b8) at /test/10.6_dbg/sql/sql_select.cc:1628
|
#16 0x00005562ddfa8c07 in mysql_select (thd=thd@entry=0x154538000db8, tables=0x154538014948, fields=@0x154538014490: {<base_list> = {<Sql_alloc> = {<No data fields>}, first = 0x1545380148f0, last = 0x154538018048, elements = 3}, <No data fields>}, conds=0x0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2202244745984, result=0x154538017600, unit=0x154538004f88, select_lex=0x154538014340) at /test/10.6_dbg/sql/sql_select.cc:4716
|
#17 0x00005562ddfa8f1c in handle_select (thd=thd@entry=0x154538000db8, lex=lex@entry=0x154538004ec0, result=result@entry=0x154538017600, setup_tables_done_option=setup_tables_done_option@entry=1073741824) at /test/10.6_dbg/sql/sql_select.cc:417
|
#18 0x00005562ddf2a910 in mysql_execute_command (thd=thd@entry=0x154538000db8) at /test/10.6_dbg/sql/sql_parse.cc:4665
|
#19 0x00005562ddf14cdc in mysql_parse (thd=thd@entry=0x154538000db8, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x1545800d73d0) at /test/10.6_dbg/sql/sql_parse.cc:7972
|
#20 0x00005562ddf22b3b in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x154538000db8, packet=packet@entry=0x15453800b319 "INSERT INTO t SELECT a.* FROM t a,t b,t c,t d,t e", packet_length=packet_length@entry=49, blocking=blocking@entry=true) at /test/10.6_dbg/sql/sql_class.h:1295
|
#21 0x00005562ddf25fbe in do_command (thd=0x154538000db8, blocking=blocking@entry=true) at /test/10.6_dbg/sql/sql_parse.cc:1397
|
#22 0x00005562de081c2e in do_handle_one_connection (connect=<optimized out>, connect@entry=0x5562e1166148, put_in_cache=put_in_cache@entry=true) at /test/10.6_dbg/sql/sql_connect.cc:1410
|
#23 0x00005562de082331 in handle_one_connection (arg=arg@entry=0x5562e1166148) at /test/10.6_dbg/sql/sql_connect.cc:1312
|
#24 0x00005562de5369b9 in pfs_spawn_thread (arg=0x5562e1097c28) at /test/10.6_dbg/storage/perfschema/pfs.cc:2201
|
#25 0x0000154581c4b609 in start_thread (arg=<optimized out>) at pthread_create.c:477
|
#26 0x000015458183a293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
|
Bug confirmed present in:
MariaDB: 10.5.10 (dbg), 10.6.0 (dbg)
Bug (or feature/syntax) confirmed not present in:
MariaDB: 10.2.38 (dbg), 10.2.38 (opt), 10.3.29 (dbg), 10.3.29 (opt), 10.4.19 (dbg), 10.4.19 (opt), 10.5.10 (opt), 10.6.0 (opt)
MySQL: 5.5.62 (dbg), 5.5.62 (opt), 5.6.51 (dbg), 5.6.51 (opt), 5.7.29 (dbg), 5.7.30 (dbg), 5.7.33 (dbg), 5.7.33 (opt), 8.0.23 (dbg), 8.0.23 (opt)
- relates to
-
MDEV-24858
SIGABRT in DbugExit from my_malloc in Query_cache::init_cache Regression
-
-
Closed
{"report":{"fcp":1237.6000001430511,"ttfb":434,"pageVisibility":"visible","entityId":97465,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"4de9a439-3d84-4939-bbac-59002f24e885","navigationType":0,"readyForUser":1332.6000001430511,"redirectCount":0,"resourceLoadedEnd":1586.8000001907349,"resourceLoadedStart":443.40000009536743,"resourceTiming":[{"duration":242.09999990463257,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":443.40000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":443.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":685.5,"responseStart":0,"secureConnectionStart":0},{"duration":242.10000014305115,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/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&whisper-enabled=true","startTime":443.7000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":443.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":685.8000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":273.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":443.80000019073486,"connectEnd":443.80000019073486,"connectStart":443.80000019073486,"domainLookupEnd":443.80000019073486,"domainLookupStart":443.80000019073486,"fetchStart":443.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":443.80000019073486,"responseEnd":717.3000001907349,"responseStart":717.3000001907349,"secureConnectionStart":443.80000019073486},{"duration":331.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/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&whisper-enabled=true","startTime":444,"connectEnd":444,"connectStart":444,"domainLookupEnd":444,"domainLookupStart":444,"fetchStart":444,"redirectEnd":0,"redirectStart":0,"requestStart":444,"responseEnd":775.9000000953674,"responseStart":775.9000000953674,"secureConnectionStart":444},{"duration":335.7000000476837,"initiatorType":"script","name":"https://jira.mariadb.org/s/a9324d6758d385eb45c462685ad88f1d-CDN/lu2cib/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":444.2000000476837,"connectEnd":444.2000000476837,"connectStart":444.2000000476837,"domainLookupEnd":444.2000000476837,"domainLookupStart":444.2000000476837,"fetchStart":444.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":444.2000000476837,"responseEnd":779.9000000953674,"responseStart":779.9000000953674,"secureConnectionStart":444.2000000476837},{"duration":336.09999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":444.30000019073486,"connectEnd":444.30000019073486,"connectStart":444.30000019073486,"domainLookupEnd":444.30000019073486,"domainLookupStart":444.30000019073486,"fetchStart":444.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":444.30000019073486,"responseEnd":780.4000000953674,"responseStart":780.4000000953674,"secureConnectionStart":444.30000019073486},{"duration":336.09999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":444.60000014305115,"connectEnd":444.60000014305115,"connectStart":444.60000014305115,"domainLookupEnd":444.60000014305115,"domainLookupStart":444.60000014305115,"fetchStart":444.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":444.60000014305115,"responseEnd":780.7000000476837,"responseStart":780.7000000476837,"secureConnectionStart":444.60000014305115},{"duration":420.39999985694885,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2cib/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":444.80000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":444.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":865.2000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":336.2000000476837,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":445,"connectEnd":445,"connectStart":445,"domainLookupEnd":445,"domainLookupStart":445,"fetchStart":445,"redirectEnd":0,"redirectStart":0,"requestStart":445,"responseEnd":781.2000000476837,"responseStart":781.2000000476837,"secureConnectionStart":445},{"duration":420.2000000476837,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2cib/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":445.10000014305115,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":445.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":865.3000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":336.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/5d5e8fe91fbc506585e83ea3b62ccc4b-CDN/lu2cib/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":445.30000019073486,"connectEnd":445.30000019073486,"connectStart":445.30000019073486,"domainLookupEnd":445.30000019073486,"domainLookupStart":445.30000019073486,"fetchStart":445.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":445.30000019073486,"responseEnd":781.8000001907349,"responseStart":781.8000001907349,"secureConnectionStart":445.30000019073486},{"duration":676.7000000476837,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":454.7000000476837,"connectEnd":454.7000000476837,"connectStart":454.7000000476837,"domainLookupEnd":454.7000000476837,"domainLookupStart":454.7000000476837,"fetchStart":454.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":454.7000000476837,"responseEnd":1131.4000000953674,"responseStart":1131.4000000953674,"secureConnectionStart":454.7000000476837},{"duration":1094.7999999523163,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":454.7000000476837,"connectEnd":454.7000000476837,"connectStart":454.7000000476837,"domainLookupEnd":454.7000000476837,"domainLookupStart":454.7000000476837,"fetchStart":454.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":454.7000000476837,"responseEnd":1549.5,"responseStart":1549.5,"secureConnectionStart":454.7000000476837},{"duration":272.60000014305115,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":887.5,"connectEnd":887.5,"connectStart":887.5,"domainLookupEnd":887.5,"domainLookupStart":887.5,"fetchStart":887.5,"redirectEnd":0,"redirectStart":0,"requestStart":887.5,"responseEnd":1160.1000001430511,"responseStart":1160.1000001430511,"secureConnectionStart":887.5},{"duration":400.90000009536743,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2cib/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/css/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":1185.9000000953674,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1185.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1586.8000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":374.09999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/e65b778d185daf5aee24936755b43da6/_/download/contextbatch/js/browser-metrics-plugin.contrib,-_super,-project.issue.navigator,-jira.view.issue,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":1186.9000000953674,"connectEnd":1186.9000000953674,"connectStart":1186.9000000953674,"domainLookupEnd":1186.9000000953674,"domainLookupStart":1186.9000000953674,"fetchStart":1186.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":1186.9000000953674,"responseEnd":1561,"responseStart":1561,"secureConnectionStart":1186.9000000953674},{"duration":378.59999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/097ae97cb8fbec7d6ea4bbb1f26955b9-CDN/lu2cib/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/js/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true&whisper-enabled=true","startTime":1187.3000001907349,"connectEnd":1187.3000001907349,"connectStart":1187.3000001907349,"domainLookupEnd":1187.3000001907349,"domainLookupStart":1187.3000001907349,"fetchStart":1187.3000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":1187.3000001907349,"responseEnd":1565.9000000953674,"responseStart":1565.9000000953674,"secureConnectionStart":1187.3000001907349}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":271,"responseStart":434,"responseEnd":453,"domLoading":442,"domInteractive":1621,"domContentLoadedEventStart":1621,"domContentLoadedEventEnd":1668,"domComplete":2291,"loadEventStart":2291,"loadEventEnd":2292,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1591.7000000476837},{"name":"bigPipe.sidebar-id.end","time":1592.6000001430511},{"name":"bigPipe.activity-panel-pipe-id.start","time":1592.7000000476837},{"name":"bigPipe.activity-panel-pipe-id.end","time":1594.1000001430511},{"name":"activityTabFullyLoaded","time":1685.8000001907349}],"measures":[],"correlationId":"5f3c627d609cb7","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":100,"dbReadsTimeInMs":16,"dbConnsTimeInMs":25,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
This must be already fixed, by the patch for
MDEV-24858.