-
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":925.6999998092651,"ttfb":322.80000019073486,"pageVisibility":"visible","entityId":87725,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"1260ab56-c06c-4a3d-aafe-a6a72b538191","navigationType":0,"readyForUser":1020.8000001907349,"redirectCount":0,"resourceLoadedEnd":1033.5999994277954,"resourceLoadedStart":328.3999996185303,"resourceTiming":[{"duration":23.199999809265137,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":328.3999996185303,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":328.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":351.5999994277954,"responseStart":0,"secureConnectionStart":0},{"duration":24.09999942779541,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/2bf333562ca6724060a9d5f1535471f6/_/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":328.80000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":328.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":352.8999996185303,"responseStart":0,"secureConnectionStart":0},{"duration":82.69999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":328.8999996185303,"connectEnd":328.8999996185303,"connectStart":328.8999996185303,"domainLookupEnd":328.8999996185303,"domainLookupStart":328.8999996185303,"fetchStart":328.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":328.8999996185303,"responseEnd":411.5999994277954,"responseStart":411.5,"secureConnectionStart":328.8999996185303},{"duration":149,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/2bf333562ca6724060a9d5f1535471f6/_/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":329.0999994277954,"connectEnd":329.0999994277954,"connectStart":329.0999994277954,"domainLookupEnd":329.0999994277954,"domainLookupStart":329.0999994277954,"fetchStart":329.0999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":329.0999994277954,"responseEnd":478.0999994277954,"responseStart":478.0999994277954,"secureConnectionStart":329.0999994277954},{"duration":152.79999923706055,"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":329.30000019073486,"connectEnd":329.30000019073486,"connectStart":329.30000019073486,"domainLookupEnd":329.30000019073486,"domainLookupStart":329.30000019073486,"fetchStart":329.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":329.30000019073486,"responseEnd":482.0999994277954,"responseStart":482.0999994277954,"secureConnectionStart":329.30000019073486},{"duration":153.0999994277954,"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":329.5,"connectEnd":329.5,"connectStart":329.5,"domainLookupEnd":329.5,"domainLookupStart":329.5,"fetchStart":329.5,"redirectEnd":0,"redirectStart":0,"requestStart":329.5,"responseEnd":482.5999994277954,"responseStart":482.5999994277954,"secureConnectionStart":329.5},{"duration":153.0999994277954,"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":329.80000019073486,"connectEnd":329.80000019073486,"connectStart":329.80000019073486,"domainLookupEnd":329.80000019073486,"domainLookupStart":329.80000019073486,"fetchStart":329.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":329.80000019073486,"responseEnd":482.8999996185303,"responseStart":482.8999996185303,"secureConnectionStart":329.80000019073486},{"duration":225.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":329.8999996185303,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":329.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":555.6999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":153.30000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":330.0999994277954,"connectEnd":330.0999994277954,"connectStart":330.0999994277954,"domainLookupEnd":330.0999994277954,"domainLookupStart":330.0999994277954,"fetchStart":330.0999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":330.0999994277954,"responseEnd":483.3999996185303,"responseStart":483.3999996185303,"secureConnectionStart":330.0999994277954},{"duration":225.5,"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":330.30000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":330.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":555.8000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":153.5,"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":330.5,"connectEnd":330.5,"connectStart":330.5,"domainLookupEnd":330.5,"domainLookupStart":330.5,"fetchStart":330.5,"redirectEnd":0,"redirectStart":0,"requestStart":330.5,"responseEnd":484,"responseStart":484,"secureConnectionStart":330.5},{"duration":528.6999998092651,"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":331.5,"connectEnd":331.5,"connectStart":331.5,"domainLookupEnd":331.5,"domainLookupStart":331.5,"fetchStart":331.5,"redirectEnd":0,"redirectStart":0,"requestStart":331.5,"responseEnd":860.1999998092651,"responseStart":860.1999998092651,"secureConnectionStart":331.5},{"duration":529,"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":331.5999994277954,"connectEnd":331.5999994277954,"connectStart":331.5999994277954,"domainLookupEnd":331.5999994277954,"domainLookupStart":331.5999994277954,"fetchStart":331.5999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":331.5999994277954,"responseEnd":860.5999994277954,"responseStart":860.5999994277954,"secureConnectionStart":331.5999994277954},{"duration":158.30000019073486,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":567.8999996185303,"connectEnd":567.8999996185303,"connectStart":567.8999996185303,"domainLookupEnd":567.8999996185303,"domainLookupStart":567.8999996185303,"fetchStart":567.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":567.8999996185303,"responseEnd":726.1999998092651,"responseStart":726.1999998092651,"secureConnectionStart":567.8999996185303},{"duration":55.30000019073486,"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","startTime":827.0999994277954,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":827.0999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":882.3999996185303,"responseStart":0,"secureConnectionStart":0},{"duration":197.89999961853027,"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","startTime":828,"connectEnd":828,"connectStart":828,"domainLookupEnd":828,"domainLookupStart":828,"fetchStart":828,"redirectEnd":0,"redirectStart":0,"requestStart":828,"responseEnd":1025.8999996185303,"responseStart":1025.8999996185303,"secureConnectionStart":828},{"duration":205.0999994277954,"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","startTime":828.5,"connectEnd":828.5,"connectStart":828.5,"domainLookupEnd":828.5,"domainLookupStart":828.5,"fetchStart":828.5,"redirectEnd":0,"redirectStart":0,"requestStart":828.5,"responseEnd":1033.5999994277954,"responseStart":1033.5999994277954,"secureConnectionStart":828.5},{"duration":185.19999980926514,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":919.3999996185303,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":919.3999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1104.5999994277954,"responseStart":0,"secureConnectionStart":0},{"duration":146.69999980926514,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":940.8999996185303,"connectEnd":940.8999996185303,"connectStart":940.8999996185303,"domainLookupEnd":940.8999996185303,"domainLookupStart":940.8999996185303,"fetchStart":940.8999996185303,"redirectEnd":0,"redirectStart":0,"requestStart":940.8999996185303,"responseEnd":1087.5999994277954,"responseStart":1087.5,"secureConnectionStart":940.8999996185303}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":154,"responseStart":323,"responseEnd":324,"domLoading":326,"domInteractive":1105,"domContentLoadedEventStart":1105,"domContentLoadedEventEnd":1149,"domComplete":1882,"loadEventStart":1882,"loadEventEnd":1884,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1071},{"name":"bigPipe.sidebar-id.end","time":1071.8000001907349},{"name":"bigPipe.activity-panel-pipe-id.start","time":1071.8999996185303},{"name":"bigPipe.activity-panel-pipe-id.end","time":1074.3000001907349},{"name":"activityTabFullyLoaded","time":1160.6999998092651}],"measures":[],"correlationId":"31989fe1cf11fd","effectiveType":"4g","downlink":9.2,"rtt":0,"serverDuration":98,"dbReadsTimeInMs":14,"dbConnsTimeInMs":22,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}