Hi guys! i got a crash from server, i don't know the query yet to reproduce the error, but i have the log, could anyone help me? i will try to find the query
the version is 10.0.3, not 10.0.4, maybe this bug was resolved in other MDEV
here the log output:
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: 10.0.3-MariaDB-log
|
key_buffer_size=16777216
|
read_buffer_size=1048576
|
max_used_connections=1
|
max_threads=102
|
thread_count=1
|
It is possible that mysqld could use up to
|
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 227275 K bytes of memory
|
Hope that's ok; if not, decrease some variables in the equation.
|
|
Thread pointer: 0x0x39ba9e8
|
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 = 0x7f463439bed8 thread_stack 0x48000
|
mysys/stacktrace.c:247(my_print_stacktrace)[0xa71d19]
|
sql/signal_handler.cc:153(handle_fatal_signal)[0x6a54f8]
|
??:0(??)[0x7f4638f28670]
|
sql/item_cmpfunc.cc:6065(Item_equal::fix_length_and_dec())[0x6d31e5]
|
sql/item_cmpfunc.cc:5985(Item_equal::fix_fields(THD*, Item**))[0x6c84ce]
|
sql/item_cmpfunc.cc:4338(Item_cond::fix_fields(THD*, Item**))[0x6ce6b8]
|
sql/item_subselect.cc:2504(Item_in_subselect::inject_in_to_exists_cond(JOIN*))[0x71db68]
|
sql/opt_subselect.cc:5524(JOIN::choose_subquery_plan(unsigned long long))[0x65ebbb]
|
sql/sql_select.cc:3920(make_join_statistics)[0x4ff779]
|
sql/sql_select.cc:1301(JOIN::optimize_inner())[0x5cda45]
|
sql/sql_select.cc:1010(JOIN::optimize())[0x5cfc39]
|
sql/sql_lex.cc:3500(st_select_lex::optimize_unflattened_subqueries(bool))[0x582cb0]
|
sql/sql_select.cc:1728(JOIN::optimize_inner())[0x5ced9d]
|
sql/sql_select.cc:1010(JOIN::optimize())[0x5cfd2b]
|
sql/sql_select.cc:371(handle_select(THD*, LEX*, select_result*, unsigned long))[0x5d0814]
|
sql/sql_parse.cc:5044(execute_sqlcom_select)[0x584554]
|
sql/sql_parse.cc:2483(mysql_execute_command(THD*))[0x58ed8b]
|
sql/sql_parse.cc:6176(mysql_parse(THD*, char*, unsigned int, Parser_state*))[0x5916d8]
|
sql/sql_parse.cc:1276(dispatch_command(enum_server_command, THD*, char*, unsigned int))[0x593092]
|
sql/sql_connect.cc:1267(do_handle_one_connection(THD*))[0x636754]
|
sql/sql_connect.cc:1183(handle_one_connection)[0x6367b8]
|
??:0(??)[0x7f4638f20ce2]
|
??:0(??)[0x7f4637234a0d]
|
|
Trying to get some variables.
|
Some pointers may be invalid and cause the dump to abort.
|
Query (0x7f46080008e0): 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,exists_to_in=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.
|
131005 11:40:26 mysqld_safe Number of processes running now: 0
|
131005 11:40:26 mysqld_safe mysqld restarted
|
found the query...
|
SELECT arquivo_id,usuario,datahora_gmt,tipo_arquivo,nome_arquivo,tamanho_arquivo FROM importacao_arquivos AS a WHERE datahora_gmt>='0000-00-00 00:00:00' AND datahora_gmt<='2013-10-07 02:59:59' AND tipo='r' AND (tipo_arquivo,arquivo_id) NOT IN (SELECT tipo_arquivo,arquivo_id FROM importacao_arquivos_datas WHERE (tipo_arquivo,arquivo_id)=(a.tipo_arquivo,a.arquivo_id)) ORDER BY arquivo_id DESC
|
|
attached the file of table dump
this query is the workaround i found to not crash the server, but it's wrong since it do a table scan
|
SELECT arquivo_id,usuario,datahora_gmt,tipo_arquivo,nome_arquivo,tamanho_arquivo
|
FROM importacao_arquivos AS a
|
WHERE datahora_gmt>='0000-00-00 00:00:00' AND datahora_gmt<='2013-10-07 02:59:59' AND
|
tipo='r'
|
AND (tipo_arquivo,arquivo_id) NOT IN (
|
SELECT tipo_arquivo,arquivo_id FROM importacao_arquivos_datas
|
#WHERE (tipo_arquivo,arquivo_id)=(a.tipo_arquivo,a.arquivo_id) <- removing the reference from table don't crash the server
|
)
|
ORDER BY arquivo_id DESC
|
{"report":{"fcp":2453.5,"ttfb":861.5,"pageVisibility":"visible","entityId":25928,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"07949dc4-16bf-40ac-9f76-01949ae54865","navigationType":0,"readyForUser":2550.5999999046326,"redirectCount":0,"resourceLoadedEnd":2941.4000000953674,"resourceLoadedStart":868.5,"resourceTiming":[{"duration":935.6999998092651,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":868.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":868.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1804.1999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":935.8000001907349,"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":868.6999998092651,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":868.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1804.5,"responseStart":0,"secureConnectionStart":0},{"duration":942.5999999046326,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":869,"connectEnd":869,"connectStart":869,"domainLookupEnd":869,"domainLookupStart":869,"fetchStart":869,"redirectEnd":0,"redirectStart":0,"requestStart":869,"responseEnd":1811.5999999046326,"responseStart":1811.5999999046326,"secureConnectionStart":869},{"duration":1132.5999999046326,"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":869.1999998092651,"connectEnd":869.1999998092651,"connectStart":869.1999998092651,"domainLookupEnd":869.1999998092651,"domainLookupStart":869.1999998092651,"fetchStart":869.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":869.1999998092651,"responseEnd":2001.7999997138977,"responseStart":2001.7999997138977,"secureConnectionStart":869.1999998092651},{"duration":1157.0999999046326,"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":869.4000000953674,"connectEnd":869.4000000953674,"connectStart":869.4000000953674,"domainLookupEnd":869.4000000953674,"domainLookupStart":869.4000000953674,"fetchStart":869.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":869.4000000953674,"responseEnd":2026.5,"responseStart":2026.5,"secureConnectionStart":869.4000000953674},{"duration":1161.6999998092651,"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":869.5999999046326,"connectEnd":869.5999999046326,"connectStart":869.5999999046326,"domainLookupEnd":869.5999999046326,"domainLookupStart":869.5999999046326,"fetchStart":869.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":869.5999999046326,"responseEnd":2031.2999997138977,"responseStart":2031.2999997138977,"secureConnectionStart":869.5999999046326},{"duration":1164.0999999046326,"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":869.9000000953674,"connectEnd":869.9000000953674,"connectStart":869.9000000953674,"domainLookupEnd":869.9000000953674,"domainLookupStart":869.9000000953674,"fetchStart":869.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":869.9000000953674,"responseEnd":2034,"responseStart":2034,"secureConnectionStart":869.9000000953674},{"duration":1175.6999998092651,"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":870,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":870,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":2045.6999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":1166.0999999046326,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":870.1999998092651,"connectEnd":870.1999998092651,"connectStart":870.1999998092651,"domainLookupEnd":870.1999998092651,"domainLookupStart":870.1999998092651,"fetchStart":870.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":870.1999998092651,"responseEnd":2036.2999997138977,"responseStart":2036.2999997138977,"secureConnectionStart":870.1999998092651},{"duration":1175.7000002861023,"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":870.2999997138977,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":870.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":2046,"responseStart":0,"secureConnectionStart":0},{"duration":1166.8000001907349,"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":870.5999999046326,"connectEnd":870.5999999046326,"connectStart":870.5999999046326,"domainLookupEnd":870.5999999046326,"domainLookupStart":870.5999999046326,"fetchStart":870.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":870.5999999046326,"responseEnd":2037.4000000953674,"responseStart":2037.4000000953674,"secureConnectionStart":870.5999999046326},{"duration":1983.2999997138977,"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":871.5,"connectEnd":871.5,"connectStart":871.5,"domainLookupEnd":871.5,"domainLookupStart":871.5,"fetchStart":871.5,"redirectEnd":0,"redirectStart":0,"requestStart":871.5,"responseEnd":2854.7999997138977,"responseStart":2854.7999997138977,"secureConnectionStart":871.5},{"duration":2069.800000190735,"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":871.5999999046326,"connectEnd":871.5999999046326,"connectStart":871.5999999046326,"domainLookupEnd":871.5999999046326,"domainLookupStart":871.5999999046326,"fetchStart":871.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":871.5999999046326,"responseEnd":2941.4000000953674,"responseStart":2941.4000000953674,"secureConnectionStart":871.5999999046326},{"duration":792.5,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":2063.4000000953674,"connectEnd":2063.4000000953674,"connectStart":2063.4000000953674,"domainLookupEnd":2063.4000000953674,"domainLookupStart":2063.4000000953674,"fetchStart":2063.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":2063.4000000953674,"responseEnd":2855.9000000953674,"responseStart":2855.9000000953674,"secureConnectionStart":2063.4000000953674},{"duration":526,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":2446.199999809265,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":2446.199999809265,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":2972.199999809265,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":689,"responseStart":862,"responseEnd":864,"domLoading":866,"domInteractive":2977,"domContentLoadedEventStart":2977,"domContentLoadedEventEnd":3029,"domComplete":4167,"loadEventStart":4167,"loadEventEnd":4172,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":2943.699999809265},{"name":"bigPipe.sidebar-id.end","time":2944.5999999046326},{"name":"bigPipe.activity-panel-pipe-id.start","time":2944.699999809265},{"name":"bigPipe.activity-panel-pipe-id.end","time":2947.199999809265},{"name":"activityTabFullyLoaded","time":3036.199999809265}],"measures":[],"correlationId":"74b0bf90222e65","effectiveType":"4g","downlink":9,"rtt":0,"serverDuration":101,"dbReadsTimeInMs":11,"dbConnsTimeInMs":20,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}