Здравствуйте.
У меня падает MariaDB во время выполнения запроса repair table ... use_frm.
Воспроизведение.
Скачал MariaDB 10.3.9 GA 64 Bit для Windows с с сайта https://mariadb.com/downloads/mariadb-tx
Установил как сервис на компьютер c Windows 7 Professionan SP1.
Запустил MariaDB Command Prompt.
Подключился к базе с ISAM-таблицей.
Послал запрос repair table t_produit use_frm;
Через некоторое время связь с сервером пропала.
Сервис остановился.
MariaDB [test]> repair table t_produit use_frm;
ERROR 2013 (HY000): Lost connection to MySQL server during query
MariaDB [test]>
Высылаю файлы с таблицей и *.err файл, который смог найти.
Возможно, нужно заменить packed на pack_bytes (см. 0001-BugFix-mi_create.patch) ?
- relates to
-
MDEV-19011
Assertion `file->s->base.reclength < file->s->vreclength' failed in ha_myisam::setup_vcols_for_repair
-
-
Closed
{"report":{"fcp":1439.6999998092651,"ttfb":274.2999997138977,"pageVisibility":"visible","entityId":69540,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"29c4dfe4-5d37-426e-bae0-c3e2b6bf02a5","navigationType":0,"readyForUser":1521.1999998092651,"redirectCount":0,"resourceLoadedEnd":1227.5999999046326,"resourceLoadedStart":309.2999997138977,"resourceTiming":[{"duration":74.90000009536743,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":309.2999997138977,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":309.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":384.19999980926514,"responseStart":0,"secureConnectionStart":0},{"duration":75.09999990463257,"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":309.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":309.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":384.69999980926514,"responseStart":0,"secureConnectionStart":0},{"duration":624.6000003814697,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":309.7999997138977,"connectEnd":309.7999997138977,"connectStart":309.7999997138977,"domainLookupEnd":309.7999997138977,"domainLookupStart":309.7999997138977,"fetchStart":309.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":383.2999997138977,"responseEnd":934.4000000953674,"responseStart":411.90000009536743,"secureConnectionStart":309.7999997138977},{"duration":807.4000000953674,"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":310,"connectEnd":310,"connectStart":310,"domainLookupEnd":310,"domainLookupStart":310,"fetchStart":310,"redirectEnd":0,"redirectStart":0,"requestStart":383.69999980926514,"responseEnd":1117.4000000953674,"responseStart":414.2999997138977,"secureConnectionStart":310},{"duration":109.30000019073486,"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":310.09999990463257,"connectEnd":310.09999990463257,"connectStart":310.09999990463257,"domainLookupEnd":310.09999990463257,"domainLookupStart":310.09999990463257,"fetchStart":310.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":397.2999997138977,"responseEnd":419.40000009536743,"responseStart":418.19999980926514,"secureConnectionStart":310.09999990463257},{"duration":153.2000002861023,"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":310.2999997138977,"connectEnd":310.2999997138977,"connectStart":310.2999997138977,"domainLookupEnd":310.2999997138977,"domainLookupStart":310.2999997138977,"fetchStart":310.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":409.5,"responseEnd":463.5,"responseStart":460.7999997138977,"secureConnectionStart":310.2999997138977},{"duration":201.2999997138977,"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":310.40000009536743,"connectEnd":310.40000009536743,"connectStart":310.40000009536743,"domainLookupEnd":310.40000009536743,"domainLookupStart":310.40000009536743,"fetchStart":310.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":446.69999980926514,"responseEnd":511.69999980926514,"responseStart":505.69999980926514,"secureConnectionStart":310.40000009536743},{"duration":94.30000019073486,"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":310.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":310.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":404.90000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":201.69999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":310.90000009536743,"connectEnd":310.90000009536743,"connectStart":310.90000009536743,"domainLookupEnd":310.90000009536743,"domainLookupStart":310.90000009536743,"fetchStart":310.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":447.09999990463257,"responseEnd":512.5999999046326,"responseStart":508,"secureConnectionStart":310.90000009536743},{"duration":132.09999990463257,"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":311,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":311,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":443.09999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":201.7000002861023,"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":311.19999980926514,"connectEnd":311.19999980926514,"connectStart":311.19999980926514,"domainLookupEnd":311.19999980926514,"domainLookupStart":311.19999980926514,"fetchStart":311.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":447.19999980926514,"responseEnd":512.9000000953674,"responseStart":509.19999980926514,"secureConnectionStart":311.19999980926514},{"duration":915.0999999046326,"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":312.09999990463257,"connectEnd":312.09999990463257,"connectStart":312.09999990463257,"domainLookupEnd":312.09999990463257,"domainLookupStart":312.09999990463257,"fetchStart":312.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":504,"responseEnd":1227.1999998092651,"responseStart":1217.5999999046326,"secureConnectionStart":312.09999990463257},{"duration":915.5,"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":312.09999990463257,"connectEnd":312.09999990463257,"connectStart":312.09999990463257,"domainLookupEnd":312.09999990463257,"domainLookupStart":312.09999990463257,"fetchStart":312.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":523.5999999046326,"responseEnd":1227.5999999046326,"responseStart":1218.2999997138977,"secureConnectionStart":312.09999990463257},{"duration":219.80000019073486,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1108.0999999046326,"connectEnd":1108.0999999046326,"connectStart":1108.0999999046326,"domainLookupEnd":1108.0999999046326,"domainLookupStart":1108.0999999046326,"fetchStart":1108.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":1292,"responseEnd":1327.9000000953674,"responseStart":1324.9000000953674,"secureConnectionStart":1108.0999999046326},{"duration":332.2999997138977,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1376,"connectEnd":1376,"connectStart":1376,"domainLookupEnd":1376,"domainLookupStart":1376,"fetchStart":1376,"redirectEnd":0,"redirectStart":0,"requestStart":1676.1999998092651,"responseEnd":1708.2999997138977,"responseStart":1707.5,"secureConnectionStart":1376}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":74,"responseStart":274,"responseEnd":288,"domLoading":301,"domInteractive":1600,"domContentLoadedEventStart":1600,"domContentLoadedEventEnd":1668,"domComplete":2083,"loadEventStart":2083,"loadEventEnd":2083,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1562.1999998092651},{"name":"bigPipe.sidebar-id.end","time":1563},{"name":"bigPipe.activity-panel-pipe-id.start","time":1563.1999998092651},{"name":"bigPipe.activity-panel-pipe-id.end","time":1569.2999997138977},{"name":"activityTabFullyLoaded","time":1728.7999997138977}],"measures":[],"correlationId":"284d375fffff49","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":108,"dbReadsTimeInMs":13,"dbConnsTimeInMs":25,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Thanks for the report! Reproducible on 10.2, 10.3, not on 10.1
180907 12:24:13 [ERROR] mysqld got signal 6 ;
Server version: 10.3.9-MariaDB
/lib/x86_64-linux-gnu/libpthread.so.0(+0x11390)[0x7f8204158390]
linux/raise.c:54(__GI_raise)[0x7f8202ee1428]
stdlib/abort.c:91(__GI_abort)[0x7f8202ee302a]
posix/libc_fatal.c:175(__fsetlocking)[0x7f8202f237ea]
malloc/malloc.c:4105(_int_free)[0x7f8202f2c37a]
malloc/malloc.c:2969(__GI___libc_free)[0x7f8202f3053c]
mysys/mf_iocache.c:1997(end_io_cache)[0x55cab852e6c5]
myisam/mi_check.c:2432(mi_repair_by_sort)[0x55cab84d6707]
myisam/ha_myisam.cc:1270(ha_myisam::repair(THD*, st_handler_check_param&, bool))[0x55cab84cd81f]
myisam/ha_myisam.cc:1122(ha_myisam::repair(THD*, st_ha_check_opt*))[0x55cab84cdd95]
sql/handler.cc:4212(handler::ha_repair(THD*, st_ha_check_opt*))[0x55cab8035d31]
sql/sql_admin.cc:803(mysql_admin_table(THD*, TABLE_LIST*, st_ha_check_opt*, char const*, thr_lock_type, bool, bool, unsigned int, int (*)(THD*, TABLE_LIST*, st_ha_check_opt*), int (handler::*)(THD*, st_ha_check_opt*), int (*)(THD*, TABLE_LIST*, st_ha_check_opt*)))[0x55cab7f4e621]
sql/sql_admin.cc:1409(Sql_cmd_repair_table::execute(THD*))[0x55cab7f4f7ad]
sql/sql_parse.cc:6284(mysql_execute_command(THD*))[0x55cab7e74cc9]
sql/sql_class.h:1809(mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool))[0x55cab7e7bfc9]
sql/sql_parse.cc:1850(dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool))[0x55cab7e7e04a]
sql/sql_parse.cc:1397(do_command(THD*))[0x55cab7e7e7ce]
sql/sql_connect.cc:1402(do_handle_one_connection(CONNECT*))[0x55cab7f44daf]
sql/sql_connect.cc:1310(handle_one_connection)[0x55cab7f44ed4]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x76ba)[0x7f820414e6ba]
x86_64/clone.S:111(clone)[0x7f8202fb341d]
Query (0x7f819c0115f0): repair table t_produit use_frm
Version: '10.2.18-MariaDB-debug'
=================================================================
==32218==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x61c00003afc4 at pc 0x7f2f5a180904 bp 0x7f2f29368510 sp 0x7f2f29367cb8
WRITE of size 1744 at 0x61c00003afc4 thread T31
#0 0x7f2f5a180903 in __asan_memcpy (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x8c903)
#1 0x564b6f6d016d in _mi_read_cache /10.2/src/storage/myisam/mi_cache.c:67
#2 0x564b6f5f167b in sort_get_next_record /10.2/src/storage/myisam/mi_check.c:3527
#3 0x564b6f5ee92a in sort_key_read /10.2/src/storage/myisam/mi_check.c:3121
#4 0x564b6f6b7b66 in find_all_keys /10.2/src/storage/myisam/sort.c:312
#5 0x564b6f6b70e5 in _create_index_by_sort /10.2/src/storage/myisam/sort.c:228
#6 0x564b6f5e8c56 in mi_repair_by_sort /10.2/src/storage/myisam/mi_check.c:2401
#7 0x564b6f5c8c87 in ha_myisam::repair(THD*, st_handler_check_param&, bool) /10.2/src/storage/myisam/ha_myisam.cc:1268
#8 0x564b6f5c7437 in ha_myisam::repair(THD*, st_ha_check_opt*) /10.2/src/storage/myisam/ha_myisam.cc:1120
#9 0x564b6ef13907 in handler::ha_repair(THD*, st_ha_check_opt*) /10.2/src/sql/handler.cc:4022
#10 0x564b6ec8b8bc in mysql_admin_table /10.2/src/sql/sql_admin.cc:798
#11 0x564b6ec9101a in Sql_cmd_repair_table::execute(THD*) /10.2/src/sql/sql_admin.cc:1402
#12 0x564b6e95ba65 in mysql_execute_command(THD*) /10.2/src/sql/sql_parse.cc:6225
#13 0x564b6e9661fe in mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool) /10.2/src/sql/sql_parse.cc:8009
#14 0x564b6e94189c in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool) /10.2/src/sql/sql_parse.cc:1824
#15 0x564b6e93ea50 in do_command(THD*) /10.2/src/sql/sql_parse.cc:1378
#16 0x564b6ec625ce in do_handle_one_connection(CONNECT*) /10.2/src/sql/sql_connect.cc:1335
#17 0x564b6ec61fd6 in handle_one_connection /10.2/src/sql/sql_connect.cc:1241
#18 0x7f2f58d886b9 in start_thread (/lib/x86_64-linux-gnu/libpthread.so.0+0x76b9)
#19 0x7f2f5821d41c in clone (/lib/x86_64-linux-gnu/libc.so.6+0x10741c)
0x61c00003afc4 is located 0 bytes to the right of 1860-byte region [0x61c00003a880,0x61c00003afc4)
allocated by thread T31 here:
#0 0x7f2f5a18c602 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98602)
#1 0x564b6ff1e51b in sf_malloc /10.2/src/mysys/safemalloc.c:118
#2 0x564b6feeee05 in my_malloc /10.2/src/mysys/my_malloc.c:101
#3 0x564b6feef1e4 in my_realloc /10.2/src/mysys/my_malloc.c:155
#4 0x564b6f63a062 in mi_alloc_rec_buff /10.2/src/storage/myisam/mi_open.c:762
#5 0x564b6f5e783a in mi_repair_by_sort /10.2/src/storage/myisam/mi_check.c:2237
#6 0x564b6f5c8c87 in ha_myisam::repair(THD*, st_handler_check_param&, bool) /10.2/src/storage/myisam/ha_myisam.cc:1268
#7 0x564b6f5c7437 in ha_myisam::repair(THD*, st_ha_check_opt*) /10.2/src/storage/myisam/ha_myisam.cc:1120
#8 0x564b6ef13907 in handler::ha_repair(THD*, st_ha_check_opt*) /10.2/src/sql/handler.cc:4022
#9 0x564b6ec8b8bc in mysql_admin_table /10.2/src/sql/sql_admin.cc:798
#10 0x564b6ec9101a in Sql_cmd_repair_table::execute(THD*) /10.2/src/sql/sql_admin.cc:1402
#11 0x564b6e95ba65 in mysql_execute_command(THD*) /10.2/src/sql/sql_parse.cc:6225
#12 0x564b6e9661fe in mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool) /10.2/src/sql/sql_parse.cc:8009
#13 0x564b6e94189c in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool) /10.2/src/sql/sql_parse.cc:1824
#14 0x564b6e93ea50 in do_command(THD*) /10.2/src/sql/sql_parse.cc:1378
#15 0x564b6ec625ce in do_handle_one_connection(CONNECT*) /10.2/src/sql/sql_connect.cc:1335
#16 0x564b6ec61fd6 in handle_one_connection /10.2/src/sql/sql_connect.cc:1241
#17 0x7f2f58d886b9 in start_thread (/lib/x86_64-linux-gnu/libpthread.so.0+0x76b9)
Thread T31 created by T0 here:
#0 0x7f2f5a12a253 in pthread_create (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x36253)
#1 0x564b6ff471d8 in spawn_thread_noop /10.2/src/mysys/psi_noop.c:187
#2 0x564b6e74eb36 in inline_mysql_thread_create /10.2/src/include/mysql/psi/mysql_thread.h:1239
#3 0x564b6e762d97 in create_thread_to_handle_connection(CONNECT*) /10.2/src/sql/mysqld.cc:6456
#4 0x564b6e763497 in create_new_thread /10.2/src/sql/mysqld.cc:6526
#5 0x564b6e7644da in handle_connections_sockets() /10.2/src/sql/mysqld.cc:6801
#6 0x564b6e7622e7 in mysqld_main(int, char**) /10.2/src/sql/mysqld.cc:6075
#7 0x564b6e74d4cf in main /10.2/src/sql/main.cc:25
#8 0x7f2f5813682f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
SUMMARY: AddressSanitizer: heap-buffer-overflow ??:0 __asan_memcpy
Shadow bytes around the buggy address:
0x0c387ffff5a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c387ffff5b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c387ffff5c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c387ffff5d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c387ffff5e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
=>0x0c387ffff5f0: 00 00 00 00 00 00 00 00[04]fa fa fa fa fa fa fa
0x0c387ffff600: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c387ffff610: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c387ffff620: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c387ffff630: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c387ffff640: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Shadow byte legend (one shadow byte represents 8 application bytes):
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
Heap right redzone: fb
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack partial redzone: f4
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
==32218==ABORTING