# mysqld options required for replay: --sql_mode=
|
USE test;
|
SET @@SESSION.sort_buffer_size=200;
|
CREATE TEMPORARY TABLE t1(c1 CHAR(2) PRIMARY KEY,c2 INT ZEROFILL);
|
CREATE TEMPORARY TABLE t2(c1 CHAR(255) PRIMARY KEY,c2 CHAR (255));
|
INSERT INTO t1 VALUES(0,0);
|
INSERT INTO t1 VALUES('aaa',0);
|
INSERT INTO t2 VALUES('aaa',0);
|
INSERT INTO t2 SELECT * FROM t1;
|
DELETE FROM b,c USING t2 AS a JOIN t1 AS b JOIN t2 AS c;
|
Leads to:
10.5.3 e8351934b68d6d3ee273292eaa2ece203bb2b846
|
Core was generated by `/data/MD020420-mariadb-10.5.3-linux-x86_64-opt/bin/mysqld --no-defaults --core-'.
|
Program terminated with signal SIGSEGV, Segmentation fault.
|
#0 __pthread_kill (threadid=<optimized out>, signo=signo@entry=11)
|
at ../sysdeps/unix/sysv/linux/pthread_kill.c:57
|
[Current thread is 1 (Thread 0x7fe556220700 (LWP 31020))]
|
(gdb) bt
|
#0 __pthread_kill (threadid=<optimized out>, signo=signo@entry=11) at ../sysdeps/unix/sysv/linux/pthread_kill.c:57
|
#1 0x000055ad8b1bed47 in my_write_core (sig=sig@entry=11) at /data/10.5_opt/mysys/stacktrace.c:518
|
#2 0x000055ad8ab8087a in handle_fatal_signal (sig=11) at /data/10.5_opt/sql/signal_handler.cc:325
|
#3 <signal handler called>
|
#4 ha_innobase::cmp_ref (this=0x7fe527856830, ref1=0x7fe5278b0810 "0", ' ' <repeats 199 times>..., ref2=0x7fe5278b0216 "0", ' ' <repeats 199 times>...) at /data/10.5_opt/storage/innobase/handler/ha_innodb.cc:17088
|
#5 0x000055ad8b1be84d in queue_insert (queue=queue@entry=0x7fe55621eb40, element=element@entry=0x7fe5278778f8 "\020\b\213'\345\177") at /data/10.5_opt/mysys/queues.c:204
|
#6 0x000055ad8ab7ccfa in merge_buffers (param=param@entry=0x7fe55621ec50, from_file=from_file@entry=0x7fe52784c940, to_file=to_file@entry=0x7fe52784cd28, sort_buffer=..., lastbuff=lastbuff@entry=0x7fe527877818, Fb=0x7fe527877818, Tb=0x7fe527877930, flag=1) at /data/10.5_opt/sql/filesort.cc:1869
|
#7 0x000055ad8ab7da96 in merge_index (param=param@entry=0x7fe55621ec50, sort_buffer=..., buffpek=buffpek@entry=0x7fe527877818, maxbuffer=<optimized out>, tempfile=tempfile@entry=0x7fe52784c940, outfile=0x7fe52784cd28) at /data/10.5_opt/sql/filesort.cc:2082
|
#8 0x000055ad8aa5be19 in Unique::merge (this=this@entry=0x7fe52784c908, table=table@entry=0x7fe5278c1a18, buff=buff@entry=0x7fe5278b0018 "0", ' ' <repeats 199 times>..., buff_size=buff_size@entry=1275, without_last_merge=without_last_merge@entry=false) at /data/10.5_opt/sql/uniques.cc:753
|
#9 0x000055ad8aa5c589 in Unique::get (this=0x7fe52784c908, table=table@entry=0x7fe5278c1a18) at /data/10.5_opt/sql/uniques.cc:810
|
#10 0x000055ad8accee05 in multi_delete::do_deletes (this=0x7fe52784a4b0) at /data/10.5_opt/sql/sql_delete.cc:1448
|
#11 0x000055ad8accef12 in multi_delete::send_eof (this=0x7fe52784a4b0) at /data/10.5_opt/sql/sql_delete.cc:1559
|
#12 0x000055ad8a9e9f9c in do_select (procedure=<optimized out>, join=0x7fe52784a520) at /data/10.5_opt/sql/sql_select.cc:20192
|
#13 JOIN::exec_inner (this=this@entry=0x7fe52784a520) at /data/10.5_opt/sql/sql_select.cc:4463
|
#14 0x000055ad8a9ea257 in JOIN::exec (this=this@entry=0x7fe52784a520) at /data/10.5_opt/sql/sql_select.cc:4244
|
#15 0x000055ad8a9e85a2 in mysql_select (thd=thd@entry=0x7fe527812018, tables=0x7fe527847f78, fields=..., conds=conds@entry=0x0, og_num=og_num@entry=0, order=order@entry=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2202244746112, result=0x7fe52784a4b0, unit=0x7fe527815e60, select_lex=0x7fe527816660) at /data/10.5_opt/sql/sql_select.cc:4668
|
#16 0x000055ad8a98c308 in mysql_execute_command (thd=thd@entry=0x7fe527812018) at /data/10.5_opt/sql/sql_parse.cc:4806
|
#17 0x000055ad8a992a6c in mysql_parse (thd=thd@entry=0x7fe527812018, rawbuf=<optimized out>, length=55, parser_state=parser_state@entry=0x7fe55621f4d0, is_com_multi=is_com_multi@entry=false, is_next_command=is_next_command@entry=false) at /data/10.5_opt/sql/sql_parse.cc:7953
|
#18 0x000055ad8a9878e0 in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x7fe527812018, packet=packet@entry=0x7fe52783a019 "DELETE FROM b,c USING t2 AS a JOIN t1 AS b JOIN t2 AS c", packet_length=packet_length@entry=55, is_com_multi=is_com_multi@entry=false, is_next_command=is_next_command@entry=false) at /data/10.5_opt/sql/sql_parse.cc:1839
|
#19 0x000055ad8a985bff in do_command (thd=0x7fe527812018) at /data/10.5_opt/sql/sql_parse.cc:1358
|
#20 0x000055ad8aa7a92e in do_handle_one_connection (connect=<optimized out>, connect@entry=0x7fe553c329b8, put_in_cache=put_in_cache@entry=true) at /data/10.5_opt/sql/sql_connect.cc:1422
|
#21 0x000055ad8aa7aad4 in handle_one_connection (arg=arg@entry=0x7fe553c329b8) at /data/10.5_opt/sql/sql_connect.cc:1319
|
#22 0x000055ad8ade69da in pfs_spawn_thread (arg=0x7fe553c4b018) at /data/10.5_opt/storage/perfschema/pfs.cc:2201
|
#23 0x00007fe5556476db in start_thread (arg=0x7fe556220700) at pthread_create.c:463
|
#24 0x00007fe554a4588f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
|
Bug confirmed present in:
MariaDB: 10.2.32 (opt), 10.3.23 (opt), 10.4.13 (opt), 10.5.3 (dbg), 10.5.3 (opt)
Bug confirmed not present in:
MariaDB: 10.1.45 (dbg), 10.1.45 (opt), 10.2.32 (dbg), 10.3.23 (dbg), 10.4.13 (dbg)
MySQL: 5.5.62 (dbg), 5.5.62 (opt), 5.6.47 (dbg), 5.6.47 (opt), 5.7.29 (dbg), 5.7.29 (opt), 8.0.19 (dbg), 8.0.19 (opt)
However;
MariaDB 10.4.13 (dbg), 10.3.23 (dbg), 10.2.32(dbg):
10.4.13>DELETE FROM b,c USING t2 AS a JOIN t1 AS b JOIN t2 AS c;
|
Query OK, 5 rows affected (0.211 sec)
|
|
10.3.23>DELETE FROM b,c USING t2 AS a JOIN t1 AS b JOIN t2 AS c;
|
Query OK, 5 rows affected (0.211 sec)
|
|
10.2.32>DELETE FROM b,c USING t2 AS a JOIN t1 AS b JOIN t2 AS c;
|
Query OK, 5 rows affected (0.37 sec)
|
And, MariaDB 10.1.45 (opt/dbg):
10.1.45>DELETE FROM b,c USING t2 AS a JOIN t1 AS b JOIN t2 AS c;
|
ERROR 1137 (HY000): Can't reopen table: 'a'
|
- relates to
-
MDEV-22728
SIGFPE in Unique::get_cost_calc_buff_size from prepare_search_best_index_intersect on optimized builds
-
-
Closed
{"report":{"fcp":990.4000000953674,"ttfb":214.5,"pageVisibility":"visible","entityId":85198,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"c714ba28-a637-4d7b-9549-f3b0b7c1375a","navigationType":0,"readyForUser":1107.2000000476837,"redirectCount":0,"resourceLoadedEnd":667.9000000953674,"resourceLoadedStart":222.59999990463257,"resourceTiming":[{"duration":61.90000009536743,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bsh/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":222.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":222.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":284.5,"responseStart":0,"secureConnectionStart":0},{"duration":68.20000004768372,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bsh/820016/12ta74/eb142f92e4bd16bd1ef8b08c1b9d5d56/_/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":222.79999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":222.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":291,"responseStart":0,"secureConnectionStart":0},{"duration":309,"initiatorType":"script","name":"https://jira.mariadb.org/s/b09d0d077992e4331b5f9ec0d3ec448c-CDN/lu2bsh/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":223,"connectEnd":223,"connectStart":223,"domainLookupEnd":223,"domainLookupStart":223,"fetchStart":223,"redirectEnd":0,"redirectStart":0,"requestStart":299.5,"responseEnd":532,"responseStart":345.7999999523163,"secureConnectionStart":223},{"duration":431.2999999523163,"initiatorType":"script","name":"https://jira.mariadb.org/s/b47ab3df14096803b180217eb8482517-CDN/lu2bsh/820016/12ta74/eb142f92e4bd16bd1ef8b08c1b9d5d56/_/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":223,"connectEnd":223,"connectStart":223,"domainLookupEnd":223,"domainLookupStart":223,"fetchStart":223,"redirectEnd":0,"redirectStart":0,"requestStart":299.7000000476837,"responseEnd":654.2999999523163,"responseStart":354.7000000476837,"secureConnectionStart":223},{"duration":121.80000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/6c569cbf8087ab04e40d0bef98627457-CDN/lu2bsh/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":223.09999990463257,"connectEnd":223.09999990463257,"connectStart":223.09999990463257,"domainLookupEnd":223.09999990463257,"domainLookupStart":223.09999990463257,"fetchStart":223.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":300,"responseEnd":344.90000009536743,"responseStart":334.5,"secureConnectionStart":223.09999990463257},{"duration":122,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bsh/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":223.09999990463257,"connectEnd":223.09999990463257,"connectStart":223.09999990463257,"domainLookupEnd":223.09999990463257,"domainLookupStart":223.09999990463257,"fetchStart":223.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":300.09999990463257,"responseEnd":345.09999990463257,"responseStart":335.7999999523163,"secureConnectionStart":223.09999990463257},{"duration":123.70000004768372,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bsh/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":223.20000004768372,"connectEnd":223.20000004768372,"connectStart":223.20000004768372,"domainLookupEnd":223.20000004768372,"domainLookupStart":223.20000004768372,"fetchStart":223.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":300.2000000476837,"responseEnd":346.90000009536743,"responseStart":337.2000000476837,"secureConnectionStart":223.20000004768372},{"duration":76.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bsh/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":223.29999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":223.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":299.7999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":123.79999995231628,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":223.40000009536743,"connectEnd":223.40000009536743,"connectStart":223.40000009536743,"domainLookupEnd":223.40000009536743,"domainLookupStart":223.40000009536743,"fetchStart":223.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":300.2999999523163,"responseEnd":347.2000000476837,"responseStart":340.2000000476837,"secureConnectionStart":223.40000009536743},{"duration":76.29999995231628,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bsh/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":223.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":223.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":299.7999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":126.10000014305115,"initiatorType":"script","name":"https://jira.mariadb.org/s/81b5d7c27af3ebc078cc4a36383678ba-CDN/lu2bsh/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":223.59999990463257,"connectEnd":223.59999990463257,"connectStart":223.59999990463257,"domainLookupEnd":223.59999990463257,"domainLookupStart":223.59999990463257,"fetchStart":223.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":300.40000009536743,"responseEnd":349.7000000476837,"responseStart":338.2999999523163,"secureConnectionStart":223.59999990463257},{"duration":288.2999999523163,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bsh/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":378.7999999523163,"connectEnd":378.7999999523163,"connectStart":378.7999999523163,"domainLookupEnd":378.7999999523163,"domainLookupStart":378.7999999523163,"fetchStart":378.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":398,"responseEnd":667.0999999046326,"responseStart":661.5,"secureConnectionStart":378.7999999523163},{"duration":264.80000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bsh/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":403.09999990463257,"connectEnd":403.09999990463257,"connectStart":403.09999990463257,"domainLookupEnd":403.09999990463257,"domainLookupStart":403.09999990463257,"fetchStart":403.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":470.2000000476837,"responseEnd":667.9000000953674,"responseStart":664.2000000476837,"secureConnectionStart":403.09999990463257},{"duration":126,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":697.2000000476837,"connectEnd":697.2000000476837,"connectStart":697.2000000476837,"domainLookupEnd":697.2000000476837,"domainLookupStart":697.2000000476837,"fetchStart":697.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":790.5999999046326,"responseEnd":823.2000000476837,"responseStart":822.5,"secureConnectionStart":697.2000000476837},{"duration":235.89999985694885,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":928.7000000476837,"connectEnd":928.7000000476837,"connectStart":928.7000000476837,"domainLookupEnd":928.7000000476837,"domainLookupStart":928.7000000476837,"fetchStart":928.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":1128.7000000476837,"responseEnd":1164.5999999046326,"responseStart":1160.2999999523163,"secureConnectionStart":928.7000000476837},{"duration":152.40000009536743,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":976.7999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":976.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1129.2000000476837,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":66,"responseStart":214,"responseEnd":402,"domLoading":220,"domInteractive":1209,"domContentLoadedEventStart":1209,"domContentLoadedEventEnd":1274,"domComplete":1612,"loadEventStart":1612,"loadEventEnd":1613,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1150.9000000953674},{"name":"bigPipe.sidebar-id.end","time":1151.7000000476837},{"name":"bigPipe.activity-panel-pipe-id.start","time":1151.9000000953674},{"name":"bigPipe.activity-panel-pipe-id.end","time":1156.2000000476837},{"name":"activityTabFullyLoaded","time":1293}],"measures":[],"correlationId":"41228e28268cec","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":82,"dbReadsTimeInMs":15,"dbConnsTimeInMs":22,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
ha_innobase::cmp_ref also crashes on UPDATE with partitioning, ref
MDEV-18371, perhaps fix at same time?