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)
{"report":{"fcp":998.7000000476837,"ttfb":475.40000009536743,"pageVisibility":"visible","entityId":87626,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"907842bd-2c5d-42c4-9195-68d6c9b8edcf","navigationType":0,"readyForUser":1075.4000000953674,"redirectCount":0,"resourceLoadedEnd":785.1000001430511,"resourceLoadedStart":480.90000009536743,"resourceTiming":[{"duration":69.20000004768372,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":480.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":480.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":550.1000001430511,"responseStart":0,"secureConnectionStart":0},{"duration":68.90000009536743,"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":481.2000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":481.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":550.1000001430511,"responseStart":0,"secureConnectionStart":0},{"duration":81.10000014305115,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":481.2999999523163,"connectEnd":481.2999999523163,"connectStart":481.2999999523163,"domainLookupEnd":481.2999999523163,"domainLookupStart":481.2999999523163,"fetchStart":481.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":481.2999999523163,"responseEnd":562.4000000953674,"responseStart":562.4000000953674,"secureConnectionStart":481.2999999523163},{"duration":261.30000019073486,"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":481.2999999523163,"connectEnd":481.2999999523163,"connectStart":481.2999999523163,"domainLookupEnd":481.2999999523163,"domainLookupStart":481.2999999523163,"fetchStart":481.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":565.4000000953674,"responseEnd":742.6000001430511,"responseStart":580.5,"secureConnectionStart":481.2999999523163},{"duration":82.60000014305115,"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":481.5,"connectEnd":481.5,"connectStart":481.5,"domainLookupEnd":481.5,"domainLookupStart":481.5,"fetchStart":481.5,"redirectEnd":0,"redirectStart":0,"requestStart":481.5,"responseEnd":564.1000001430511,"responseStart":564.1000001430511,"secureConnectionStart":481.5},{"duration":83,"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":481.60000014305115,"connectEnd":481.60000014305115,"connectStart":481.60000014305115,"domainLookupEnd":481.60000014305115,"domainLookupStart":481.60000014305115,"fetchStart":481.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":481.60000014305115,"responseEnd":564.6000001430511,"responseStart":564.6000001430511,"secureConnectionStart":481.60000014305115},{"duration":83.20000004768372,"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":481.7000000476837,"connectEnd":481.7000000476837,"connectStart":481.7000000476837,"domainLookupEnd":481.7000000476837,"domainLookupStart":481.7000000476837,"fetchStart":481.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":481.7000000476837,"responseEnd":564.9000000953674,"responseStart":564.9000000953674,"secureConnectionStart":481.7000000476837},{"duration":83.70000004768372,"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":481.7999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":481.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":565.5,"responseStart":0,"secureConnectionStart":0},{"duration":83.39999985694885,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":481.90000009536743,"connectEnd":481.90000009536743,"connectStart":481.90000009536743,"domainLookupEnd":481.90000009536743,"domainLookupStart":481.90000009536743,"fetchStart":481.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":481.90000009536743,"responseEnd":565.2999999523163,"responseStart":565.2999999523163,"secureConnectionStart":481.90000009536743},{"duration":84,"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":482,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":482,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":566,"responseStart":0,"secureConnectionStart":0},{"duration":83.59999990463257,"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":482.10000014305115,"connectEnd":482.10000014305115,"connectStart":482.10000014305115,"domainLookupEnd":482.10000014305115,"domainLookupStart":482.10000014305115,"fetchStart":482.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":482.10000014305115,"responseEnd":565.7000000476837,"responseStart":565.7000000476837,"secureConnectionStart":482.10000014305115},{"duration":109.90000009536743,"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":482.7999999523163,"connectEnd":482.7999999523163,"connectStart":482.7999999523163,"domainLookupEnd":482.7999999523163,"domainLookupStart":482.7999999523163,"fetchStart":482.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":482.7999999523163,"responseEnd":592.7000000476837,"responseStart":592.7000000476837,"secureConnectionStart":482.7999999523163},{"duration":302.2000000476837,"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":482.90000009536743,"connectEnd":482.90000009536743,"connectStart":482.90000009536743,"domainLookupEnd":482.90000009536743,"domainLookupStart":482.90000009536743,"fetchStart":482.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":482.90000009536743,"responseEnd":785.1000001430511,"responseStart":785.1000001430511,"secureConnectionStart":482.90000009536743},{"duration":100.39999985694885,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":726.9000000953674,"connectEnd":726.9000000953674,"connectStart":726.9000000953674,"domainLookupEnd":726.9000000953674,"domainLookupStart":726.9000000953674,"fetchStart":726.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":797.9000000953674,"responseEnd":827.2999999523163,"responseStart":826.7000000476837,"secureConnectionStart":726.9000000953674},{"duration":196.5,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":956.2999999523163,"connectEnd":956.2999999523163,"connectStart":956.2999999523163,"domainLookupEnd":956.2999999523163,"domainLookupStart":956.2999999523163,"fetchStart":956.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":1123.9000000953674,"responseEnd":1152.7999999523163,"responseStart":1152,"secureConnectionStart":956.2999999523163},{"duration":133.89999985694885,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":992.4000000953674,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":992.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1126.2999999523163,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":16,"domainLookupEnd":33,"connectStart":33,"connectEnd":55,"secureConnectionStart":42,"requestStart":55,"responseStart":476,"responseEnd":480,"domLoading":479,"domInteractive":1168,"domContentLoadedEventStart":1168,"domContentLoadedEventEnd":1214,"domComplete":1796,"loadEventStart":1796,"loadEventEnd":1797,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1110.7999999523163},{"name":"bigPipe.sidebar-id.end","time":1111.7000000476837},{"name":"bigPipe.activity-panel-pipe-id.start","time":1111.7999999523163},{"name":"bigPipe.activity-panel-pipe-id.end","time":1114.2999999523163},{"name":"activityTabFullyLoaded","time":1220}],"measures":[],"correlationId":"de1834c5adc81a","effectiveType":"4g","downlink":9.7,"rtt":0,"serverDuration":116,"dbReadsTimeInMs":9,"dbConnsTimeInMs":16,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}