Type:
Bug
Priority:
Major
Resolution:
Unresolved
Affects Version/s:
10.6 , 10.7(EOL) , 10.8(EOL) , 10.9(EOL) , 10.10(EOL) , 10.11 , 11.0(EOL) , 11.1(EOL)
Possibly related to MDEV-25460 and MDEV-24621
SET unique_checks=0,foreign_key_checks=0,autocommit=0;
SET @c:= 'SAVEPOINT sp0' ;
PREPARE s FROM @c;
CREATE TABLE t (id INT ,DATA CHAR , PRIMARY KEY (id)) ENGINE=InnoDB;
INSERT INTO t VALUES (0);
SAVEPOINT sp0;
INSERT INTO t VALUES (0,REPEAT (0,0)),(0,REPEAT (0,0)),(0,REPEAT (0,0)),(0,REPEAT (0,0)),(0,REPEAT (0,0)),(0,REPEAT (0,0)),(0,REPEAT (0,0)),(0,REPEAT (0,0));
INSERT INTO t VALUES (0,1);
SELECT * FROM t INTO OUTFILE 'o' ;
EXECUTE s;
Leads to:
11.1.0 2b61ff8f2221745f0a96855a0feb0825c426f993 (Debug)
mariadbd: /test/11.1_dbg/sql/sql_error.cc:335: void Diagnostics_area::set_ok_status(ulonglong, ulonglong, const char*): Assertion `!is_set() || (m_status == DA_OK_BULK && is_bulk_op())' failed.
11.1.0 2b61ff8f2221745f0a96855a0feb0825c426f993 (Debug)
Core was generated by `/test/MD070423-mariadb-11.1.0-linux-x86_64-dbg/bin/mariadbd --no-defaults --cor'.
Program terminated with signal SIGABRT, Aborted.
#0 __pthread_kill_implementation (no_tid=0, signo=6, threadid=23221789324864)
at ./nptl/pthread_kill.c:44
[Current thread is 1 (Thread 0x151ebe80f640 (LWP 571915))]
(gdb) bt
#0 __pthread_kill_implementation (no_tid=0, signo=6, threadid=23221789324864) at ./nptl/pthread_kill.c:44
#1 __pthread_kill_internal (signo=6, threadid=23221789324864) at ./nptl/pthread_kill.c:78
#2 __GI___pthread_kill (threadid=23221789324864, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
#3 0x0000151f04f96476 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#4 0x0000151f04f7c7f3 in __GI_abort () at ./stdlib/abort.c:79
#5 0x0000151f04f7c71b in __assert_fail_base (fmt=0x151f05131150 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x559823a6ced8 "!is_set() || (m_status == DA_OK_BULK && is_bulk_op())", file=0x559823a6cdb8 "/test/11.1_dbg/sql/sql_error.cc", line=335, function=<optimized out>) at ./assert/assert.c:92
#6 0x0000151f04f8de96 in __GI___assert_fail (assertion=0x559823a6ced8 "!is_set() || (m_status == DA_OK_BULK && is_bulk_op())", file=0x559823a6cdb8 "/test/11.1_dbg/sql/sql_error.cc", line=335, function=0x559823a6cf10 "void Diagnostics_area::set_ok_status(ulonglong, ulonglong, const char*)") at ./assert/assert.c:101
#7 0x0000559822f1b6cf in Diagnostics_area::set_ok_status (this=0x151e5c006b70, affected_rows=affected_rows@entry=0, last_insert_id=last_insert_id@entry=0, message=message@entry=0x0) at /test/11.1_dbg/sql/sql_error.cc:335
#8 0x0000559822f699ee in my_ok (message=0x0, id=0, affected_rows_arg=0, thd=0x151e5c000d58) at /test/11.1_dbg/sql/sql_class.h:4426
#9 mysql_execute_command (thd=0x151e5c000d58, is_called_from_prepared_stmt=is_called_from_prepared_stmt@entry=true) at /test/11.1_dbg/sql/sql_parse.cc:5470
#10 0x0000559822f91eb8 in Prepared_statement::execute (this=this@entry=0x151e5c019388, expanded_query=expanded_query@entry=0x151ebe80dc90, open_cursor=open_cursor@entry=false) at /test/11.1_dbg/sql/sql_prepare.cc:4992
#11 0x0000559822f92254 in Prepared_statement::execute_loop (this=this@entry=0x151e5c019388, expanded_query=expanded_query@entry=0x151ebe80dc90, open_cursor=open_cursor@entry=false, packet=packet@entry=0x0, packet_end=packet_end@entry=0x0) at /test/11.1_dbg/sql/sql_prepare.cc:4415
#12 0x0000559822f92891 in mysql_sql_stmt_execute (thd=thd@entry=0x151e5c000d58) at /test/11.1_dbg/sql/sql_prepare.cc:3456
#13 0x0000559822f659d1 in mysql_execute_command (thd=thd@entry=0x151e5c000d58, is_called_from_prepared_stmt=is_called_from_prepared_stmt@entry=false) at /test/11.1_dbg/sql/sql_parse.cc:3960
#14 0x0000559822f6bf05 in mysql_parse (thd=thd@entry=0x151e5c000d58, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x151ebe80e230) at /test/11.1_dbg/sql/sql_parse.cc:7760
#15 0x0000559822f6e099 in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x151e5c000d58, packet=packet@entry=0x151e5c00ae49 "EXECUTE s", packet_length=packet_length@entry=9, blocking=blocking@entry=true) at /test/11.1_dbg/sql/sql_class.h:242
#16 0x0000559822f6fef5 in do_command (thd=0x151e5c000d58, blocking=blocking@entry=true) at /test/11.1_dbg/sql/sql_parse.cc:1405
#17 0x00005598230c1cfc in do_handle_one_connection (connect=<optimized out>, connect@entry=0x559826765128, put_in_cache=put_in_cache@entry=true) at /test/11.1_dbg/sql/sql_connect.cc:1416
#18 0x00005598230c1f5b in handle_one_connection (arg=0x559826765128) at /test/11.1_dbg/sql/sql_connect.cc:1318
#19 0x0000151f04fe8b43 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
#20 0x0000151f0507aa00 in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
Bug confirmed present in:
MariaDB: 10.6.13 (dbg), 10.7.8 (dbg), 10.8.8 (dbg), 10.9.6 (dbg), 10.10.4 (dbg), 10.11.3 (dbg), 11.0.2 (dbg), 11.1.0 (dbg)
Bug (or feature/syntax) confirmed not present in:
MariaDB: 10.4.29 (dbg), 10.4.29 (opt), 10.5.20 (dbg), 10.5.20 (opt), 10.6.13 (opt), 10.7.8 (opt), 10.8.8 (opt), 10.9.6 (opt), 10.10.4 (opt), 10.11.3 (opt), 11.0.2 (opt), 11.1.0 (opt)
MySQL: 5.5.62 (dbg), 5.5.62 (opt), 5.6.51 (dbg), 5.6.51 (opt), 5.7.40 (dbg), 5.7.40 (opt), 8.0.31 (dbg), 8.0.31 (opt)
{"report":{"fcp":804.4000000953674,"ttfb":205.80000007152557,"pageVisibility":"visible","entityId":120952,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"0d65fc17-dc1d-4011-9204-76f308cb55cb","navigationType":0,"readyForUser":869.1000000238419,"redirectCount":0,"resourceLoadedEnd":907.9000000953674,"resourceLoadedStart":212.5,"resourceTiming":[{"duration":168.60000002384186,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":212.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":212.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":381.10000002384186,"responseStart":0,"secureConnectionStart":0},{"duration":168.29999995231628,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/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":212.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":212.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":381.2000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":177.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":212.90000009536743,"connectEnd":212.90000009536743,"connectStart":212.90000009536743,"domainLookupEnd":212.90000009536743,"domainLookupStart":212.90000009536743,"fetchStart":212.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":212.90000009536743,"responseEnd":390.40000009536743,"responseStart":390.40000009536743,"secureConnectionStart":212.90000009536743},{"duration":209.10000002384186,"initiatorType":"script","name":"https://jira.mariadb.org/s/099b33461394b8015fc36c0a4b96e19f-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/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":213.10000002384186,"connectEnd":213.10000002384186,"connectStart":213.10000002384186,"domainLookupEnd":213.10000002384186,"domainLookupStart":213.10000002384186,"fetchStart":213.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":213.10000002384186,"responseEnd":422.2000000476837,"responseStart":422.2000000476837,"secureConnectionStart":213.10000002384186},{"duration":212.60000002384186,"initiatorType":"script","name":"https://jira.mariadb.org/s/94c15bff32baef80f4096a08aceae8bc-CDN/lu2bu7/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":213.20000004768372,"connectEnd":213.20000004768372,"connectStart":213.20000004768372,"domainLookupEnd":213.20000004768372,"domainLookupStart":213.20000004768372,"fetchStart":213.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":213.20000004768372,"responseEnd":425.8000000715256,"responseStart":425.8000000715256,"secureConnectionStart":213.20000004768372},{"duration":212.79999995231628,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":213.30000007152557,"connectEnd":213.30000007152557,"connectStart":213.30000007152557,"domainLookupEnd":213.30000007152557,"domainLookupStart":213.30000007152557,"fetchStart":213.30000007152557,"redirectEnd":0,"redirectStart":0,"requestStart":213.30000007152557,"responseEnd":426.10000002384186,"responseStart":426.10000002384186,"secureConnectionStart":213.30000007152557},{"duration":213.09999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":213.40000009536743,"connectEnd":213.40000009536743,"connectStart":213.40000009536743,"domainLookupEnd":213.40000009536743,"domainLookupStart":213.40000009536743,"fetchStart":213.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":213.40000009536743,"responseEnd":426.5,"responseStart":426.5,"secureConnectionStart":213.40000009536743},{"duration":213.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bu7/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":213.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":213.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":427,"responseStart":0,"secureConnectionStart":0},{"duration":213.5,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":213.5,"connectEnd":213.5,"connectStart":213.5,"domainLookupEnd":213.5,"domainLookupStart":213.5,"fetchStart":213.5,"redirectEnd":0,"redirectStart":0,"requestStart":213.5,"responseEnd":427,"responseStart":426.90000009536743,"secureConnectionStart":213.5},{"duration":213.70000004768372,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bu7/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":213.70000004768372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":213.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":427.40000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":213.69999992847443,"initiatorType":"script","name":"https://jira.mariadb.org/s/3339d87fa2538a859872f2df449bf8d0-CDN/lu2bu7/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":213.80000007152557,"connectEnd":213.80000007152557,"connectStart":213.80000007152557,"domainLookupEnd":213.80000007152557,"domainLookupStart":213.80000007152557,"fetchStart":213.80000007152557,"redirectEnd":0,"redirectStart":0,"requestStart":213.80000007152557,"responseEnd":427.5,"responseStart":427.5,"secureConnectionStart":213.80000007152557},{"duration":692.7999999523163,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":214.70000004768372,"connectEnd":214.70000004768372,"connectStart":214.70000004768372,"domainLookupEnd":214.70000004768372,"domainLookupStart":214.70000004768372,"fetchStart":214.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":214.70000004768372,"responseEnd":907.5,"responseStart":907.5,"secureConnectionStart":214.70000004768372},{"duration":693.2000000476837,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":214.70000004768372,"connectEnd":214.70000004768372,"connectStart":214.70000004768372,"domainLookupEnd":214.70000004768372,"domainLookupStart":214.70000004768372,"fetchStart":214.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":214.70000004768372,"responseEnd":907.9000000953674,"responseStart":907.9000000953674,"secureConnectionStart":214.70000004768372},{"duration":257.6999999284744,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":615.3000000715256,"connectEnd":615.3000000715256,"connectStart":615.3000000715256,"domainLookupEnd":615.3000000715256,"domainLookupStart":615.3000000715256,"fetchStart":615.3000000715256,"redirectEnd":0,"redirectStart":0,"requestStart":615.3000000715256,"responseEnd":873,"responseStart":873,"secureConnectionStart":615.3000000715256},{"duration":124.5,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":784.4000000953674,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":784.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":908.9000000953674,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":34,"responseStart":205,"responseEnd":209,"domLoading":210,"domInteractive":975,"domContentLoadedEventStart":975,"domContentLoadedEventEnd":1009,"domComplete":1430,"loadEventStart":1430,"loadEventEnd":1431,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":954.4000000953674},{"name":"bigPipe.sidebar-id.end","time":955.2000000476837},{"name":"bigPipe.activity-panel-pipe-id.start","time":955.5},{"name":"bigPipe.activity-panel-pipe-id.end","time":958},{"name":"activityTabFullyLoaded","time":1014.8000000715256}],"measures":[],"correlationId":"413c021d6267b0","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":113,"dbReadsTimeInMs":22,"dbConnsTimeInMs":31,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}