USE test;
|
SET SQL_MODE='';
|
SET SESSION insert_id=0;
|
CREATE TABLE t (a INT AUTO_INCREMENT KEY) PARTITION BY HASH (a) PARTITIONS 3;
|
INSERT INTO t VALUES ('');
|
Leads to:
10.5.4 8569dac1ec9f6853a0b2f3ea9bcbda67644ead24
|
mysqld: /test/10.5_dbg/sql/handler.cc:3574: int handler::update_auto_increment(): Assertion `nr != 0' failed.
|
10.5.4 8569dac1ec9f6853a0b2f3ea9bcbda67644ead24
|
Core was generated by `/test/MD260520-mariadb-10.5.4-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:57
|
[Current thread is 1 (Thread 0x14b44ee82700 (LWP 1168779))]
|
(gdb) bt
|
#0 __pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at ../sysdeps/unix/sysv/linux/pthread_kill.c:57
|
#1 0x0000558649c61d7a in my_write_core (sig=sig@entry=6) at /test/10.5_dbg/mysys/stacktrace.c:518
|
#2 0x0000558649407385 in handle_fatal_signal (sig=6) at /test/10.5_dbg/sql/signal_handler.cc:330
|
#3 <signal handler called>
|
#4 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
|
#5 0x000014b44d5c6801 in __GI_abort () at abort.c:79
|
#6 0x000014b44d5b639a in __assert_fail_base (fmt=0x14b44d73d7d8 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x558649f72840 "nr != 0", file=file@entry=0x558649f72162 "/test/10.5_dbg/sql/handler.cc", line=line@entry=3574, function=function@entry=0x558649f76460 <handler::update_auto_increment()::__PRETTY_FUNCTION__> "int handler::update_auto_increment()") at assert.c:92
|
#7 0x000014b44d5b6412 in __GI___assert_fail (assertion=assertion@entry=0x558649f72840 "nr != 0", file=file@entry=0x558649f72162 "/test/10.5_dbg/sql/handler.cc", line=line@entry=3574, function=function@entry=0x558649f76460 <handler::update_auto_increment()::__PRETTY_FUNCTION__> "int handler::update_auto_increment()") at assert.c:101
|
#8 0x00005586494131d2 in handler::update_auto_increment (this=this@entry=0x14b42c0380a0) at /test/10.5_dbg/sql/handler.cc:3574
|
#9 0x00005586497080ea in ha_partition::write_row (this=0x14b42c0380a0, buf=0x14b42c0511c8 "\377") at /test/10.5_dbg/sql/ha_partition.cc:4378
|
#10 0x000055864941b142 in handler::ha_write_row (this=0x14b42c0380a0, buf=0x14b42c0511c8 "\377") at /test/10.5_dbg/sql/handler.cc:6986
|
#11 0x000055864911ca66 in write_record (thd=thd@entry=0x14b42c015088, table=table@entry=0x14b42c0fa088, info=info@entry=0x14b44ee80a60, sink=sink@entry=0x0) at /test/10.5_dbg/sql/sql_insert.cc:2091
|
#12 0x0000558649127aa0 in mysql_insert (thd=thd@entry=0x14b42c015088, table_list=0x14b42c074180, fields=..., values_list=..., update_fields=..., update_values=..., duplic=DUP_ERROR, ignore=false, result=0x0) at /test/10.5_dbg/sql/sql_insert.cc:1088
|
#13 0x000055864915ea46 in mysql_execute_command (thd=thd@entry=0x14b42c015088) at /test/10.5_dbg/sql/sql_parse.cc:4553
|
#14 0x000055864916a02e in mysql_parse (thd=thd@entry=0x14b42c015088, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x14b44ee813d0, is_com_multi=is_com_multi@entry=false, is_next_command=is_next_command@entry=false) at /test/10.5_dbg/sql/sql_parse.cc:7991
|
#15 0x0000558649156b42 in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x14b42c015088, packet=packet@entry=0x14b42c067089 "INSERT INTO t VALUES ('')", packet_length=packet_length@entry=25, is_com_multi=is_com_multi@entry=false, is_next_command=is_next_command@entry=false) at /test/10.5_dbg/sql/sql_parse.cc:1874
|
#16 0x000055864915531c in do_command (thd=0x14b42c015088) at /test/10.5_dbg/sql/sql_parse.cc:1355
|
#17 0x00005586492af73f in do_handle_one_connection (connect=<optimized out>, connect@entry=0x14b42d8453a8, put_in_cache=put_in_cache@entry=true) at /test/10.5_dbg/sql/sql_connect.cc:1411
|
#18 0x00005586492afe5b in handle_one_connection (arg=arg@entry=0x14b42d8453a8) at /test/10.5_dbg/sql/sql_connect.cc:1313
|
#19 0x000055864970f14e in pfs_spawn_thread (arg=0x14b44c845888) at /test/10.5_dbg/storage/perfschema/pfs.cc:2201
|
#20 0x000014b44e2a96db in start_thread (arg=0x14b44ee82700) at pthread_create.c:463
|
#21 0x000014b44d6a788f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
|
Bug confirmed present in:
MariaDB: 10.2.33 (dbg), 10.3.24 (dbg), 10.4.14 (dbg), 10.5.4 (dbg)
Bug confirmed not present in:
MariaDB: 10.1.46 (dbg), 10.1.46 (opt), 10.2.33 (opt), 10.3.24 (opt), 10.4.14 (opt), 10.5.4 (opt)
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)
{"report":{"fcp":830,"ttfb":206.10000038146973,"pageVisibility":"visible","entityId":87451,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"036d99d5-c24b-422e-b868-4da92b981115","navigationType":0,"readyForUser":932.8000001907349,"redirectCount":0,"resourceLoadedEnd":939.7000002861023,"resourceLoadedStart":214.10000038146973,"resourceTiming":[{"duration":28.699999809265137,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":214.10000038146973,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":214.10000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":242.80000019073486,"responseStart":0,"secureConnectionStart":0},{"duration":28.800000190734863,"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":214.40000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":214.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":243.2000002861023,"responseStart":0,"secureConnectionStart":0},{"duration":108.60000038146973,"initiatorType":"script","name":"https://jira.mariadb.org/s/e9b27a47da5fb0f74a35acd57e9847fb-CDN/lu2bv2/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":214.5,"connectEnd":214.5,"connectStart":214.5,"domainLookupEnd":214.5,"domainLookupStart":214.5,"fetchStart":214.5,"redirectEnd":0,"redirectStart":0,"requestStart":214.5,"responseEnd":323.1000003814697,"responseStart":323.1000003814697,"secureConnectionStart":214.5},{"duration":237.7999997138977,"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":214.7000002861023,"connectEnd":214.7000002861023,"connectStart":214.7000002861023,"domainLookupEnd":214.7000002861023,"domainLookupStart":214.7000002861023,"fetchStart":214.7000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":214.7000002861023,"responseEnd":452.5,"responseStart":452.5,"secureConnectionStart":214.7000002861023},{"duration":241.60000038146973,"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":215,"connectEnd":215,"connectStart":215,"domainLookupEnd":215,"domainLookupStart":215,"fetchStart":215,"redirectEnd":0,"redirectStart":0,"requestStart":215,"responseEnd":456.6000003814697,"responseStart":456.6000003814697,"secureConnectionStart":215},{"duration":242.19999980926514,"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":215.10000038146973,"connectEnd":215.10000038146973,"connectStart":215.10000038146973,"domainLookupEnd":215.10000038146973,"domainLookupStart":215.10000038146973,"fetchStart":215.10000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":215.10000038146973,"responseEnd":457.30000019073486,"responseStart":457.30000019073486,"secureConnectionStart":215.10000038146973},{"duration":242.40000009536743,"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":215.40000009536743,"connectEnd":215.40000009536743,"connectStart":215.40000009536743,"domainLookupEnd":215.40000009536743,"domainLookupStart":215.40000009536743,"fetchStart":215.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":215.40000009536743,"responseEnd":457.80000019073486,"responseStart":457.80000019073486,"secureConnectionStart":215.40000009536743},{"duration":267.30000019073486,"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":215.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":215.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":482.80000019073486,"responseStart":0,"secureConnectionStart":0},{"duration":242.7999997138977,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":215.60000038146973,"connectEnd":215.60000038146973,"connectStart":215.60000038146973,"domainLookupEnd":215.60000038146973,"domainLookupStart":215.60000038146973,"fetchStart":215.60000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":215.60000038146973,"responseEnd":458.40000009536743,"responseStart":458.40000009536743,"secureConnectionStart":215.60000038146973},{"duration":267.30000019073486,"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":215.80000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":215.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":483.1000003814697,"responseStart":0,"secureConnectionStart":0},{"duration":243.30000019073486,"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":216,"connectEnd":216,"connectStart":216,"domainLookupEnd":216,"domainLookupStart":216,"fetchStart":216,"redirectEnd":0,"redirectStart":0,"requestStart":216,"responseEnd":459.30000019073486,"responseStart":459.30000019073486,"secureConnectionStart":216},{"duration":708.0999999046326,"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":221.80000019073486,"connectEnd":221.80000019073486,"connectStart":221.80000019073486,"domainLookupEnd":221.80000019073486,"domainLookupStart":221.80000019073486,"fetchStart":221.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":221.80000019073486,"responseEnd":929.9000000953674,"responseStart":929.9000000953674,"secureConnectionStart":221.80000019073486},{"duration":717.8000001907349,"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":221.90000009536743,"connectEnd":221.90000009536743,"connectStart":221.90000009536743,"domainLookupEnd":221.90000009536743,"domainLookupStart":221.90000009536743,"fetchStart":221.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":221.90000009536743,"responseEnd":939.7000002861023,"responseStart":939.7000002861023,"secureConnectionStart":221.90000009536743},{"duration":420.7000002861023,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":516.9000000953674,"connectEnd":516.9000000953674,"connectStart":516.9000000953674,"domainLookupEnd":516.9000000953674,"domainLookupStart":516.9000000953674,"fetchStart":516.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":516.9000000953674,"responseEnd":937.6000003814697,"responseStart":937.6000003814697,"secureConnectionStart":516.9000000953674},{"duration":233.5,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":822.1000003814697,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":822.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1055.6000003814697,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":38,"responseStart":206,"responseEnd":216,"domLoading":211,"domInteractive":1100,"domContentLoadedEventStart":1100,"domContentLoadedEventEnd":1169,"domComplete":2730,"loadEventStart":2731,"loadEventEnd":2733,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1064.6000003814697},{"name":"bigPipe.sidebar-id.end","time":1065.4000000953674},{"name":"bigPipe.activity-panel-pipe-id.start","time":1065.6000003814697},{"name":"bigPipe.activity-panel-pipe-id.end","time":1069.7000002861023},{"name":"activityTabFullyLoaded","time":1177.7000002861023}],"measures":[],"correlationId":"4dc475bdd0499b","effectiveType":"4g","downlink":9.7,"rtt":0,"serverDuration":100,"dbReadsTimeInMs":14,"dbConnsTimeInMs":23,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}