CREATE TABLE t1 (f INT);
|
INSERT INTO t1 VALUES (1),(2);
|
SELECT NULLIF( NOT f, 1 ) FROM t1;
|
Stack trace from 10.1 commit 0251232f8c3bca33b4dd15d6668105f3de9d024d
|
mysqld: /src/10.1/sql/item_cmpfunc.cc:2586: virtual void Item_func_nullif::fix_length_and_dec(): Assertion `args[0] == args[2] || thd->stmt_arena->is_stmt_execute()' failed.
|
160226 18:26:20 [ERROR] mysqld got signal 6 ;
|
|
#7 0x00007fb402e921d2 in __assert_fail () from /lib64/libc.so.6
|
#8 0x0000562ed8b85e90 in Item_func_nullif::fix_length_and_dec (this=0x7fb3f9653020) at /src/10.1/sql/item_cmpfunc.cc:2586
|
#9 0x0000562ed8bade6e in Item_func::fix_fields (this=0x7fb3f9653020, thd=0x7fb3fedc9270, ref=0x7fb3f96531c0) at /src/10.1/sql/item_func.cc:234
|
#10 0x0000562ed88b20b9 in setup_fields (thd=0x7fb3fedc9270, ref_pointer_array=0x7fb3f9653ea0, fields=..., mark_used_columns=MARK_COLUMNS_READ, sum_func_list=0x7fb3f9653c80, allow_sum_func=true) at /src/10.1/sql/sql_base.cc:7896
|
#11 0x0000562ed8949aba in JOIN::prepare (this=0x7fb3f9653920, rref_pointer_array=0x7fb3fedcd600, tables_init=0x7fb3f9653238, wild_num=0, conds_init=0x0, og_num=0, order_init=0x0, skip_order_by=false, group_init=0x0, having_init=0x0, proc_param_init=0x0, select_lex_arg=0x7fb3fedcd388, unit_arg=0x7fb3fedccc88) at /src/10.1/sql/sql_select.cc:795
|
#12 0x0000562ed8953214 in mysql_select (thd=0x7fb3fedc9270, rref_pointer_array=0x7fb3fedcd600, tables=0x7fb3f9653238, wild_num=0, fields=..., conds=0x0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2147748608, result=0x7fb3f9653900, unit=0x7fb3fedccc88, select_lex=0x7fb3fedcd388) at /src/10.1/sql/sql_select.cc:3429
|
#13 0x0000562ed8948d6b in handle_select (thd=0x7fb3fedc9270, lex=0x7fb3fedccbc0, result=0x7fb3f9653900, setup_tables_done_option=0) at /src/10.1/sql/sql_select.cc:384
|
#14 0x0000562ed8919096 in execute_sqlcom_select (thd=0x7fb3fedc9270, all_tables=0x7fb3f9653238) at /src/10.1/sql/sql_parse.cc:5936
|
#15 0x0000562ed890ee72 in mysql_execute_command (thd=0x7fb3fedc9270) at /src/10.1/sql/sql_parse.cc:2962
|
#16 0x0000562ed891c6de in mysql_parse (thd=0x7fb3fedc9270, rawbuf=0x7fb3f9652cc8 "SELECT NULLIF( NOT f, 1 ) FROM t1", length=33, parser_state=0x7fb4051605e0) at /src/10.1/sql/sql_parse.cc:7336
|
#17 0x0000562ed890b0d9 in dispatch_command (command=COM_QUERY, thd=0x7fb3fedc9270, packet=0x7fb3fdfc9731 "SELECT NULLIF( NOT f, 1 ) FROM t1", packet_length=33) at /src/10.1/sql/sql_parse.cc:1488
|
#18 0x0000562ed8909e0b in do_command (thd=0x7fb3fedc9270) at /src/10.1/sql/sql_parse.cc:1109
|
#19 0x0000562ed8a3fbc0 in do_handle_one_connection (thd_arg=0x7fb3fedc9270) at /src/10.1/sql/sql_connect.cc:1349
|
#20 0x0000562ed8a3f924 in handle_one_connection (arg=0x7fb3fedc9270) at /src/10.1/sql/sql_connect.cc:1261
|
#21 0x0000562ed9147a5a in pfs_spawn_thread (arg=0x7fb3fd9b0bf0) at /src/10.1/storage/perfschema/pfs.cc:1860
|
#22 0x00007fb404ddb0a4 in start_thread () from /lib64/libpthread.so.0
|
#23 0x00007fb402f4904d in clone () from /lib64/libc.so.6
|
Also reproducible on bb-10.1-serg commit 5069ba1854418a2172da143875a0f1827b976ddb.
Not reproducible on 10.0.
{"report":{"fcp":940,"ttfb":167.20000004768372,"pageVisibility":"visible","entityId":55806,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"4c410203-b980-4d33-9594-9a2402e87754","navigationType":0,"readyForUser":998,"redirectCount":0,"resourceLoadedEnd":1012,"resourceLoadedStart":174.79999995231628,"resourceTiming":[{"duration":324.40000009536743,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":174.79999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":174.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":499.2000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":324.09999990463257,"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":175.20000004768372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":175.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":499.2999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":333.2999999523163,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":175.29999995231628,"connectEnd":175.29999995231628,"connectStart":175.29999995231628,"domainLookupEnd":175.29999995231628,"domainLookupStart":175.29999995231628,"fetchStart":175.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":175.29999995231628,"responseEnd":508.59999990463257,"responseStart":508.59999990463257,"secureConnectionStart":175.29999995231628},{"duration":360.10000014305115,"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":175.39999985694885,"connectEnd":175.39999985694885,"connectStart":175.39999985694885,"domainLookupEnd":175.39999985694885,"domainLookupStart":175.39999985694885,"fetchStart":175.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":175.39999985694885,"responseEnd":535.5,"responseStart":535.5,"secureConnectionStart":175.39999985694885},{"duration":363.7999999523163,"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":175.5,"connectEnd":175.5,"connectStart":175.5,"domainLookupEnd":175.5,"domainLookupStart":175.5,"fetchStart":175.5,"redirectEnd":0,"redirectStart":0,"requestStart":175.5,"responseEnd":539.2999999523163,"responseStart":539.2999999523163,"secureConnectionStart":175.5},{"duration":364.10000014305115,"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":175.59999990463257,"connectEnd":175.59999990463257,"connectStart":175.59999990463257,"domainLookupEnd":175.59999990463257,"domainLookupStart":175.59999990463257,"fetchStart":175.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":175.59999990463257,"responseEnd":539.7000000476837,"responseStart":539.7000000476837,"secureConnectionStart":175.59999990463257},{"duration":364.39999985694885,"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":175.70000004768372,"connectEnd":175.70000004768372,"connectStart":175.70000004768372,"domainLookupEnd":175.70000004768372,"domainLookupStart":175.70000004768372,"fetchStart":175.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":175.70000004768372,"responseEnd":540.0999999046326,"responseStart":540.0999999046326,"secureConnectionStart":175.70000004768372},{"duration":364.90000009536743,"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":175.79999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":175.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":540.7000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":364.80000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":175.89999985694885,"connectEnd":175.89999985694885,"connectStart":175.89999985694885,"domainLookupEnd":175.89999985694885,"domainLookupStart":175.89999985694885,"fetchStart":175.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":175.89999985694885,"responseEnd":540.7000000476837,"responseStart":540.7000000476837,"secureConnectionStart":175.89999985694885},{"duration":365.2999999523163,"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":176,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":176,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":541.2999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":365.40000009536743,"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":176.09999990463257,"connectEnd":176.09999990463257,"connectStart":176.09999990463257,"domainLookupEnd":176.09999990463257,"domainLookupStart":176.09999990463257,"fetchStart":176.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":176.09999990463257,"responseEnd":541.5,"responseStart":541.5,"secureConnectionStart":176.09999990463257},{"duration":657.2000000476837,"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":176.79999995231628,"connectEnd":176.79999995231628,"connectStart":176.79999995231628,"domainLookupEnd":176.79999995231628,"domainLookupStart":176.79999995231628,"fetchStart":176.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":176.79999995231628,"responseEnd":834,"responseStart":834,"secureConnectionStart":176.79999995231628},{"duration":835.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":176.79999995231628,"connectEnd":176.79999995231628,"connectStart":176.79999995231628,"domainLookupEnd":176.79999995231628,"domainLookupStart":176.79999995231628,"fetchStart":176.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":176.79999995231628,"responseEnd":1012,"responseStart":1011.8999998569489,"secureConnectionStart":176.79999995231628},{"duration":276.7000000476837,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":726,"connectEnd":726,"connectStart":726,"domainLookupEnd":726,"domainLookupStart":726,"fetchStart":726,"redirectEnd":0,"redirectStart":0,"requestStart":726,"responseEnd":1002.7000000476837,"responseStart":1002.7000000476837,"secureConnectionStart":726},{"duration":218.39999985694885,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":918,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":918,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1136.3999998569489,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":36,"responseStart":167,"responseEnd":172,"domLoading":172,"domInteractive":1096,"domContentLoadedEventStart":1096,"domContentLoadedEventEnd":1131,"domComplete":2152,"loadEventStart":2152,"loadEventEnd":2154,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1072.0999999046326},{"name":"bigPipe.sidebar-id.end","time":1072.7999999523163},{"name":"bigPipe.activity-panel-pipe-id.start","time":1072.8999998569489},{"name":"bigPipe.activity-panel-pipe-id.end","time":1075.2999999523163},{"name":"activityTabFullyLoaded","time":1137}],"measures":[],"correlationId":"8b5bba612874b7","effectiveType":"4g","downlink":9.5,"rtt":0,"serverDuration":75,"dbReadsTimeInMs":14,"dbConnsTimeInMs":23,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}