Replay using CLI. Could not reproduce the issue using MTR
SET aria_repair_threads=2;
|
CREATE TABLE t (a CHAR(255),b INT,INDEX (b));
|
INSERT INTO t SELECT SEQ,SEQ FROM seq_1_to_100000;
|
SELECT * FROM t UNION SELECT * FROM t;
|
Leads to:
11.5.0 8f0c9340537b84fcd7012d4a31e6f858e7eb919c (Debug)
|
mariadbd: /test/server_dbg/sql/mysqld.cc:3763: int temp_file_size_cb_func(tmp_file_tracking*, int): Assertion `thd' failed.
|
11.5.0 8f0c9340537b84fcd7012d4a31e6f858e7eb919c (Debug)
|
Core was generated by `/test/MD200324-mariadb-11.5.0-linux-x86_64-dbg/bin/mariadbd --no-defaults --max'.
|
Program terminated with signal SIGABRT, Aborted.
|
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
|
[Current thread is 1 (Thread 0x147434072700 (LWP 2796928))]
|
(gdb) bt
|
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
|
#1 0x0000147436246859 in __GI_abort () at abort.c:79
|
#2 0x0000147436246729 in __assert_fail_base (fmt=0x1474363dc588 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x5576587dba25 "thd", file=0x5576585ea178 "/test/server_dbg/sql/mysqld.cc", line=3763, function=<optimized out>) at assert.c:92
|
#3 0x0000147436257fd6 in __GI___assert_fail (assertion=assertion@entry=0x5576587dba25 "thd", file=file@entry=0x5576585ea178 "/test/server_dbg/sql/mysqld.cc", line=line@entry=3763, function=function@entry=0x5576585ea7b0 "int temp_file_size_cb_func(tmp_file_tracking*, int)") at assert.c:101
|
#4 0x00005576577e1a1d in temp_file_size_cb_func (track=0x1473e5195778, no_error=1) at /test/server_dbg/sql/mysqld.cc:3763
|
#5 0x000055765840990f in tmp_file_track (file_size=<optimized out>, info=0x1473e5195670) at /test/server_dbg/mysys/mf_iocache.c:86
|
#6 _my_b_cache_write (info=0x1473e5195670, Buffer=0x1473dc8e25a8 "\017", Count=524288) at /test/server_dbg/mysys/mf_iocache.c:1596
|
#7 0x000055765840b830 in my_b_flush_io_cache (info=info@entry=0x1473e5195670, need_append_buffer_lock=<optimized out>, need_append_buffer_lock@entry=1) at /test/server_dbg/mysys/mf_iocache.c:1802
|
#8 0x000055765840c1f4 in _my_b_write (info=info@entry=0x1473e5195670, Buffer=0x147434071bbf "", Buffer@entry=0x147434071bbe "\023", Count=1, Count@entry=2) at /test/server_dbg/mysys/mf_iocache.c:629
|
#9 0x0000557657f0eff4 in my_b_write (Count=2, Buffer=0x147434071bbe "\023", info=0x1473e5195670) at /test/server_dbg/include/my_sys.h:550
|
#10 my_var_write (bufs=0x1473dc8ae0b5 "\001\005\063\062\065\070\070\001", to_file=0x1473e5195670, info=0x1473e51954e8) at /test/server_dbg/storage/maria/ma_sort.c:781
|
#11 write_keys_varlen (info=info@entry=0x1473e51954e8, sort_keys=0x1473dc031da0, sort_keys@entry=0x1473dc000d48, count=count@entry=33376, buffpek=<optimized out>, tempfile=tempfile@entry=0x1473e5195670) at /test/server_dbg/storage/maria/ma_sort.c:812
|
#12 0x0000557657f10131 in _ma_thr_find_all_keys_exec (sort_param=0x1473e51954e8) at /test/server_dbg/storage/maria/ma_sort.c:503
|
#13 _ma_thr_find_all_keys (arg=0x1473e51954e8) at /test/server_dbg/storage/maria/ma_sort.c:546
|
#14 0x0000147436757609 in start_thread (arg=<optimized out>) at pthread_create.c:477
|
#15 0x0000147436343133 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
|
Bug confirmed present in:
MariaDB: 11.5.0 (dbg)
Bug (or feature/syntax) confirmed not present in:
MariaDB: 10.4.34 (opt), 10.5.25 (dbg), 10.5.25 (opt), 10.6.18 (dbg), 10.6.18 (opt), 10.11.8 (dbg), 10.11.8 (opt), 11.0.6 (dbg), 11.0.6 (opt), 11.1.4 (dbg), 11.1.4 (opt), 11.2.4 (dbg), 11.2.4 (opt), 11.3.2 (dbg), 11.3.2 (opt), 11.4.2 (dbg), 11.4.2 (opt), 11.5.0 (opt)
{"report":{"fcp":825.5,"ttfb":240,"pageVisibility":"visible","entityId":128476,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"ab065b8b-6fc1-4e07-a071-cc0db724b75e","navigationType":0,"readyForUser":903.3000000119209,"redirectCount":0,"resourceLoadedEnd":886,"resourceLoadedStart":246.4000000357628,"resourceTiming":[{"duration":42.799999952316284,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":246.4000000357628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":246.4000000357628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":289.19999998807907,"responseStart":0,"secureConnectionStart":0},{"duration":42.80000001192093,"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":246.69999998807907,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":246.69999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":289.5,"responseStart":0,"secureConnectionStart":0},{"duration":95,"initiatorType":"script","name":"https://jira.mariadb.org/s/e9b27a47da5fb0f74a35acd57e9847fb-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":246.9000000357628,"connectEnd":246.9000000357628,"connectStart":246.9000000357628,"domainLookupEnd":246.9000000357628,"domainLookupStart":246.9000000357628,"fetchStart":246.9000000357628,"redirectEnd":0,"redirectStart":0,"requestStart":246.9000000357628,"responseEnd":341.9000000357628,"responseStart":341.9000000357628,"secureConnectionStart":246.9000000357628},{"duration":172.5,"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":247,"connectEnd":247,"connectStart":247,"domainLookupEnd":247,"domainLookupStart":247,"fetchStart":247,"redirectEnd":0,"redirectStart":0,"requestStart":247,"responseEnd":419.5,"responseStart":419.5,"secureConnectionStart":247},{"duration":176.10000002384186,"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":247.30000001192093,"connectEnd":247.30000001192093,"connectStart":247.30000001192093,"domainLookupEnd":247.30000001192093,"domainLookupStart":247.30000001192093,"fetchStart":247.30000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":247.30000001192093,"responseEnd":423.4000000357628,"responseStart":423.30000001192093,"secureConnectionStart":247.30000001192093},{"duration":177.5,"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":247.5,"connectEnd":247.5,"connectStart":247.5,"domainLookupEnd":247.5,"domainLookupStart":247.5,"fetchStart":247.5,"redirectEnd":0,"redirectStart":0,"requestStart":247.5,"responseEnd":425,"responseStart":425,"secureConnectionStart":247.5},{"duration":179.19999998807907,"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":247.60000002384186,"connectEnd":247.60000002384186,"connectStart":247.60000002384186,"domainLookupEnd":247.60000002384186,"domainLookupStart":247.60000002384186,"fetchStart":247.60000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":247.60000002384186,"responseEnd":426.80000001192093,"responseStart":426.80000001192093,"secureConnectionStart":247.60000002384186},{"duration":239.60000002384186,"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":247.80000001192093,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":247.80000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":487.4000000357628,"responseStart":0,"secureConnectionStart":0},{"duration":180.19999998807907,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":248,"connectEnd":248,"connectStart":248,"domainLookupEnd":248,"domainLookupStart":248,"fetchStart":248,"redirectEnd":0,"redirectStart":0,"requestStart":248,"responseEnd":428.19999998807907,"responseStart":428.19999998807907,"secureConnectionStart":248},{"duration":239.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":248.10000002384186,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":248.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":487.60000002384186,"responseStart":0,"secureConnectionStart":0},{"duration":181.70000004768372,"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":248.19999998807907,"connectEnd":248.19999998807907,"connectStart":248.19999998807907,"domainLookupEnd":248.19999998807907,"domainLookupStart":248.19999998807907,"fetchStart":248.19999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":248.19999998807907,"responseEnd":429.9000000357628,"responseStart":429.9000000357628,"secureConnectionStart":248.19999998807907},{"duration":568,"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":249.30000001192093,"connectEnd":249.30000001192093,"connectStart":249.30000001192093,"domainLookupEnd":249.30000001192093,"domainLookupStart":249.30000001192093,"fetchStart":249.30000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":249.30000001192093,"responseEnd":817.3000000119209,"responseStart":817.3000000119209,"secureConnectionStart":249.30000001192093},{"duration":636.5999999642372,"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":249.4000000357628,"connectEnd":249.4000000357628,"connectStart":249.4000000357628,"domainLookupEnd":249.4000000357628,"domainLookupStart":249.4000000357628,"fetchStart":249.4000000357628,"redirectEnd":0,"redirectStart":0,"requestStart":249.4000000357628,"responseEnd":886,"responseStart":886,"secureConnectionStart":249.4000000357628},{"duration":318.60000002384186,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":499.19999998807907,"connectEnd":499.19999998807907,"connectStart":499.19999998807907,"domainLookupEnd":499.19999998807907,"domainLookupStart":499.19999998807907,"fetchStart":499.19999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":499.19999998807907,"responseEnd":817.8000000119209,"responseStart":817.8000000119209,"secureConnectionStart":499.19999998807907},{"duration":180.10000002384186,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":809,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":809,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":989.1000000238419,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":81,"responseStart":240,"responseEnd":244,"domLoading":243,"domInteractive":1013,"domContentLoadedEventStart":1013,"domContentLoadedEventEnd":1059,"domComplete":1724,"loadEventStart":1724,"loadEventEnd":1726,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":994},{"name":"bigPipe.sidebar-id.end","time":994.8000000119209},{"name":"bigPipe.activity-panel-pipe-id.start","time":995},{"name":"bigPipe.activity-panel-pipe-id.end","time":998.6000000238419},{"name":"activityTabFullyLoaded","time":1071.4000000357628}],"measures":[],"correlationId":"bf6792834ccdf5","effectiveType":"4g","downlink":9.1,"rtt":0,"serverDuration":94,"dbReadsTimeInMs":12,"dbConnsTimeInMs":20,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}