-
Bug
-
-
Major
-
Resolution:
Unresolved
-
10.5, 10.6, 10.11, 11.1(EOL), 11.2(EOL), 11.3(EOL), 11.4, 11.5(EOL)
-
-
-
PREPARE p FROM 'CHANGE MASTER TO IGNORE_server_ids=(1,2,3);';
|
SHUTDOWN;
|
Leads to:
11.5.0 3f9182126c64bcec359bebe9ebad2a0e559b13e2 (Optimized, UBASAN)
|
2024-04-26 14:53:20 0 [Note] /test/UBASAN_MD240424-mariadb-11.5.0-linux-x86_64-opt/bin/mariadbd: Shutdown complete
|
|
Warning: Memory not freed: 152
|
|
=================================================================
|
==2332637==ERROR: LeakSanitizer: detected memory leaks
|
|
Direct leak of 152 byte(s) in 1 object(s) allocated from:
|
#0 0x5620aeea3f4f in malloc (/test/UBASAN_MD240424-mariadb-11.5.0-linux-x86_64-opt/bin/mariadbd+0x7f72f4f)
|
#1 0x5620b352c315 in my_malloc /test/11.5_opt_san/mysys/my_malloc.c:93
|
#2 0x5620b34aabd8 in alloc_dynamic /test/11.5_opt_san/mysys/array.c:188
|
#3 0x5620b34aae57 in insert_dynamic /test/11.5_opt_san/mysys/array.c:97
|
#4 0x5620b0a41af3 in MYSQLparse(THD*) /test/11.5_opt_san/sql/sql_yacc.yy:2346
|
#5 0x5620af77af34 in parse_sql(THD*, Parser_state*, Object_creation_ctx*, bool) /test/11.5_opt_san/sql/sql_parse.cc:10168
|
#6 0x5620af87d0a6 in Prepared_statement::prepare(char const*, unsigned int) /test/11.5_opt_san/sql/sql_prepare.cc:4183
|
#7 0x5620af8b0b52 in mysql_sql_stmt_prepare(THD*) /test/11.5_opt_san/sql/sql_prepare.cc:2817
|
#8 0x5620af790457 in mysql_execute_command(THD*, bool) /test/11.5_opt_san/sql/sql_parse.cc:3953
|
#9 0x5620af7a2aed in mysql_parse(THD*, char*, unsigned int, Parser_state*) /test/11.5_opt_san/sql/sql_parse.cc:7815
|
#10 0x5620af7b0519 in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool) /test/11.5_opt_san/sql/sql_parse.cc:1892
|
#11 0x5620af7bace3 in do_command(THD*, bool) /test/11.5_opt_san/sql/sql_parse.cc:1405
|
#12 0x5620b014c887 in do_handle_one_connection(CONNECT*, bool) /test/11.5_opt_san/sql/sql_connect.cc:1445
|
#13 0x5620b014f27c in handle_one_connection /test/11.5_opt_san/sql/sql_connect.cc:1347
|
#14 0x14bb2b08f189 in start_thread nptl/pthread_create.c:444
|
|
SUMMARY: AddressSanitizer: 152 byte(s) leaked in 1 allocation(s).
|
240426 14:53:22 [ERROR] mysqld got signal 6 ;
|
11.5.0 3f9182126c64bcec359bebe9ebad2a0e559b13e2 (Debug, UBASAN)
|
2024-04-26 15:02:06 0 [Note] /test/UBASAN_MD240424-mariadb-11.5.0-linux-x86_64-dbg/bin/mariadbd: Shutdown complete
|
|
Warning: Memory not freed: 152
|
|
=================================================================
|
==3098523==ERROR: LeakSanitizer: detected memory leaks
|
|
Direct leak of 152 byte(s) in 1 object(s) allocated from:
|
#0 0x561110e6aa1f in __interceptor_malloc (/test/UBASAN_MD240424-mariadb-11.5.0-linux-x86_64-dbg/bin/mariadbd+0x7ec8a1f)
|
#1 0x5611157d7fac in my_malloc /test/11.5_dbg_san/mysys/my_malloc.c:93
|
#2 0x5611157d85b4 in my_realloc /test/11.5_dbg_san/mysys/my_malloc.c:149
|
#3 0x56111576bd15 in alloc_dynamic /test/11.5_dbg_san/mysys/array.c:188
|
#4 0x56111576bea9 in insert_dynamic /test/11.5_dbg_san/mysys/array.c:97
|
#5 0x561112af0072 in MYSQLparse(THD*) /test/11.5_dbg_san/sql/sql_yacc.yy:2346
|
#6 0x5611117b9a5a in parse_sql(THD*, Parser_state*, Object_creation_ctx*, bool) /test/11.5_dbg_san/sql/sql_parse.cc:10168
|
#7 0x5611118d7a21 in Prepared_statement::prepare(char const*, unsigned int) /test/11.5_dbg_san/sql/sql_prepare.cc:4183
|
#8 0x561111908a0f in mysql_sql_stmt_prepare(THD*) /test/11.5_dbg_san/sql/sql_prepare.cc:2817
|
#9 0x5611117c8e29 in mysql_execute_command(THD*, bool) /test/11.5_dbg_san/sql/sql_parse.cc:3953
|
#10 0x5611117ef1c5 in mysql_parse(THD*, char*, unsigned int, Parser_state*) /test/11.5_dbg_san/sql/sql_parse.cc:7815
|
#11 0x5611117ff546 in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool) /test/11.5_dbg_san/sql/sql_parse.cc:1892
|
#12 0x56111180e387 in do_command(THD*, bool) /test/11.5_dbg_san/sql/sql_parse.cc:1405
|
#13 0x56111224654b in do_handle_one_connection(CONNECT*, bool) /test/11.5_dbg_san/sql/sql_connect.cc:1445
|
#14 0x561112247af4 in handle_one_connection /test/11.5_dbg_san/sql/sql_connect.cc:1347
|
#15 0x149e70a8f189 in start_thread nptl/pthread_create.c:444
|
|
SUMMARY: AddressSanitizer: 152 byte(s) leaked in 1 allocation(s).
|
240426 15:02:09 [ERROR] mysqld got signal 6 ;
|
Setup:
Compiled with a recent version of GCC (I use GCC 12.3.0) and:
|
-DWITH_ASAN=ON -DWITH_ASAN_SCOPE=ON -DWITH_UBSAN=ON -DWSREP_LIB_WITH_ASAN=ON
|
Set before execution:
|
export ASAN_OPTIONS=quarantine_size_mb=512:atexit=0:detect_invalid_pointer_pairs=3:dump_instruction_bytes=1:abort_on_error=1:allocator_may_return_null=1
|
Bug confirmed present in:
MariaDB: 10.5.25 (dbg), 10.5.25 (opt), 10.6.18 (dbg), 10.6.18 (opt), 10.11.8 (dbg), 10.11.8 (opt), 11.1.5 (dbg), 11.1.5 (opt), 11.2.4 (dbg), 11.2.4 (opt), 11.3.3 (dbg), 11.3.3 (opt), 11.4.2 (dbg), 11.4.2 (opt), 11.5.0 (dbg), 11.5.0 (opt)
Testcase been used as-is in MTR using an SAN build.
{"report":{"fcp":945.3000001907349,"ttfb":168.10000038146973,"pageVisibility":"visible","entityId":128926,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"946964b2-e81a-48ca-936e-6f28481056a4","navigationType":0,"readyForUser":1033.9000005722046,"redirectCount":0,"resourceLoadedEnd":1160.4000005722046,"resourceLoadedStart":173.10000038146973,"resourceTiming":[{"duration":236.10000038146973,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":173.10000038146973,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":173.10000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":409.20000076293945,"responseStart":0,"secureConnectionStart":0},{"duration":236.0999994277954,"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":173.4000005722046,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":173.4000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":409.5,"responseStart":0,"secureConnectionStart":0},{"duration":245,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":173.9000005722046,"connectEnd":173.9000005722046,"connectStart":173.9000005722046,"domainLookupEnd":173.9000005722046,"domainLookupStart":173.9000005722046,"fetchStart":173.9000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":173.9000005722046,"responseEnd":418.9000005722046,"responseStart":418.9000005722046,"secureConnectionStart":173.9000005722046},{"duration":331.1000003814697,"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":174.10000038146973,"connectEnd":174.10000038146973,"connectStart":174.10000038146973,"domainLookupEnd":174.10000038146973,"domainLookupStart":174.10000038146973,"fetchStart":174.10000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":174.10000038146973,"responseEnd":505.20000076293945,"responseStart":505.20000076293945,"secureConnectionStart":174.10000038146973},{"duration":339.5,"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":174.30000019073486,"connectEnd":174.30000019073486,"connectStart":174.30000019073486,"domainLookupEnd":174.30000019073486,"domainLookupStart":174.30000019073486,"fetchStart":174.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":174.30000019073486,"responseEnd":513.8000001907349,"responseStart":513.8000001907349,"secureConnectionStart":174.30000019073486},{"duration":340.5,"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":174.5,"connectEnd":174.5,"connectStart":174.5,"domainLookupEnd":174.5,"domainLookupStart":174.5,"fetchStart":174.5,"redirectEnd":0,"redirectStart":0,"requestStart":174.5,"responseEnd":515,"responseStart":515,"secureConnectionStart":174.5},{"duration":336.70000076293945,"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":179,"connectEnd":179,"connectStart":179,"domainLookupEnd":179,"domainLookupStart":179,"fetchStart":179,"redirectEnd":0,"redirectStart":0,"requestStart":179,"responseEnd":515.7000007629395,"responseStart":515.7000007629395,"secureConnectionStart":179},{"duration":397.4000005722046,"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":179.30000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":179.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":576.7000007629395,"responseStart":0,"secureConnectionStart":0},{"duration":336.70000076293945,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":179.5,"connectEnd":179.5,"connectStart":179.5,"domainLookupEnd":179.5,"domainLookupStart":179.5,"fetchStart":179.5,"redirectEnd":0,"redirectStart":0,"requestStart":179.5,"responseEnd":516.2000007629395,"responseStart":516.2000007629395,"secureConnectionStart":179.5},{"duration":397.0999994277954,"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":179.70000076293945,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":179.70000076293945,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":576.8000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":337.1000003814697,"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":179.80000019073486,"connectEnd":179.80000019073486,"connectStart":179.80000019073486,"domainLookupEnd":179.80000019073486,"domainLookupStart":179.80000019073486,"fetchStart":179.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":179.80000019073486,"responseEnd":516.9000005722046,"responseStart":516.9000005722046,"secureConnectionStart":179.80000019073486},{"duration":849.1999998092651,"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":193.20000076293945,"connectEnd":193.20000076293945,"connectStart":193.20000076293945,"domainLookupEnd":193.20000076293945,"domainLookupStart":193.20000076293945,"fetchStart":193.20000076293945,"redirectEnd":0,"redirectStart":0,"requestStart":193.20000076293945,"responseEnd":1042.4000005722046,"responseStart":1042.4000005722046,"secureConnectionStart":193.20000076293945},{"duration":851.8000001907349,"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":193.4000005722046,"connectEnd":193.4000005722046,"connectStart":193.4000005722046,"domainLookupEnd":193.4000005722046,"domainLookupStart":193.4000005722046,"fetchStart":193.4000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":193.4000005722046,"responseEnd":1045.2000007629395,"responseStart":1045.2000007629395,"secureConnectionStart":193.4000005722046},{"duration":449.70000076293945,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":593,"connectEnd":593,"connectStart":593,"domainLookupEnd":593,"domainLookupStart":593,"fetchStart":593,"redirectEnd":0,"redirectStart":0,"requestStart":593,"responseEnd":1042.7000007629395,"responseStart":1042.7000007629395,"secureConnectionStart":593},{"duration":149.5,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":938,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":938,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1087.5,"responseStart":0,"secureConnectionStart":0},{"duration":60.19999980926514,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2cib/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&whisper-enabled=true","startTime":1083.1000003814697,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1083.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1143.3000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":59.79999923706055,"initiatorType":"link","name":"https://jira.mariadb.org/s/50bc9be5bfead1a25e72c1a9338c94f6-CDN/lu2cib/820016/12ta74/e108c7645258ccb43280ed3404e3e949/_/download/contextbatch/css/com.atlassian.jira.plugins.jira-development-integration-plugin:0,-_super,-jira.view.issue,-jira.global,-jira.general,-jira.browse.project,-project.issue.navigator,-atl.general/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":1083.7000007629395,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1083.7000007629395,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1143.5,"responseStart":0,"secureConnectionStart":0},{"duration":42.10000038146973,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/e65b778d185daf5aee24936755b43da6/_/download/contextbatch/js/browser-metrics-plugin.contrib,-_super,-project.issue.navigator,-jira.view.issue,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":1084.8000001907349,"connectEnd":1084.8000001907349,"connectStart":1084.8000001907349,"domainLookupEnd":1084.8000001907349,"domainLookupStart":1084.8000001907349,"fetchStart":1084.8000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":1084.8000001907349,"responseEnd":1126.9000005722046,"responseStart":1126.9000005722046,"secureConnectionStart":1084.8000001907349},{"duration":73.59999942779541,"initiatorType":"script","name":"https://jira.mariadb.org/s/097ae97cb8fbec7d6ea4bbb1f26955b9-CDN/lu2cib/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/js/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.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true&whisper-enabled=true","startTime":1085.4000005722046,"connectEnd":1085.4000005722046,"connectStart":1085.4000005722046,"domainLookupEnd":1085.4000005722046,"domainLookupStart":1085.4000005722046,"fetchStart":1085.4000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":1085.4000005722046,"responseEnd":1159,"responseStart":1159,"secureConnectionStart":1085.4000005722046},{"duration":74.40000057220459,"initiatorType":"script","name":"https://jira.mariadb.org/s/e0bf5781d46ea69fb123572974cf39de-CDN/lu2cib/820016/12ta74/e108c7645258ccb43280ed3404e3e949/_/download/contextbatch/js/com.atlassian.jira.plugins.jira-development-integration-plugin:0,-_super,-jira.view.issue,-jira.global,-jira.general,-jira.browse.project,-project.issue.navigator,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true&whisper-enabled=true","startTime":1086,"connectEnd":1086,"connectStart":1086,"domainLookupEnd":1086,"domainLookupStart":1086,"fetchStart":1086,"redirectEnd":0,"redirectStart":0,"requestStart":1086,"responseEnd":1160.4000005722046,"responseStart":1160.4000005722046,"secureConnectionStart":1086}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":11,"responseStart":168,"responseEnd":193,"domLoading":172,"domInteractive":1193,"domContentLoadedEventStart":1193,"domContentLoadedEventEnd":1241,"domComplete":2171,"loadEventStart":2171,"loadEventEnd":2173,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1159.4000005722046},{"name":"bigPipe.sidebar-id.end","time":1160.4000005722046},{"name":"bigPipe.activity-panel-pipe-id.start","time":1160.5},{"name":"bigPipe.activity-panel-pipe-id.end","time":1163.8000001907349},{"name":"activityTabFullyLoaded","time":1247.3000001907349}],"measures":[],"correlationId":"fcc1fee0f3149d","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":88,"dbReadsTimeInMs":8,"dbConnsTimeInMs":15,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}