-
Bug
-
-
Critical
-
Resolution:
Fixed
-
10.3.17, 10.4.12, 10.2(EOL), 10.3(EOL), 10.4(EOL), 10.5
-
-
-
-
Reproducible on OpenSUSE Tumbleweed (10.4.12) and CentOS 8.1.1911 (Core) (10.3.17)
Attempting to create a view with a WITH clause crashes every time.
Steps to reproduce:
|
MariaDB [(none)]> CREATE TABLE test.tbl1 ( f CHAR(1));
|
Query OK, 0 rows affected (0.019 sec)
|
|
MariaDB [(none)]> CREATE VIEW test.vw1 AS WITH t1 AS (SELECT * FROM test.tbl1) SELECT * FROM t1;
|
ERROR 2013 (HY000): Lost connection to MySQL server during query
|
I have grabbed the core file, will provide if needed
mysql log:
200602 13:14:42 [ERROR] mysqld got signal 11 ;
|
This could be because you hit a bug. It is also possible that this binary
|
or one of the libraries it was linked against is corrupt, improperly built,
|
or misconfigured. This error can also be caused by malfunctioning hardware.
|
|
To report this bug, see https://mariadb.com/kb/en/reporting-bugs
|
|
We will try our best to scrape up some info that will hopefully help
|
diagnose the problem, but since we have already crashed,
|
something is definitely wrong and this may fail.
|
|
Server version: 10.4.12-MariaDB
|
key_buffer_size=134217728
|
read_buffer_size=131072
|
max_used_connections=1
|
max_threads=153
|
thread_count=7
|
It is possible that mysqld could use up to
|
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 467756 K bytes of memory
|
Hope that's ok; if not, decrease some variables in the equation.
|
|
Thread pointer: 0x7f5dd0000c48
|
Attempting backtrace. You can use the following information to find out
|
where mysqld died. If you see no messages after this, something went
|
terribly wrong...
|
stack_bottom = 0x7f5e3c0c8de8 thread_stack 0x49000
|
/usr/sbin/mysqld(my_print_stacktrace+0x38)[0x5589fbb90b68]
|
/usr/sbin/mysqld(handle_fatal_signal+0x4dd)[0x5589fc0220dd]
|
/lib64/libpthread.so.0(+0x141e0)[0x7f5e3fe181e0]
|
/usr/sbin/mysqld(strnmov+0x10)[0x5589fbb3a5a0]
|
/usr/sbin/mysqld(_Z7acl_getPKcS0_S0_S0_c+0x85)[0x5589fc2bb1c5]
|
/usr/sbin/mysqld(_Z31fill_effective_table_privilegesP3THDP13st_grant_infoPKcS4_+0x79)[0x5589fc2a8669]
|
/usr/sbin/mysqld(_Z20create_view_precheckP3THDP10TABLE_LISTS2_21enum_view_create_mode+0xe1)[0x5589fc185d11]
|
/usr/sbin/mysqld(_Z17mysql_create_viewP3THDP10TABLE_LIST21enum_view_create_mode+0x89)[0x5589fc18de09]
|
/usr/sbin/mysqld(_Z21mysql_execute_commandP3THD+0x3199)[0x5589fc23c919]
|
/usr/sbin/mysqld(_Z11mysql_parseP3THDPcjP12Parser_statebb+0x25f)[0x5589fbadaf0f]
|
/usr/sbin/mysqld(_Z16dispatch_command19enum_server_commandP3THDPcjbb+0x129b)[0x5589fc243bab]
|
/usr/sbin/mysqld(_Z10do_commandP3THD+0x14f)[0x5589fc245d3f]
|
/usr/sbin/mysqld(_Z24do_handle_one_connectionP7CONNECT+0x1d4)[0x5589fc145154]
|
/usr/sbin/mysqld(handle_one_connection+0x32)[0x5589fc1452a2]
|
/lib64/libpthread.so.0(+0x8efa)[0x7f5e3fe0cefa]
|
/lib64/libc.so.6(clone+0x3f)[0x7f5e3f45e3df]
|
|
Trying to get some variables.
|
Some pointers may be invalid and cause the dump to abort.
|
Query (0x7f5dd000ff70): CREATE VIEW test.vw1 AS WITH t1 AS (SELECT * FROM test.tbl1) SELECT * FROM t1
|
Connection ID (thread ID): 9
|
Status: NOT_KILLED
|
|
Optimizer switch: index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,index_merge_sort_intersection=off,engine_condition_pushdown=off,index_condition_pushdown=on,derived_merge=on,derived_with_keys=on,firstmatch=on,loosescan=on,materialization=on,in_to_exists=on,semijoin=on,partial_match_rowid_merge=on,partial_match_table_scan=on,subquery_cache=on,mrr=off,mrr_cost_based=off,mrr_sort_keys=off,outer_join_with_cache=on,semijoin_with_cache=on,join_cache_incremental=on,join_cache_hashed=on,join_cache_bka=on,optimize_join_buffer_size=on,table_elimination=on,extended_keys=on,exists_to_in=on,orderby_uses_equalities=on,condition_pushdown_for_derived=on,split_materialized=on,condition_pushdown_for_subquery=on,rowid_filter=on,condition_pushdown_from_having=on
|
|
The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains
|
information that should help you find out what is causing the crash.
|
Writing a core file...
|
Working directory at /var/lib/mysql
|
Resource Limits:
|
Limit Soft Limit Hard Limit Units
|
Max cpu time unlimited unlimited seconds
|
Max file size unlimited unlimited bytes
|
Max data size unlimited unlimited bytes
|
Max stack size 8388608 unlimited bytes
|
Max core file size unlimited unlimited bytes
|
Max resident set unlimited unlimited bytes
|
Max processes 15625 15625 processes
|
Max open files 4186 4186 files
|
Max locked memory 65536 65536 bytes
|
Max address space unlimited unlimited bytes
|
Max file locks unlimited unlimited locks
|
Max pending signals 15625 15625 signals
|
Max msgqueue size 819200 819200 bytes
|
Max nice priority 0 0
|
Max realtime priority 0 0
|
Max realtime timeout unlimited unlimited us
|
Core pattern: /tmp/corefiles/core
|
{"report":{"fcp":830.7000002861023,"ttfb":202.5,"pageVisibility":"visible","entityId":87725,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"68894602-1aa5-4342-b8fd-9b5713a03927","navigationType":0,"readyForUser":926.4000000953674,"redirectCount":0,"resourceLoadedEnd":1058.8000001907349,"resourceLoadedStart":207.90000009536743,"resourceTiming":[{"duration":89,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":207.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":207.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":296.90000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":128.5,"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":208.2000002861023,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":208.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":336.7000002861023,"responseStart":0,"secureConnectionStart":0},{"duration":157,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":208.40000009536743,"connectEnd":208.40000009536743,"connectStart":208.40000009536743,"domainLookupEnd":208.40000009536743,"domainLookupStart":208.40000009536743,"fetchStart":208.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":208.40000009536743,"responseEnd":365.40000009536743,"responseStart":365.40000009536743,"secureConnectionStart":208.40000009536743},{"duration":280.90000009536743,"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":208.5,"connectEnd":208.5,"connectStart":208.5,"domainLookupEnd":208.5,"domainLookupStart":208.5,"fetchStart":208.5,"redirectEnd":0,"redirectStart":0,"requestStart":208.5,"responseEnd":489.40000009536743,"responseStart":489.40000009536743,"secureConnectionStart":208.5},{"duration":285.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":208.7000002861023,"connectEnd":208.7000002861023,"connectStart":208.7000002861023,"domainLookupEnd":208.7000002861023,"domainLookupStart":208.7000002861023,"fetchStart":208.7000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":208.7000002861023,"responseEnd":494.2000002861023,"responseStart":494.1000003814697,"secureConnectionStart":208.7000002861023},{"duration":285.90000009536743,"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":208.90000009536743,"connectEnd":208.90000009536743,"connectStart":208.90000009536743,"domainLookupEnd":208.90000009536743,"domainLookupStart":208.90000009536743,"fetchStart":208.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":208.90000009536743,"responseEnd":494.80000019073486,"responseStart":494.7000002861023,"secureConnectionStart":208.90000009536743},{"duration":286.19999980926514,"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":209.10000038146973,"connectEnd":209.10000038146973,"connectStart":209.10000038146973,"domainLookupEnd":209.10000038146973,"domainLookupStart":209.10000038146973,"fetchStart":209.10000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":209.10000038146973,"responseEnd":495.30000019073486,"responseStart":495.30000019073486,"secureConnectionStart":209.10000038146973},{"duration":303.80000019073486,"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":209.30000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":209.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":513.1000003814697,"responseStart":0,"secureConnectionStart":0},{"duration":286.5,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":209.40000009536743,"connectEnd":209.40000009536743,"connectStart":209.40000009536743,"domainLookupEnd":209.40000009536743,"domainLookupStart":209.40000009536743,"fetchStart":209.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":209.40000009536743,"responseEnd":495.90000009536743,"responseStart":495.90000009536743,"secureConnectionStart":209.40000009536743},{"duration":303.59999990463257,"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":209.60000038146973,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":209.60000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":513.2000002861023,"responseStart":0,"secureConnectionStart":0},{"duration":287,"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":209.7000002861023,"connectEnd":209.7000002861023,"connectStart":209.7000002861023,"domainLookupEnd":209.7000002861023,"domainLookupStart":209.7000002861023,"fetchStart":209.7000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":209.7000002861023,"responseEnd":496.7000002861023,"responseStart":496.6000003814697,"secureConnectionStart":209.7000002861023},{"duration":669.4000000953674,"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":215.5,"connectEnd":215.5,"connectStart":215.5,"domainLookupEnd":215.5,"domainLookupStart":215.5,"fetchStart":215.5,"redirectEnd":0,"redirectStart":0,"requestStart":215.5,"responseEnd":884.9000000953674,"responseStart":884.9000000953674,"secureConnectionStart":215.5},{"duration":670.6999998092651,"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":215.60000038146973,"connectEnd":215.60000038146973,"connectStart":215.60000038146973,"domainLookupEnd":215.60000038146973,"domainLookupStart":215.60000038146973,"fetchStart":215.60000038146973,"redirectEnd":0,"redirectStart":0,"requestStart":215.60000038146973,"responseEnd":886.3000001907349,"responseStart":886.3000001907349,"secureConnectionStart":215.60000038146973},{"duration":326.3999996185303,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":525.6000003814697,"connectEnd":525.6000003814697,"connectStart":525.6000003814697,"domainLookupEnd":525.6000003814697,"domainLookupStart":525.6000003814697,"fetchStart":525.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":525.6000003814697,"responseEnd":852,"responseStart":852,"secureConnectionStart":525.6000003814697},{"duration":210.5,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":823.9000000953674,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":823.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1034.4000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":83.40000009536743,"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":975.4000000953674,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":975.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1058.8000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":82,"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":976.4000000953674,"connectEnd":976.4000000953674,"connectStart":976.4000000953674,"domainLookupEnd":976.4000000953674,"domainLookupStart":976.4000000953674,"fetchStart":976.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":976.4000000953674,"responseEnd":1058.4000000953674,"responseStart":1058.4000000953674,"secureConnectionStart":976.4000000953674},{"duration":87.90000009536743,"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":976.9000000953674,"connectEnd":976.9000000953674,"connectStart":976.9000000953674,"domainLookupEnd":976.9000000953674,"domainLookupStart":976.9000000953674,"fetchStart":976.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":976.9000000953674,"responseEnd":1064.8000001907349,"responseStart":1064.8000001907349,"secureConnectionStart":976.9000000953674}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":32,"responseStart":203,"responseEnd":213,"domLoading":206,"domInteractive":1064,"domContentLoadedEventStart":1064,"domContentLoadedEventEnd":1120,"domComplete":2120,"loadEventStart":2120,"loadEventEnd":2122,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1045.5},{"name":"bigPipe.sidebar-id.end","time":1046.3000001907349},{"name":"bigPipe.activity-panel-pipe-id.start","time":1046.5},{"name":"bigPipe.activity-panel-pipe-id.end","time":1049.3000001907349},{"name":"activityTabFullyLoaded","time":1138.8000001907349}],"measures":[],"correlationId":"32c23878f6ee89","effectiveType":"4g","downlink":9.9,"rtt":0,"serverDuration":100,"dbReadsTimeInMs":13,"dbConnsTimeInMs":22,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}