Type:
Bug
Priority:
Critical
Resolution:
Fixed
Affects Version/s:
10.1(EOL) , 10.2(EOL) , 10.3(EOL) , 10.4(EOL) , 10.5
SET NAMES gbk;
SET SQL_MODE='';
CREATE USER очень_очень_очень_очень_длинный_юзер@localhost;
SELECT * FROM INFORMATION_SCHEMA.user_privileges WHERE GRANTEE LIKE "'abcdefghijklmnopqrstuvwxyz'%";
Leads to:
10.5.4 8569dac1ec9f6853a0b2f3ea9bcbda67644ead24
Version: '10.5.4-MariaDB' socket: '/test/MD260520-mariadb-10.5.4-linux-x86_64-opt/socket.sock' port: 17481 MariaDB Server
*** stack smashing detected ***: <unknown> terminated
200530 16:16:39 [ERROR] mysqld got signal 6 ;
10.5.4 8569dac1ec9f6853a0b2f3ea9bcbda67644ead24
Core was generated by `/test/MD260520-mariadb-10.5.4-linux-x86_64-opt/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 0x14736a636700 (LWP 894941))]
(gdb) bt
(gdb) (gdb) #0 __pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at ../sysdeps/unix/sysv/linux/pthread_kill.c:57
#1 0x0000560b5d489337 in my_write_core (sig=sig@entry=6) at /test/10.5_opt/mysys/stacktrace.c:518
#2 0x0000560b5ce4b3ca in handle_fatal_signal (sig=6) at /test/10.5_opt/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 0x0000147368d7a801 in __GI_abort () at abort.c:79
#6 0x0000147368dc3897 in __libc_message (action=action@entry=do_abort, fmt=fmt@entry=0x147368ef0988 "*** %s ***: %s terminated\n") at ../sysdeps/posix/libc_fatal.c:181
#7 0x0000147368e6ecd1 in __GI___fortify_fail_abort (need_backtrace=need_backtrace@entry=false, msg=msg@entry=0x147368ef0966 "stack smashing detected") at fortify_fail.c:33
#8 0x0000147368e6ec92 in __stack_chk_fail () at stack_chk_fail.c:29
#9 0x0000560b5cbdf839 in fill_schema_user_privileges (thd=0x147347812018, tables=<optimized out>, cond=<optimized out>) at /test/10.5_opt/sql/sql_acl.cc:12266
#10 0x0000560b5cccc4b5 in get_schema_tables_result (join=join@entry=0x147347848e88, executed_place=executed_place@entry=PROCESSED_BY_JOIN_EXEC) at /test/10.5_opt/sql/sql_show.cc:8658
#11 0x0000560b5ccb300d in JOIN::exec_inner (this=this@entry=0x147347848e88) at /test/10.5_opt/sql/sql_select.cc:4421
#12 0x0000560b5ccb3677 in JOIN::exec (this=this@entry=0x147347848e88) at /test/10.5_opt/sql/sql_select.cc:4245
#13 0x0000560b5ccb19c2 in mysql_select (thd=thd@entry=0x147347812018, tables=0x1473478477c0, fields=@0x1473478472b0: {<base_list> = {<Sql_alloc> = {<No data fields>}, first = 0x147347847710, last = 0x147347849a08, elements = 4}, <No data fields>}, conds=0x147347848198, og_num=<optimized out>, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2684619520, result=0x147347848e60, unit=0x147347815e70, select_lex=0x147347847160) at /test/10.5_opt/sql/sql_select.cc:4669
#14 0x0000560b5ccb2381 in handle_select (thd=thd@entry=0x147347812018, lex=lex@entry=0x147347815da8, result=result@entry=0x147347848e60, setup_tables_done_option=setup_tables_done_option@entry=0) at /test/10.5_opt/sql/sql_select.cc:417
#15 0x0000560b5cc58e91 in execute_sqlcom_select (thd=thd@entry=0x147347812018, all_tables=0x1473478477c0) at /test/10.5_opt/sql/sql_parse.cc:6207
#16 0x0000560b5cc54db2 in mysql_execute_command (thd=thd@entry=0x147347812018) at /test/10.5_opt/sql/sql_parse.cc:3939
#17 0x0000560b5cc5bfac in mysql_parse (thd=0x147347812018, rawbuf=<optimized out>, length=99, parser_state=0x14736a6354b0, is_com_multi=<optimized out>, is_next_command=<optimized out>) at /test/10.5_opt/sql/sql_parse.cc:7991
#18 0x0000560b5cc512b5 in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x147347812018, packet=packet@entry=0x14734783a019 "SELECT * FROM INFORMATION_SCHEMA.user_privileges WHERE GRANTEE LIKE \"'abcdefghijklmnopqrstuvwxyz'%\"", packet_length=packet_length@entry=99, 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
#19 0x0000560b5cc4f6a4 in do_command (thd=0x147347812018) at /test/10.5_opt/sql/sql_parse.cc:1355
#20 0x0000560b5cd44891 in do_handle_one_connection (connect=<optimized out>, connect@entry=0x1473680329b8, put_in_cache=put_in_cache@entry=true) at /test/10.5_opt/sql/sql_connect.cc:1411
#21 0x0000560b5cd44bf4 in handle_one_connection (arg=arg@entry=0x1473680329b8) at /test/10.5_opt/sql/sql_connect.cc:1313
#22 0x0000560b5d0b106a in pfs_spawn_thread (arg=0x14736804b018) at /test/10.5_opt/storage/perfschema/pfs.cc:2201
#23 0x0000147369a5d6db in start_thread (arg=0x14736a636700) at pthread_create.c:463
#24 0x0000147368e5b88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
Bug confirmed 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), 10.5.4 (opt)
Bug confirmed not present in:
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
Closed
11d 23h 37m
1
{"report":{"fcp":636,"ttfb":146.20000004768372,"pageVisibility":"visible","entityId":87626,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"b11680cd-7b78-42a3-8da1-7d6788242a45","navigationType":0,"readyForUser":714.0999999046326,"redirectCount":0,"resourceLoadedEnd":646.5,"resourceLoadedStart":154.79999995231628,"resourceTiming":[{"duration":5.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":154.79999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":154.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":160.29999995231628,"responseStart":0,"secureConnectionStart":0},{"duration":6.299999952316284,"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.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":155.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":161.39999985694885,"responseStart":0,"secureConnectionStart":0},{"duration":59.09999990463257,"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":214.29999995231628,"responseStart":214.29999995231628,"secureConnectionStart":155.20000004768372},{"duration":175,"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.5,"connectEnd":155.5,"connectStart":155.5,"domainLookupEnd":155.5,"domainLookupStart":155.5,"fetchStart":155.5,"redirectEnd":0,"redirectStart":0,"requestStart":155.5,"responseEnd":330.5,"responseStart":330.5,"secureConnectionStart":155.5},{"duration":178.09999990463257,"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.70000004768372,"connectEnd":155.70000004768372,"connectStart":155.70000004768372,"domainLookupEnd":155.70000004768372,"domainLookupStart":155.70000004768372,"fetchStart":155.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":155.70000004768372,"responseEnd":333.7999999523163,"responseStart":333.7999999523163,"secureConnectionStart":155.70000004768372},{"duration":178.59999990463257,"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.79999995231628,"connectEnd":155.79999995231628,"connectStart":155.79999995231628,"domainLookupEnd":155.79999995231628,"domainLookupStart":155.79999995231628,"fetchStart":155.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":155.79999995231628,"responseEnd":334.39999985694885,"responseStart":334.39999985694885,"secureConnectionStart":155.79999995231628},{"duration":178.70000004768372,"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.89999985694885,"connectEnd":155.89999985694885,"connectStart":155.89999985694885,"domainLookupEnd":155.89999985694885,"domainLookupStart":155.89999985694885,"fetchStart":155.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":155.89999985694885,"responseEnd":334.59999990463257,"responseStart":334.59999990463257,"secureConnectionStart":155.89999985694885},{"duration":179.29999995231628,"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":156,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":156,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":335.2999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":178.89999985694885,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":156.20000004768372,"connectEnd":156.20000004768372,"connectStart":156.20000004768372,"domainLookupEnd":156.20000004768372,"domainLookupStart":156.20000004768372,"fetchStart":156.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":156.20000004768372,"responseEnd":335.09999990463257,"responseStart":335.09999990463257,"secureConnectionStart":156.20000004768372},{"duration":179,"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.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":156.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":335.59999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":178.79999995231628,"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.79999995231628,"connectEnd":156.79999995231628,"connectStart":156.79999995231628,"domainLookupEnd":156.79999995231628,"domainLookupStart":156.79999995231628,"fetchStart":156.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":156.79999995231628,"responseEnd":335.59999990463257,"responseStart":335.59999990463257,"secureConnectionStart":156.79999995231628},{"duration":464.60000014305115,"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":166.39999985694885,"connectEnd":166.39999985694885,"connectStart":166.39999985694885,"domainLookupEnd":166.39999985694885,"domainLookupStart":166.39999985694885,"fetchStart":166.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":166.39999985694885,"responseEnd":631,"responseStart":631,"secureConnectionStart":166.39999985694885},{"duration":475.60000014305115,"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":170.89999985694885,"connectEnd":170.89999985694885,"connectStart":170.89999985694885,"domainLookupEnd":170.89999985694885,"domainLookupStart":170.89999985694885,"fetchStart":170.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":170.89999985694885,"responseEnd":646.5,"responseStart":646.5,"secureConnectionStart":170.89999985694885},{"duration":264.2999999523163,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":367,"connectEnd":367,"connectStart":367,"domainLookupEnd":367,"domainLookupStart":367,"fetchStart":367,"redirectEnd":0,"redirectStart":0,"requestStart":367,"responseEnd":631.2999999523163,"responseStart":631.2999999523163,"secureConnectionStart":367},{"duration":19.5,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":629.3999998569489,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":629.3999998569489,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":648.8999998569489,"responseStart":0,"secureConnectionStart":0},{"duration":126.70000004768372,"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":753,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":753,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":879.7000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":127.30000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/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","startTime":753.8999998569489,"connectEnd":753.8999998569489,"connectStart":753.8999998569489,"domainLookupEnd":753.8999998569489,"domainLookupStart":753.8999998569489,"fetchStart":753.8999998569489,"redirectEnd":0,"redirectStart":0,"requestStart":753.8999998569489,"responseEnd":881.2000000476837,"responseStart":881.2000000476837,"secureConnectionStart":753.8999998569489}],"fetchStart":1,"domainLookupStart":1,"domainLookupEnd":1,"connectStart":1,"connectEnd":1,"requestStart":22,"responseStart":147,"responseEnd":171,"domLoading":150,"domInteractive":830,"domContentLoadedEventStart":830,"domContentLoadedEventEnd":872,"domComplete":1039,"loadEventStart":1039,"loadEventEnd":1040,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":804.2000000476837},{"name":"bigPipe.sidebar-id.end","time":805},{"name":"bigPipe.activity-panel-pipe-id.start","time":805.0999999046326},{"name":"bigPipe.activity-panel-pipe-id.end","time":806},{"name":"activityTabFullyLoaded","time":882.7999999523163}],"measures":[],"correlationId":"4498ad749a6273","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":67,"dbReadsTimeInMs":13,"dbConnsTimeInMs":19,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}