USE test;
|
CREATE TABLE t(a INT) PARTITION BY RANGE(a) SUBPARTITION BY HASH(a) (PARTITION p VALUES LESS THAN (5) (SUBPARTITION sp, SUBPARTITION sp1), PARTITION p1 VALUES LESS THAN MAXVALUE (SUBPARTITION sp2, SUBPARTITION sp3));
|
ALTER TABLE t DROP PARTITION p;
|
Leads to:
10.5.4 701efbb25b738f0c971798c5234d4d66b9235e47
|
Core was generated by `/test/MD030620-mariadb-10.5.4-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 0x14dbe828f700 (LWP 2414969))]
|
(gdb) bt
|
(gdb) (gdb) #0 __pthread_kill (threadid=<optimized out>, signo=signo@entry=11) at ../sysdeps/unix/sysv/linux/pthread_kill.c:57
|
#1 0x0000558657c1d647 in my_write_core (sig=sig@entry=11) at /test/10.5_opt/mysys/stacktrace.c:518
|
#2 0x00005586575dff4a in handle_fatal_signal (sig=11) at /test/10.5_opt/sql/signal_handler.cc:330
|
#3 <signal handler called>
|
#4 0x000055865783b589 in ha_partition::create_partitioning_metadata (this=0x14dbc346e230, path=0x14dbe8289930 "./test/#sql-shadow-4-t", old_path=0x0, action_flag=CHF_CREATE_FLAG) at /test/10.5_opt/sql/ha_partition.cc:689
|
#5 0x0000558657477ff1 in mysql_write_frm (lpt=lpt@entry=0x14dbe828a040, flags=flags@entry=1) at /test/10.5_opt/sql/sql_table.cc:1863
|
#6 0x000055865773cbbd in fast_alter_partition_table (thd=thd@entry=0x14dbc3412018, table=table@entry=0x14dbc3520e18, alter_info=alter_info@entry=0x14dbe828d530, create_info=create_info@entry=0x14dbe828d600, table_list=0x14dbc3447118, db=db@entry=0x14dbe828ca30, table_name=0x14dbe828ca40) at /test/10.5_opt/sql/sql_partition.cc:7200
|
#7 0x0000558657482937 in mysql_alter_table (thd=thd@entry=0x14dbc3412018, new_db=new_db@entry=0x14dbc3416718, new_name=new_name@entry=0x14dbc3416b20, create_info=create_info@entry=0x14dbe828d600, table_list=<optimized out>, table_list@entry=0x14dbc3447118, alter_info=alter_info@entry=0x14dbe828d530, order_num=0, order=0x0, ignore=false, if_exists=false) at /test/10.5_opt/sql/sql_table.cc:10217
|
#8 0x00005586574de371 in Sql_cmd_alter_table::execute (this=<optimized out>, thd=0x14dbc3412018) at /test/10.5_opt/sql/sql_alter.cc:532
|
#9 0x00005586573ea45f in mysql_execute_command (thd=thd@entry=0x14dbc3412018) at /test/10.5_opt/sql/sql_parse.cc:5950
|
#10 0x00005586573f0f1c in mysql_parse (thd=0x14dbc3412018, rawbuf=<optimized out>, length=30, parser_state=0x14dbe828e4b0, is_com_multi=<optimized out>, is_next_command=<optimized out>) at /test/10.5_opt/sql/sql_parse.cc:7992
|
#11 0x00005586573e6235 in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x14dbc3412018, packet=packet@entry=0x14dbc343a019 "ALTER TABLE t DROP PARTITION p", packet_length=packet_length@entry=30, is_com_multi=is_com_multi@entry=false, is_next_command=is_next_command@entry=false) at /test/10.5_opt/sql/sql_parse.cc:1874
|
#12 0x00005586573e4644 in do_command (thd=0x14dbc3412018) at /test/10.5_opt/sql/sql_parse.cc:1355
|
#13 0x00005586574d97c1 in do_handle_one_connection (connect=<optimized out>, connect@entry=0x14dbe5c329b8, put_in_cache=put_in_cache@entry=true) at /test/10.5_opt/sql/sql_connect.cc:1411
|
#14 0x00005586574d9b24 in handle_one_connection (arg=arg@entry=0x14dbe5c329b8) at /test/10.5_opt/sql/sql_connect.cc:1313
|
#15 0x000055865784617a in pfs_spawn_thread (arg=0x14dbe5c4b018) at /test/10.5_opt/storage/perfschema/pfs.cc:2201
|
#16 0x000014dbe76b66db in start_thread (arg=0x14dbe828f700) at pthread_create.c:463
|
#17 0x000014dbe6ab488f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
|
Bug confirmed present in:
MariaDB: 10.5.4 (opt)
Bug confirmed not present in:
MariaDB: 10.1.46 (dbg), 10.1.46 (opt), 10.2.33 (dbg), 10.2.33 (opt), 10.3.24 (dbg), 10.3.24 (opt), 10.4.14 (dbg), 10.4.14 (opt), 10.5.4 (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)
MariaDB 10.4.14 (opt):
10.4.14 ed1434df88270ebe70ae412b5b723920b6b4e0e8
|
10.4.14>USE test;
|
Database changed
|
10.4.14>CREATE TABLE t(a INT) PARTITION BY RANGE(a) SUBPARTITION BY HASH(a) (PARTITION p VALUES LESS THAN (5) (SUBPARTITION sp, SUBPARTITION sp1), PARTITION p1 VALUES LESS THAN MAXVALUE (SUBPARTITION sp2, SUBPARTITION sp3));
|
Query OK, 0 rows affected (0.085 sec)
|
10.4.14>ALTER TABLE t DROP PARTITION p;
|
Query OK, 0 rows affected (0.052 sec)
|
Records: 0 Duplicates: 0 Warnings: 0
|
{"report":{"fcp":785.7000000476837,"ttfb":149.20000004768372,"pageVisibility":"visible","entityId":87908,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"ee5ff44a-5083-4a69-a8ea-9505bc8e1e98","navigationType":0,"readyForUser":867.2000000476837,"redirectCount":0,"resourceLoadedEnd":916.5,"resourceLoadedStart":154.80000019073486,"resourceTiming":[{"duration":100.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":154.80000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":154.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":255.30000019073486,"responseStart":0,"secureConnectionStart":0},{"duration":100.40000009536743,"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":155,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":155,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":255.40000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":109.79999995231628,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":155.20000004768372,"connectEnd":155.20000004768372,"connectStart":155.20000004768372,"domainLookupEnd":155.20000004768372,"domainLookupStart":155.20000004768372,"fetchStart":155.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":155.20000004768372,"responseEnd":265,"responseStart":265,"secureConnectionStart":155.20000004768372},{"duration":261.89999985694885,"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":155.30000019073486,"connectEnd":155.30000019073486,"connectStart":155.30000019073486,"domainLookupEnd":155.30000019073486,"domainLookupStart":155.30000019073486,"fetchStart":155.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":155.30000019073486,"responseEnd":417.2000000476837,"responseStart":417.2000000476837,"secureConnectionStart":155.30000019073486},{"duration":265.7000000476837,"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":155.40000009536743,"connectEnd":155.40000009536743,"connectStart":155.40000009536743,"domainLookupEnd":155.40000009536743,"domainLookupStart":155.40000009536743,"fetchStart":155.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":155.40000009536743,"responseEnd":421.10000014305115,"responseStart":421.10000014305115,"secureConnectionStart":155.40000009536743},{"duration":266.10000014305115,"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":155.5,"connectEnd":155.5,"connectStart":155.5,"domainLookupEnd":155.5,"domainLookupStart":155.5,"fetchStart":155.5,"redirectEnd":0,"redirectStart":0,"requestStart":155.5,"responseEnd":421.60000014305115,"responseStart":421.60000014305115,"secureConnectionStart":155.5},{"duration":266.39999985694885,"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":155.60000014305115,"connectEnd":155.60000014305115,"connectStart":155.60000014305115,"domainLookupEnd":155.60000014305115,"domainLookupStart":155.60000014305115,"fetchStart":155.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":155.60000014305115,"responseEnd":422,"responseStart":422,"secureConnectionStart":155.60000014305115},{"duration":266.7000000476837,"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":155.70000004768372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":155.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":422.40000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":266.5,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":155.90000009536743,"connectEnd":155.90000009536743,"connectStart":155.90000009536743,"domainLookupEnd":155.90000009536743,"domainLookupStart":155.90000009536743,"fetchStart":155.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":155.90000009536743,"responseEnd":422.40000009536743,"responseStart":422.40000009536743,"secureConnectionStart":155.90000009536743},{"duration":266.80000019073486,"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":156,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":156,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":422.80000019073486,"responseStart":0,"secureConnectionStart":0},{"duration":266.89999985694885,"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":156.10000014305115,"connectEnd":156.10000014305115,"connectStart":156.10000014305115,"domainLookupEnd":156.10000014305115,"domainLookupStart":156.10000014305115,"fetchStart":156.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":156.10000014305115,"responseEnd":423,"responseStart":423,"secureConnectionStart":156.10000014305115},{"duration":400.10000014305115,"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":156.70000004768372,"connectEnd":156.70000004768372,"connectStart":156.70000004768372,"domainLookupEnd":156.70000004768372,"domainLookupStart":156.70000004768372,"fetchStart":156.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":156.70000004768372,"responseEnd":556.8000001907349,"responseStart":556.8000001907349,"secureConnectionStart":156.70000004768372},{"duration":759.6999998092651,"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":156.80000019073486,"connectEnd":156.80000019073486,"connectStart":156.80000019073486,"domainLookupEnd":156.80000019073486,"domainLookupStart":156.80000019073486,"fetchStart":156.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":156.80000019073486,"responseEnd":916.5,"responseStart":916.5,"secureConnectionStart":156.80000019073486},{"duration":138.5,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":417.30000019073486,"connectEnd":417.30000019073486,"connectStart":417.30000019073486,"domainLookupEnd":417.30000019073486,"domainLookupStart":417.30000019073486,"fetchStart":417.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":417.30000019073486,"responseEnd":555.8000001907349,"responseStart":555.8000001907349,"secureConnectionStart":417.30000019073486},{"duration":270.2999999523163,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2bu7/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","startTime":703.1000001430511,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":703.1000001430511,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":973.4000000953674,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":13,"responseStart":149,"responseEnd":151,"domLoading":152,"domInteractive":938,"domContentLoadedEventStart":938,"domContentLoadedEventEnd":980,"domComplete":1958,"loadEventStart":1958,"loadEventEnd":1959,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":921.6000001430511},{"name":"bigPipe.sidebar-id.end","time":922.5},{"name":"bigPipe.activity-panel-pipe-id.start","time":922.6000001430511},{"name":"bigPipe.activity-panel-pipe-id.end","time":925},{"name":"activityTabFullyLoaded","time":986.7000000476837}],"measures":[],"correlationId":"9da2b252b93749","effectiveType":"4g","downlink":9.2,"rtt":0,"serverDuration":75,"dbReadsTimeInMs":9,"dbConnsTimeInMs":16,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}