The following example causes my mysqld process to crash and restart:
create table t1 (id int(11) not null auto_increment, val varchar(100) null,primary key (id)) engine=innodb;
|
create table t2 (id int(11) not null auto_increment, val varchar(100) null,primary key (id)) engine=innodb;
|
|
insert into t1 (val) values('a');
|
insert into t2 (val) values('1');
|
|
update
|
(
|
select
|
val
|
from
|
(
|
select
|
v.val
|
from
|
t2 wrong_table_alias
|
) t4
|
) t3
|
inner join t1 on
|
t1.id=t3.val
|
set
|
t1.val=t3.val
|
;
|
will cause the client to report:
ERROR 2013 (HY000): Lost connection to MySQL server during query
with the following appearing in the mysql-error.log
Server version: 5.5.32-MariaDB-log
|
key_buffer_size=134217728
|
read_buffer_size=131072
|
max_used_connections=2
|
max_threads=502
|
thread_count=1
|
It is possible that mysqld could use up to
|
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 1232371 K bytes of memory
|
Hope that's ok; if not, decrease some variables in the equation.
|
|
Thread pointer: 0x0x11bacd30
|
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 = 0x7f59a050bd78 thread_stack 0x48000
|
??:0(my_print_stacktrace)[0xa8631e]
|
??:0(handle_fatal_signal)[0x6cdd0b]
|
??:0(??)[0x35e4e0f500]
|
??:0(find_field_in_table(THD*, TABLE*, char const*, unsigned int, bool, unsigned int*))[0x544132]
|
??:0(find_field_in_table_ref(THD*, TABLE_LIST*, char const*, unsigned int, char const*, char const*, char const*, Item**, bool, bool, unsigned int*, bool, TABLE_LIST**))[0x544c6f]
|
??:0(find_field_in_tables(THD*, Item_ident*, TABLE_LIST*, TABLE_LIST*, Item**, find_item_error_report_type, bool, bool))[0x545002]
|
??:0(Item_field::fix_fields(THD*, Item**))[0x6eca07]
|
??:0(setup_fields(THD*, Item**, List<Item>&, enum_mark_columns, List<Item>*, bool))[0x53fe33]
|
??:0(JOIN::prepare(Item***, TABLE_LIST*, unsigned int, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, st_select_lex*, st_select_lex_unit*))[0x5bd599]
|
??:0(st_select_lex_unit::prepare(THD*, select_result*, unsigned long))[0x60dd8a]
|
??:0(mysql_derived_prepare(THD*, LEX*, TABLE_LIST*))[0x56886e]
|
??:0(mysql_handle_derived(LEX*, unsigned int))[0x569892]
|
??:0(mysql_multi_update_prepare(THD*))[0x6102dd]
|
??:0(mysql_execute_command(THD*))[0x58b08d]
|
??:0(mysql_parse(THD*, char*, unsigned int, Parser_state*))[0x58e369]
|
??:0(dispatch_command(enum_server_command, THD*, char*, unsigned int))[0x58f790]
|
??:0(do_handle_one_connection(THD*))[0x647cdf]
|
??:0(handle_one_connection)[0x647d7c]
|
??:0(??)[0x35e4e07851]
|
??:0(??)[0x35e4ae890d]
|
|
Trying to get some variables.
|
Some pointers may be invalid and cause the dump to abort.
|
Query (0x7f5994004c38): is an invalid pointer
|
Connection ID (thread ID): 2
|
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=off,table_elimination=on,extended_keys=off
|
|
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.
|
{"report":{"fcp":1085.6999998092651,"ttfb":296.80000019073486,"pageVisibility":"visible","entityId":26009,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"5052f39f-e2be-4fe3-91e0-fa5a6eaa3493","navigationType":0,"readyForUser":1185.1999998092651,"redirectCount":0,"resourceLoadedEnd":819.3000001907349,"resourceLoadedStart":302.69999980926514,"resourceTiming":[{"duration":35.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":302.69999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":302.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":338.19999980926514,"responseStart":0,"secureConnectionStart":0},{"duration":34.700000286102295,"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":304.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":304.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":338.80000019073486,"responseStart":0,"secureConnectionStart":0},{"duration":295.3999996185303,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":304.30000019073486,"connectEnd":304.30000019073486,"connectStart":304.30000019073486,"domainLookupEnd":304.30000019073486,"domainLookupStart":304.30000019073486,"fetchStart":304.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":342.40000009536743,"responseEnd":599.6999998092651,"responseStart":361,"secureConnectionStart":304.30000019073486},{"duration":508.59999990463257,"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":304.40000009536743,"connectEnd":304.40000009536743,"connectStart":304.40000009536743,"domainLookupEnd":304.40000009536743,"domainLookupStart":304.40000009536743,"fetchStart":304.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":342.59999990463257,"responseEnd":813,"responseStart":362.40000009536743,"secureConnectionStart":304.40000009536743},{"duration":64.7000002861023,"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":304.69999980926514,"connectEnd":304.69999980926514,"connectStart":304.69999980926514,"domainLookupEnd":304.69999980926514,"domainLookupStart":304.69999980926514,"fetchStart":304.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":345.59999990463257,"responseEnd":369.40000009536743,"responseStart":367.59999990463257,"secureConnectionStart":304.69999980926514},{"duration":72.2999997138977,"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":304.90000009536743,"connectEnd":304.90000009536743,"connectStart":304.90000009536743,"domainLookupEnd":304.90000009536743,"domainLookupStart":304.90000009536743,"fetchStart":304.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":348.69999980926514,"responseEnd":377.19999980926514,"responseStart":372.69999980926514,"secureConnectionStart":304.90000009536743},{"duration":72.80000019073486,"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":305,"connectEnd":305,"connectStart":305,"domainLookupEnd":305,"domainLookupStart":305,"fetchStart":305,"redirectEnd":0,"redirectStart":0,"requestStart":348.90000009536743,"responseEnd":377.80000019073486,"responseStart":374.59999990463257,"secureConnectionStart":305},{"duration":43.40000009536743,"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":305.19999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":305.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":348.59999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":72.90000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":305.40000009536743,"connectEnd":305.40000009536743,"connectStart":305.40000009536743,"domainLookupEnd":305.40000009536743,"domainLookupStart":305.40000009536743,"fetchStart":305.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":349.59999990463257,"responseEnd":378.30000019073486,"responseStart":375.19999980926514,"secureConnectionStart":305.40000009536743},{"duration":43.09999990463257,"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":305.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":305.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":348.69999980926514,"responseStart":0,"secureConnectionStart":0},{"duration":91.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":305.69999980926514,"connectEnd":305.69999980926514,"connectStart":305.69999980926514,"domainLookupEnd":305.69999980926514,"domainLookupStart":305.69999980926514,"fetchStart":305.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":378.69999980926514,"responseEnd":397.19999980926514,"responseStart":396.19999980926514,"secureConnectionStart":305.69999980926514},{"duration":465.90000009536743,"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":353.40000009536743,"connectEnd":353.40000009536743,"connectStart":353.40000009536743,"domainLookupEnd":353.40000009536743,"domainLookupStart":353.40000009536743,"fetchStart":353.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":437.09999990463257,"responseEnd":819.3000001907349,"responseStart":817.1999998092651,"secureConnectionStart":353.40000009536743},{"duration":455,"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":364.30000019073486,"connectEnd":364.30000019073486,"connectStart":364.30000019073486,"domainLookupEnd":364.30000019073486,"domainLookupStart":364.30000019073486,"fetchStart":364.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":441.90000009536743,"responseEnd":819.3000001907349,"responseStart":817.5999999046326,"secureConnectionStart":364.30000019073486},{"duration":155.09999990463257,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":785.5,"connectEnd":785.5,"connectStart":785.5,"domainLookupEnd":785.5,"domainLookupStart":785.5,"fetchStart":785.5,"redirectEnd":0,"redirectStart":0,"requestStart":906.8000001907349,"responseEnd":940.5999999046326,"responseStart":939.0999999046326,"secureConnectionStart":785.5}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":52,"responseStart":296,"responseEnd":364,"domLoading":300,"domInteractive":1294,"domContentLoadedEventStart":1294,"domContentLoadedEventEnd":1357,"domComplete":1701,"loadEventStart":1701,"loadEventEnd":1701,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1268.5},{"name":"bigPipe.sidebar-id.end","time":1269.5},{"name":"bigPipe.activity-panel-pipe-id.start","time":1269.5999999046326},{"name":"bigPipe.activity-panel-pipe-id.end","time":1271.5},{"name":"activityTabFullyLoaded","time":1373.4000000953674}],"measures":[],"correlationId":"ade0929b99d0b","effectiveType":"4g","downlink":9.9,"rtt":0,"serverDuration":101,"dbReadsTimeInMs":9,"dbConnsTimeInMs":18,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
I realized that I attached the mysql-error.log from a 5.5.32 server, but it also still affects a 5.5.33a server. Here is the log from that server
131015 13:51:28 [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 http://kb.askmonty.org/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: 5.5.33a-MariaDB-log
key_buffer_size=134217728
read_buffer_size=131072
max_used_connections=12
max_threads=502
thread_count=1
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 1232371 K bytes of memory
Hope that's ok; if not, decrease some variables in the equation.
Thread pointer: 0x0x7ffa1c5be000
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 = 0x7ffc5584dd58 thread_stack 0x48000
??:0(my_print_stacktrace)[0xa896be]
??:0(handle_fatal_signal)[0x6d00bb]
:0()[0x346a80f500]
??:0(find_field_in_table(THD*, TABLE*, char const*, unsigned int, bool, unsigned int*))[0x544bd2]
??:0(find_field_in_table_ref(THD*, TABLE_LIST*, char const*, unsigned int, char const*, char const*, char const*, Item*, bool, bool, unsigned int, bool, TABLE_LIST**))[0x54570f]
??:0(find_field_in_tables(THD*, Item_ident*, TABLE_LIST*, TABLE_LIST*, Item**, find_item_error_report_type, bool, bool))[0x545aa2]
??:0(Item_field::fix_fields(THD*, Item**))[0x6ef087]
??:0(setup_fields(THD*, Item*, List<Item>&, enum_mark_columns, List<Item>, bool))[0x5408d3]
??:0(JOIN::prepare(Item**, TABLE_LIST, unsigned int, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, st_select_lex*, st_select_lex_unit*))[0x5bee89]
??:0(st_select_lex_unit::prepare(THD*, select_result*, unsigned long))[0x60fbda]
??:0(mysql_derived_prepare(THD*, LEX*, TABLE_LIST*))[0x56930e]
??:0(mysql_handle_derived(LEX*, unsigned int))[0x56a332]
??:0(mysql_multi_update_prepare(THD*))[0x61212d]
??:0(mysql_execute_command(THD*))[0x58bb35]
??:0(mysql_parse(THD*, char*, unsigned int, Parser_state*))[0x58ee19]
??:0(dispatch_command(enum_server_command, THD*, char*, unsigned int))[0x590270]
??:0(do_handle_one_connection(THD*))[0x649caf]
??:0(handle_one_connection)[0x649d4c]
:0()[0x346a807851]
:0()[0x346a4e890d]
Trying to get some variables.
Some pointers may be invalid and cause the dump to abort.
Query (0x7ffa0b01f018): is an invalid pointer
Connection ID (thread ID): 360719
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=off,table_elimination=on,extended_keys=off
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.