SET optimizer_trace="enabled=on";
|
SELECT 'a\0';
|
Leads to:
10.5.3 98003440c2f8d20164a191ced1b7d92b283bb68f
|
mysqld: /test/10.5_dbg/sql/item.cc:497: void Item::print_item_w_name(String*, enum_query_type): Assertion `name.length == strlen(name.str)' failed.
|
10.5.3 98003440c2f8d20164a191ced1b7d92b283bb68f
|
Core was generated by `/test/MD210420-mariadb-10.5.3-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 0x7fb8730c0700 (LWP 546313))]
|
(gdb) bt
|
#0 __pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at ../sysdeps/unix/sysv/linux/pthread_kill.c:57
|
#1 0x00005566a1a0103d in my_write_core (sig=sig@entry=6) at /test/10.5_dbg/mysys/stacktrace.c:518
|
#2 0x00005566a11a6d7b in handle_fatal_signal (sig=6) at /test/10.5_dbg/sql/signal_handler.cc:329
|
#3 <signal handler called>
|
#4 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
|
#5 0x00007fb871804801 in __GI_abort () at abort.c:79
|
#6 0x00007fb8717f439a in __assert_fail_base (fmt=0x7fb87197b7d8 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x5566a1d13328 "name.length == strlen(name.str)", file=file@entry=0x5566a1d12b0e "/test/10.5_dbg/sql/item.cc", line=line@entry=497, function=function@entry=0x5566a1d12900 <Item::print_item_w_name(String*, enum_query_type)::__PRETTY_FUNCTION__> "void Item::print_item_w_name(String*, enum_query_type)") at assert.c:92
|
#7 0x00007fb8717f4412 in __GI___assert_fail (assertion=assertion@entry=0x5566a1d13328 "name.length == strlen(name.str)", file=file@entry=0x5566a1d12b0e "/test/10.5_dbg/sql/item.cc", line=line@entry=497, function=function@entry=0x5566a1d12900 <Item::print_item_w_name(String*, enum_query_type)::__PRETTY_FUNCTION__> "void Item::print_item_w_name(String*, enum_query_type)") at assert.c:101
|
#8 0x00005566a11d04e5 in Item::print_item_w_name (this=this@entry=0x7fb845874598, str=str@entry=0x7fb8730be050, query_type=query_type@entry=1037) at /test/10.5_dbg/sql/item.cc:497
|
#9 0x00005566a0f58856 in st_select_lex::print (this=this@entry=0x7fb845874120, thd=thd@entry=0x7fb845815088, str=str@entry=0x7fb8730be050, query_type=query_type@entry=1037) at /test/10.5_dbg/sql/sql_select.cc:27658
|
#10 0x00005566a1105eca in opt_trace_print_expanded_query (thd=0x7fb845815088, select_lex=0x7fb845874120, writer=writer@entry=0x7fb8730be5a0) at /test/10.5_dbg/sql/opt_trace.cc:118
|
#11 0x00005566a0f6ce3c in JOIN::prepare (this=this@entry=0x7fb845874f20, tables_init=tables_init@entry=0x0, conds_init=conds_init@entry=0x0, og_num=og_num@entry=0, order_init=order_init@entry=0x0, skip_order_by=skip_order_by@entry=false, group_init=0x0, having_init=0x0, proc_param_init=0x0, select_lex_arg=0x7fb845874120, unit_arg=0x7fb845819098) at /test/10.5_dbg/sql/sql_select.cc:1482
|
#12 0x00005566a0f79385 in mysql_select (thd=thd@entry=0x7fb845815088, tables=0x0, fields=..., conds=0x0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2147748608, result=0x7fb845874ef8, unit=0x7fb845819098, select_lex=0x7fb845874120) at /test/10.5_dbg/sql/sql_select.cc:4634
|
#13 0x00005566a0f79787 in handle_select (thd=thd@entry=0x7fb845815088, lex=lex@entry=0x7fb845818fd0, result=result@entry=0x7fb845874ef8, setup_tables_done_option=setup_tables_done_option@entry=0) at /test/10.5_dbg/sql/sql_select.cc:417
|
#14 0x00005566a0f03ef4 in execute_sqlcom_select (thd=thd@entry=0x7fb845815088, all_tables=0x0) at /test/10.5_dbg/sql/sql_parse.cc:6172
|
#15 0x00005566a0efc919 in mysql_execute_command (thd=thd@entry=0x7fb845815088) at /test/10.5_dbg/sql/sql_parse.cc:3901
|
#16 0x00005566a0f09f2b in mysql_parse (thd=thd@entry=0x7fb845815088, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x7fb8730bf450, 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:7957
|
#17 0x00005566a0ef5c45 in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x7fb845815088, packet=packet@entry=0x7fb845867089 "SELECT 'a\\0'", packet_length=packet_length@entry=12, 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:1839
|
#18 0x00005566a0ef449b in do_command (thd=0x7fb845815088) at /test/10.5_dbg/sql/sql_parse.cc:1358
|
#19 0x00005566a104f415 in do_handle_one_connection (connect=<optimized out>, connect@entry=0x7fb8513c53a8, put_in_cache=put_in_cache@entry=true) at /test/10.5_dbg/sql/sql_connect.cc:1422
|
#20 0x00005566a104f744 in handle_one_connection (arg=arg@entry=0x7fb8513c53a8) at /test/10.5_dbg/sql/sql_connect.cc:1319
|
#21 0x00005566a14affb0 in pfs_spawn_thread (arg=0x7fb870c45b08) at /test/10.5_dbg/storage/perfschema/pfs.cc:2201
|
#22 0x00007fb8724e76db in start_thread (arg=0x7fb8730c0700) at pthread_create.c:463
|
#23 0x00007fb8718e588f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
|
Bug confirmed present in:
MariaDB: 10.4.13 (dbg), 10.5.2 (dbg), 10.5.3 (dbg)
Bug confirmed not present in:
MariaDB: 10.1.45 (dbg), 10.1.45 (opt), 10.2.32 (dbg), 10.2.32 (opt), 10.3.23 (dbg), 10.3.23 (opt), 10.4.13 (opt), 10.5.2 (opt), 10.5.3 (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)
MariaDB 10.3.23, dbg:
10.3.23>SET optimizer_trace="enabled=on";
|
ERROR 1193 (HY000): Unknown system variable 'optimizer_trace'
|
|
10.3.23>SELECT 'a\0';
|
+----+
|
| a |
|
+----+
|
| a |
|
+----+
|
1 row in set (0.000 sec)
|
MariaDB 10.5.3, opt:
10.5.3>SET optimizer_trace="enabled=on";
|
Query OK, 0 rows affected (0.000 sec)
|
|
10.5.3>SELECT 'a\0';
|
+----+
|
| a |
|
+----+
|
| a |
|
+----+
|
1 row in set (0.000 sec)
|
{"report":{"fcp":888.3999999761581,"ttfb":213.89999997615814,"pageVisibility":"visible","entityId":86132,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"2459eea1-04ed-4fbf-84e6-424dbe826d2e","navigationType":0,"readyForUser":974.5,"redirectCount":0,"resourceLoadedEnd":628.7999999523163,"resourceLoadedStart":220.19999992847443,"resourceTiming":[{"duration":131.80000007152557,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":220.19999992847443,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":220.19999992847443,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":352,"responseStart":0,"secureConnectionStart":0},{"duration":133.29999995231628,"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":220.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":220.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":353.7999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":293.39999997615814,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":220.60000002384186,"connectEnd":220.60000002384186,"connectStart":220.60000002384186,"domainLookupEnd":220.60000002384186,"domainLookupStart":220.60000002384186,"fetchStart":220.60000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":357.6999999284744,"responseEnd":514,"responseStart":380.10000002384186,"secureConnectionStart":220.60000002384186},{"duration":408,"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":220.79999995231628,"connectEnd":220.79999995231628,"connectStart":220.79999995231628,"domainLookupEnd":220.79999995231628,"domainLookupStart":220.79999995231628,"fetchStart":220.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":358.7999999523163,"responseEnd":628.7999999523163,"responseStart":402.10000002384186,"secureConnectionStart":220.79999995231628},{"duration":162.29999995231628,"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":221,"connectEnd":221,"connectStart":221,"domainLookupEnd":221,"domainLookupStart":221,"fetchStart":221,"redirectEnd":0,"redirectStart":0,"requestStart":358.89999997615814,"responseEnd":383.2999999523163,"responseStart":381.60000002384186,"secureConnectionStart":221},{"duration":164.70000004768372,"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":221.19999992847443,"connectEnd":221.19999992847443,"connectStart":221.19999992847443,"domainLookupEnd":221.19999992847443,"domainLookupStart":221.19999992847443,"fetchStart":221.19999992847443,"redirectEnd":0,"redirectStart":0,"requestStart":359.10000002384186,"responseEnd":385.89999997615814,"responseStart":383.6999999284744,"secureConnectionStart":221.19999992847443},{"duration":164.79999995231628,"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":221.39999997615814,"connectEnd":221.39999997615814,"connectStart":221.39999997615814,"domainLookupEnd":221.39999997615814,"domainLookupStart":221.39999997615814,"fetchStart":221.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":359.89999997615814,"responseEnd":386.1999999284744,"responseStart":384.1999999284744,"secureConnectionStart":221.39999997615814},{"duration":133.89999997615814,"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":221.60000002384186,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":221.60000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":355.5,"responseStart":0,"secureConnectionStart":0},{"duration":166.70000004768372,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":221.69999992847443,"connectEnd":221.69999992847443,"connectStart":221.69999992847443,"domainLookupEnd":221.69999992847443,"domainLookupStart":221.69999992847443,"fetchStart":221.69999992847443,"redirectEnd":0,"redirectStart":0,"requestStart":361,"responseEnd":388.39999997615814,"responseStart":386.60000002384186,"secureConnectionStart":221.69999992847443},{"duration":135.20000004768372,"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":221.89999997615814,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":221.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":357.10000002384186,"responseStart":0,"secureConnectionStart":0},{"duration":168.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":222.10000002384186,"connectEnd":222.10000002384186,"connectStart":222.10000002384186,"domainLookupEnd":222.10000002384186,"domainLookupStart":222.10000002384186,"fetchStart":222.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":361.60000002384186,"responseEnd":390.89999997615814,"responseStart":387.10000002384186,"secureConnectionStart":222.10000002384186},{"duration":349,"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":223,"connectEnd":223,"connectStart":223,"domainLookupEnd":223,"domainLookupStart":223,"fetchStart":223,"redirectEnd":0,"redirectStart":0,"requestStart":398.2999999523163,"responseEnd":572,"responseStart":563.3999999761581,"secureConnectionStart":223},{"duration":350.89999997615814,"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":223.10000002384186,"connectEnd":223.10000002384186,"connectStart":223.10000002384186,"domainLookupEnd":223.10000002384186,"domainLookupStart":223.10000002384186,"fetchStart":223.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":429.1999999284744,"responseEnd":574,"responseStart":570.6000000238419,"secureConnectionStart":223.10000002384186},{"duration":201,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":656.7999999523163,"connectEnd":656.7999999523163,"connectStart":656.7999999523163,"domainLookupEnd":656.7999999523163,"domainLookupStart":656.7999999523163,"fetchStart":656.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":825.2999999523163,"responseEnd":857.7999999523163,"responseStart":857.1000000238419,"secureConnectionStart":656.7999999523163}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":16,"responseStart":214,"responseEnd":218,"domLoading":218,"domInteractive":1042,"domContentLoadedEventStart":1042,"domContentLoadedEventEnd":1089,"domComplete":1983,"loadEventStart":1983,"loadEventEnd":1984,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1016.7999999523163},{"name":"bigPipe.sidebar-id.end","time":1017.6000000238419},{"name":"bigPipe.activity-panel-pipe-id.start","time":1017.6000000238419},{"name":"bigPipe.activity-panel-pipe-id.end","time":1019.3999999761581},{"name":"activityTabFullyLoaded","time":1108.3999999761581}],"measures":[],"correlationId":"5e6439e9e0a981","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":108,"dbReadsTimeInMs":13,"dbConnsTimeInMs":22,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Also repeatable with: