CREATE TABLE t(c INT) ENGINE=InnoDB;
|
ALTER TABLE t DISCARD TABLESPACE;
|
RENAME TABLE t TO u;
|
TRUNCATE u;
|
TRUNCATE u;
|
Leads to:
10.5.6 c5517cd86440b6669509211b1ad10f837a929952 (Debug)
|
mysqld: /test/10.5_dbg/storage/innobase/row/row0mysql.cc:3694: dberr_t row_drop_table_for_mysql(const char*, trx_t*, enum_sql_command, bool, bool): Assertion `table->data_dir_path || !space' failed.
|
10.5.6 c5517cd86440b6669509211b1ad10f837a929952 (Debug)
|
Core was generated by `/test/MD080920-mariadb-10.5.6-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 0x14a736165700 (LWP 3580839))]
|
(gdb) bt
|
#0 __pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at ../sysdeps/unix/sysv/linux/pthread_kill.c:57
|
#1 0x000055e79331f4e8 in my_write_core (sig=sig@entry=6) at /test/10.5_dbg/mysys/stacktrace.c:424
|
#2 0x000055e792ae656b 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 0x000014a7343fb8b1 in __GI_abort () at abort.c:79
|
#6 0x000014a7343eb42a in __assert_fail_base (fmt=0x14a734572a38 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x55e793773338 "table->data_dir_path || !space", file=file@entry=0x55e793770ee0 "/test/10.5_dbg/storage/innobase/row/row0mysql.cc", line=line@entry=3694, function=function@entry=0x55e793774220 <row_drop_table_for_mysql(char const*, trx_t*, enum_sql_command, bool, bool)::__PRETTY_FUNCTION__> "dberr_t row_drop_table_for_mysql(const char*, trx_t*, enum_sql_command, bool, bool)") at assert.c:92
|
#7 0x000014a7343eb4a2 in __GI___assert_fail (assertion=assertion@entry=0x55e793773338 "table->data_dir_path || !space", file=file@entry=0x55e793770ee0 "/test/10.5_dbg/storage/innobase/row/row0mysql.cc", line=line@entry=3694, function=function@entry=0x55e793774220 <row_drop_table_for_mysql(char const*, trx_t*, enum_sql_command, bool, bool)::__PRETTY_FUNCTION__> "dberr_t row_drop_table_for_mysql(const char*, trx_t*, enum_sql_command, bool, bool)") at assert.c:101
|
#8 0x000055e793029375 in row_drop_table_for_mysql (name=<optimized out>, name@entry=0x14a736162de0 "test/#sql-ib22", trx=trx@entry=0x14a721003548, sqlcom=sqlcom@entry=SQLCOM_TRUNCATE, create_failed=create_failed@entry=false, nonatomic=<optimized out>, nonatomic@entry=true) at /test/10.5_dbg/storage/innobase/row/row0mysql.cc:3694
|
#9 0x000055e792eccf7a in ha_innobase::delete_table (this=this@entry=0x14a7135246a0, name=<optimized out>, name@entry=0x14a7134570a0 "test/#sql-ib22", sqlcom=sqlcom@entry=SQLCOM_TRUNCATE) at /test/10.5_dbg/storage/innobase/handler/ha_innodb.cc:13210
|
#10 0x000055e792ec417d in ha_innobase::truncate (this=0x14a7135246a0) at /test/10.5_dbg/storage/innobase/handler/ha_innodb.cc:13603
|
#11 0x000055e792af4ddf in handler::ha_truncate (this=0x14a7135246a0) at /test/10.5_dbg/sql/handler.cc:4693
|
#12 0x000055e7929bdbda in Sql_cmd_truncate_table::handler_truncate (this=this@entry=0x14a713474830, thd=thd@entry=0x14a713415088, table_ref=table_ref@entry=0x14a713474158, is_tmp_table=is_tmp_table@entry=false) at /test/10.5_dbg/sql/sql_truncate.cc:238
|
#13 0x000055e7929be806 in Sql_cmd_truncate_table::truncate_table (this=this@entry=0x14a713474830, thd=thd@entry=0x14a713415088, table_ref=table_ref@entry=0x14a713474158) at /test/10.5_dbg/sql/sql_truncate.cc:461
|
#14 0x000055e7929be958 in Sql_cmd_truncate_table::execute (this=0x14a713474830, thd=0x14a713415088) at /test/10.5_dbg/sql/sql_truncate.cc:517
|
#15 0x000055e792838b44 in mysql_execute_command (thd=thd@entry=0x14a713415088) at /test/10.5_dbg/sql/sql_parse.cc:5952
|
#16 0x000055e7928404b8 in mysql_parse (thd=thd@entry=0x14a713415088, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x14a736164350, 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:7994
|
#17 0x000055e79282cee8 in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x14a713415088, packet=packet@entry=0x14a713467089 "TRUNCATE u", packet_length=packet_length@entry=10, 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:1867
|
#18 0x000055e79282b6d2 in do_command (thd=0x14a713415088) at /test/10.5_dbg/sql/sql_parse.cc:1348
|
#19 0x000055e79298aa27 in do_handle_one_connection (connect=<optimized out>, connect@entry=0x14a7150d42c8, put_in_cache=put_in_cache@entry=true) at /test/10.5_dbg/sql/sql_connect.cc:1410
|
#20 0x000055e79298b14b in handle_one_connection (arg=arg@entry=0x14a7150d42c8) at /test/10.5_dbg/sql/sql_connect.cc:1312
|
#21 0x000055e792df5784 in pfs_spawn_thread (arg=0x14a733046508) at /test/10.5_dbg/storage/perfschema/pfs.cc:2201
|
#22 0x000014a7350de6db in start_thread (arg=0x14a736165700) at pthread_create.c:463
|
#23 0x000014a7344dca3f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
|
Bug confirmed present in:
MariaDB: 10.2.34 (dbg), 10.3.25 (dbg), 10.4.15 (dbg), 10.5.6 (dbg)
Bug confirmed not present in:
MariaDB: 10.1.47 (dbg), 10.1.47 (opt), 10.2.34 (opt), 10.3.25 (opt), 10.4.15 (opt), 10.5.6 (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)
Transition |
Time In Source Status |
Execution Times |
Open |
|
In Progress |
|
12d 19h 28m
|
1
|
In Progress |
|
Closed |
|
56m 33s
|
1
|
{"report":{"fcp":1105.7999999523163,"ttfb":234.59999990463257,"pageVisibility":"visible","entityId":91542,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"141c74d4-38ad-4327-a4db-32876188ff6c","navigationType":0,"readyForUser":1203.7999999523163,"redirectCount":0,"resourceLoadedEnd":800.2999999523163,"resourceLoadedStart":262.7999999523163,"resourceTiming":[{"duration":46.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":262.7999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":262.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":309.2999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":46.60000014305115,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/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&whisper-enabled=true","startTime":263.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":263.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":309.7000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":389.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":263.2999999523163,"connectEnd":263.2999999523163,"connectStart":263.2999999523163,"domainLookupEnd":263.2999999523163,"domainLookupStart":263.2999999523163,"fetchStart":263.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":316.39999985694885,"responseEnd":653.2000000476837,"responseStart":359.2000000476837,"secureConnectionStart":263.2999999523163},{"duration":536.7000000476837,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/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&whisper-enabled=true","startTime":263.59999990463257,"connectEnd":263.59999990463257,"connectStart":263.59999990463257,"domainLookupEnd":263.59999990463257,"domainLookupStart":263.59999990463257,"fetchStart":263.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":316.59999990463257,"responseEnd":800.2999999523163,"responseStart":384.59999990463257,"secureConnectionStart":263.59999990463257},{"duration":101.19999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/a9324d6758d385eb45c462685ad88f1d-CDN/lu2cib/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":263.7000000476837,"connectEnd":263.7000000476837,"connectStart":263.7000000476837,"domainLookupEnd":263.7000000476837,"domainLookupStart":263.7000000476837,"fetchStart":263.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":316.7999999523163,"responseEnd":364.89999985694885,"responseStart":361.5,"secureConnectionStart":263.7000000476837},{"duration":101.10000014305115,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":263.89999985694885,"connectEnd":263.89999985694885,"connectStart":263.89999985694885,"domainLookupEnd":263.89999985694885,"domainLookupStart":263.89999985694885,"fetchStart":263.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":317.2000000476837,"responseEnd":365,"responseStart":362.09999990463257,"secureConnectionStart":263.89999985694885},{"duration":101,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":264.09999990463257,"connectEnd":264.09999990463257,"connectStart":264.09999990463257,"domainLookupEnd":264.09999990463257,"domainLookupStart":264.09999990463257,"fetchStart":264.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":317.2999999523163,"responseEnd":365.09999990463257,"responseStart":363.09999990463257,"secureConnectionStart":264.09999990463257},{"duration":50.799999952316284,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2cib/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":264.2999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":264.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":315.09999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":104.5,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":264.5,"connectEnd":264.5,"connectStart":264.5,"domainLookupEnd":264.5,"domainLookupStart":264.5,"fetchStart":264.5,"redirectEnd":0,"redirectStart":0,"requestStart":318.89999985694885,"responseEnd":369,"responseStart":365.39999985694885,"secureConnectionStart":264.5},{"duration":53.90000009536743,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2cib/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":264.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":264.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":318.5,"responseStart":0,"secureConnectionStart":0},{"duration":143,"initiatorType":"script","name":"https://jira.mariadb.org/s/5d5e8fe91fbc506585e83ea3b62ccc4b-CDN/lu2cib/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":264.7999999523163,"connectEnd":264.7999999523163,"connectStart":264.7999999523163,"domainLookupEnd":264.7999999523163,"domainLookupStart":264.7999999523163,"fetchStart":264.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":331,"responseEnd":407.7999999523163,"responseStart":370.2999999523163,"secureConnectionStart":264.7999999523163},{"duration":511.59999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":268.2000000476837,"connectEnd":268.2000000476837,"connectStart":268.2000000476837,"domainLookupEnd":268.2000000476837,"domainLookupStart":268.2000000476837,"fetchStart":268.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":380.59999990463257,"responseEnd":779.7999999523163,"responseStart":769.2000000476837,"secureConnectionStart":268.2000000476837},{"duration":512.7000000476837,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":268.39999985694885,"connectEnd":268.39999985694885,"connectStart":268.39999985694885,"domainLookupEnd":268.39999985694885,"domainLookupStart":268.39999985694885,"fetchStart":268.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":406.59999990463257,"responseEnd":781.0999999046326,"responseStart":774.2000000476837,"secureConnectionStart":268.39999985694885},{"duration":169.10000014305115,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":834.5999999046326,"connectEnd":834.5999999046326,"connectStart":834.5999999046326,"domainLookupEnd":834.5999999046326,"domainLookupStart":834.5999999046326,"fetchStart":834.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":969.2000000476837,"responseEnd":1003.7000000476837,"responseStart":1002.5999999046326,"secureConnectionStart":834.5999999046326}],"fetchStart":1,"domainLookupStart":1,"domainLookupEnd":1,"connectStart":1,"connectEnd":1,"requestStart":43,"responseStart":235,"responseEnd":263,"domLoading":243,"domInteractive":1304,"domContentLoadedEventStart":1304,"domContentLoadedEventEnd":1353,"domComplete":1829,"loadEventStart":1829,"loadEventEnd":1830,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1283.5},{"name":"bigPipe.sidebar-id.end","time":1284.2000000476837},{"name":"bigPipe.activity-panel-pipe-id.start","time":1284.3999998569489},{"name":"bigPipe.activity-panel-pipe-id.end","time":1285.7000000476837},{"name":"activityTabFullyLoaded","time":1379.5}],"measures":[],"correlationId":"d4d8ecee141101","effectiveType":"4g","downlink":9.7,"rtt":0,"serverDuration":102,"dbReadsTimeInMs":20,"dbConnsTimeInMs":29,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}