When execute this queries server will crash:
------------
CREATE TABLE sample ( id INTEGER, sample_name1 VARCHAR(100), sample_name2 VARCHAR(100), PRIMARY KEY(id) );
|
|
INSERT INTO sample ( id, sample_name1, sample_name2 ) VALUES ( 1, 'aaaa', 'bbbb' ), ( 2, 'cccc', 'dddd' );
|
|
(
|
SELECT sample_name1 AS testname FROM sample
|
)
|
UNION
|
(
|
SELECT sample_name2 AS testname FROM sample C ORDER BY (SELECT T.sample_name1 FROM sample T WHERE T.id = C.id)
|
)
|
------------
Crash messages:
141014 9:47:29 [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: 10.0.14-MariaDB-log
|
key_buffer_size=268435456
|
read_buffer_size=131072
|
max_used_connections=1
|
max_threads=102
|
thread_count=2
|
It is possible that mysqld could use up to
|
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 486186 K bytes of memory
|
Hope that's ok; if not, decrease some variables in the equation.
|
|
Thread pointer: 0x0x7f6ea8bf5008
|
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 = 0x7f6e98d3ad30 thread_stack 0x40000
|
/usr/sbin/mysqld(my_print_stacktrace+0x2b)[0xb6b85b]
|
/usr/sbin/mysqld(handle_fatal_signal+0x398)[0x723f08]
|
/lib64/libpthread.so.0(+0xf710)[0x7f6f0b486710]
|
/usr/sbin/mysqld(_ZN10Item_field15fix_outer_fieldEP3THDPP5FieldPP4Item+0xce)[0x7440be]
|
/usr/sbin/mysqld(_ZN10Item_field10fix_fieldsEP3THDPP4Item+0x555)[0x744dd5]
|
/usr/sbin/mysqld(_ZN9Item_func10fix_fieldsEP3THDPP4Item+0x198)[0x772ac8]
|
/usr/sbin/mysqld(_Z11setup_condsP3THDP10TABLE_LISTR4ListIS1_EPP4Item+0x19c)[0x592f0c]
|
/usr/sbin/mysqld[0x6125c2]
|
/usr/sbin/mysqld(_ZN30subselect_single_select_engine7prepareEv+0x125)[0x7a0635]
|
/usr/sbin/mysqld(_ZN14Item_subselect10fix_fieldsEP3THDPP4Item+0xe5)[0x79de55]
|
/usr/sbin/mysqld[0x5f5290]
|
/usr/sbin/mysqld[0x612fc4]
|
/usr/sbin/mysqld(_ZN18st_select_lex_unit7prepareEP3THDP13select_resultm+0x32d)[0x65fcad]
|
/usr/sbin/mysqld(_Z11mysql_unionP3THDP3LEXP13select_resultP18st_select_lex_unitm+0x1f)[0x66056f]
|
/usr/sbin/mysqld(_Z13handle_selectP3THDP3LEXP13select_resultm+0x85)[0x623145]
|
/usr/sbin/mysqld[0x5cac06]
|
/usr/sbin/mysqld(_Z21mysql_execute_commandP3THD+0x4c97)[0x5d58d7]
|
/usr/sbin/mysqld[0x5d7402]
|
/usr/sbin/mysqld(_Z16dispatch_command19enum_server_commandP3THDPcj+0x1b20)[0x5d95c0]
|
/usr/sbin/mysqld(_Z24do_handle_one_connectionP3THD+0x453)[0x6946a3]
|
/usr/sbin/mysqld(handle_one_connection+0x42)[0x694772]
|
/lib64/libpthread.so.0(+0x79d1)[0x7f6f0b47e9d1]
|
/lib64/libc.so.6(clone+0x6d)[0x7f6f09b9cb6d]
|
|
Trying to get some variables.
|
Some pointers may be invalid and cause the dump to abort.
|
Query (0x7f6e98843020): is an invalid pointer
|
Connection ID (thread ID): 4
|
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,sem
|
ijoin_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=on,exists_to_in=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.
|
141014 09:47:29 mysqld_safe Number of processes running now: 0
|
141014 09:47:29 mysqld_safe mysqld restarted
|
------
Same queries run without problem on clean MySQL 5.6.16 installation.
I also tried to disable optimization switches like this:
SET optimizer_switch='derived_merge=off';
|
SET optimizer_switch='derived_with_keys=off';
|
SET optimizer_switch='engine_condition_pushdown=off';
|
SET optimizer_switch='exists_to_in=off';
|
SET optimizer_switch='extended_keys=off';
|
SET optimizer_switch='firstmatch=off';
|
SET optimizer_switch='index_condition_pushdown=off';
|
SET optimizer_switch='index_merge=off';
|
SET optimizer_switch='index_merge_intersection=off';
|
SET optimizer_switch='index_merge_sort_intersection=off';
|
SET optimizer_switch='index_merge_sort_union=off';
|
SET optimizer_switch='index_merge_union=off';
|
SET optimizer_switch='in_to_exists=off'; ###################
|
SET optimizer_switch='join_cache_bka=off';
|
SET optimizer_switch='join_cache_hashed=off';
|
SET optimizer_switch='join_cache_incremental=off';
|
SET optimizer_switch='loosescan=off';
|
SET optimizer_switch='mrr=off';
|
SET optimizer_switch='mrr_cost_based=off';
|
SET optimizer_switch='mrr_sort_keys=off';
|
SET optimizer_switch='materialization=on';
|
SET optimizer_switch='subquery_cache=off';
|
SET optimizer_switch='semijoin=off';
|
SET optimizer_switch='semijoin_with_cache=off';
|
SET optimizer_switch='firstmatch=off';
|
SET optimizer_switch='partial_match_rowid_merge=off';
|
SET optimizer_switch='partial_match_table_scan=off';
|
SET optimizer_switch='outer_join_with_cache=off';##
|
SET optimizer_switch='optimize_join_buffer_size=off';##
|
SET optimizer_switch='table_elimination=off';
|
but not change after this, still crashing...
{"report":{"fcp":644.7999999523163,"ttfb":161.39999985694885,"pageVisibility":"visible","entityId":46205,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"7d685efe-e0a5-4aa0-9960-48b716fe48b2","navigationType":0,"readyForUser":794.5,"redirectCount":0,"resourceLoadedEnd":665.5,"resourceLoadedStart":166.59999990463257,"resourceTiming":[{"duration":6.099999904632568,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":166.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":166.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":172.69999980926514,"responseStart":0,"secureConnectionStart":0},{"duration":6.1000001430511475,"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":166.89999985694885,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":166.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":173,"responseStart":0,"secureConnectionStart":0},{"duration":65.29999995231628,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":167,"connectEnd":167,"connectStart":167,"domainLookupEnd":167,"domainLookupStart":167,"fetchStart":167,"redirectEnd":0,"redirectStart":0,"requestStart":167,"responseEnd":232.29999995231628,"responseStart":232.29999995231628,"secureConnectionStart":167},{"duration":172,"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":167.09999990463257,"connectEnd":167.09999990463257,"connectStart":167.09999990463257,"domainLookupEnd":167.09999990463257,"domainLookupStart":167.09999990463257,"fetchStart":167.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":167.09999990463257,"responseEnd":339.09999990463257,"responseStart":339.09999990463257,"secureConnectionStart":167.09999990463257},{"duration":175.70000004768372,"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":167.19999980926514,"connectEnd":167.19999980926514,"connectStart":167.19999980926514,"domainLookupEnd":167.19999980926514,"domainLookupStart":167.19999980926514,"fetchStart":167.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":167.19999980926514,"responseEnd":342.89999985694885,"responseStart":342.89999985694885,"secureConnectionStart":167.19999980926514},{"duration":176.5,"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":167.29999995231628,"connectEnd":167.29999995231628,"connectStart":167.29999995231628,"domainLookupEnd":167.29999995231628,"domainLookupStart":167.29999995231628,"fetchStart":167.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":167.29999995231628,"responseEnd":343.7999999523163,"responseStart":343.7999999523163,"secureConnectionStart":167.29999995231628},{"duration":176.79999995231628,"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":167.39999985694885,"connectEnd":167.39999985694885,"connectStart":167.39999985694885,"domainLookupEnd":167.39999985694885,"domainLookupStart":167.39999985694885,"fetchStart":167.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":167.39999985694885,"responseEnd":344.19999980926514,"responseStart":344.19999980926514,"secureConnectionStart":167.39999985694885},{"duration":177.19999980926514,"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":167.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":167.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":344.69999980926514,"responseStart":0,"secureConnectionStart":0},{"duration":177.09999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":167.59999990463257,"connectEnd":167.59999990463257,"connectStart":167.59999990463257,"domainLookupEnd":167.59999990463257,"domainLookupStart":167.59999990463257,"fetchStart":167.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":167.59999990463257,"responseEnd":344.69999980926514,"responseStart":344.69999980926514,"secureConnectionStart":167.59999990463257},{"duration":177.60000014305115,"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":167.69999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":167.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":345.2999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":177.5,"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":167.79999995231628,"connectEnd":167.79999995231628,"connectStart":167.79999995231628,"domainLookupEnd":167.79999995231628,"domainLookupStart":167.79999995231628,"fetchStart":167.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":167.79999995231628,"responseEnd":345.2999999523163,"responseStart":345.2999999523163,"secureConnectionStart":167.79999995231628},{"duration":438.7000000476837,"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":173.59999990463257,"connectEnd":173.59999990463257,"connectStart":173.59999990463257,"domainLookupEnd":173.59999990463257,"domainLookupStart":173.59999990463257,"fetchStart":173.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":173.59999990463257,"responseEnd":612.2999999523163,"responseStart":612.2999999523163,"secureConnectionStart":173.59999990463257},{"duration":446.90000009536743,"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":177.69999980926514,"connectEnd":177.69999980926514,"connectStart":177.69999980926514,"domainLookupEnd":177.69999980926514,"domainLookupStart":177.69999980926514,"fetchStart":177.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":177.69999980926514,"responseEnd":624.5999999046326,"responseStart":624.5999999046326,"secureConnectionStart":177.69999980926514},{"duration":228.80000019073486,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":383.69999980926514,"connectEnd":383.69999980926514,"connectStart":383.69999980926514,"domainLookupEnd":383.69999980926514,"domainLookupStart":383.69999980926514,"fetchStart":383.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":383.69999980926514,"responseEnd":612.5,"responseStart":612.5,"secureConnectionStart":383.69999980926514},{"duration":2.0999999046325684,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":638.0999999046326,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":638.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":640.1999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":3.8000001907348633,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/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":661.6999998092651,"connectEnd":661.6999998092651,"connectStart":661.6999998092651,"domainLookupEnd":661.6999998092651,"domainLookupStart":661.6999998092651,"fetchStart":661.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":661.6999998092651,"responseEnd":665.5,"responseStart":665.5,"secureConnectionStart":661.6999998092651}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":14,"responseStart":162,"responseEnd":178,"domLoading":165,"domInteractive":881,"domContentLoadedEventStart":881,"domContentLoadedEventEnd":944,"domComplete":1241,"loadEventStart":1241,"loadEventEnd":1242,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":844.5999999046326},{"name":"bigPipe.sidebar-id.end","time":845.3999998569489},{"name":"bigPipe.activity-panel-pipe-id.start","time":845.5999999046326},{"name":"bigPipe.activity-panel-pipe-id.end","time":848.1999998092651},{"name":"activityTabFullyLoaded","time":961}],"measures":[],"correlationId":"19bf9a98391263","effectiveType":"4g","downlink":9,"rtt":0,"serverDuration":84,"dbReadsTimeInMs":14,"dbConnsTimeInMs":22,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Thank you for the report and the test case.
----------------------
Debug tack trace from 5.5 revno 4323
#3 <signal handler called>
#4 0x00000000007fcdac in Item_field::fix_outer_field (this=0x7f7900e88df8, thd=0x7f7904b49060, from_field=0x7f79017b3e58, reference=0x7f7900e88f90) at 5.5/sql/item.cc:4817
#5 0x00000000007fddbf in Item_field::fix_fields (this=0x7f7900e88df8, thd=0x7f7904b49060, reference=0x7f7900e88f90) at 5.5/sql/item.cc:5172
#6 0x000000000083cfc4 in Item_func::fix_fields (this=0x7f7900e88ef8, thd=0x7f7904b49060, ref=0x7f7900d8b490) at 5.5/sql/item_func.cc:204
#7 0x00000000005e0340 in setup_conds (thd=0x7f7904b49060, tables=0x7f7900d69750, leaves=..., conds=0x7f7900d8b490) at 5.5/sql/sql_base.cc:8892
#8 0x00000000006a07e8 in setup_without_group (thd=0x7f7904b49060, ref_pointer_array=0x7f7900d6ad38, tables=0x7f7900d69750, leaves=..., fields=..., all_fields=..., conds=0x7f7900d8b490, order=0x0, group=0x0, hidden_group_fields=0x7f7900d8b378) at 5.5/sql/sql_select.cc:577
#9 0x000000000065fc14 in JOIN::prepare (this=0x7f7900d8b078, rref_pointer_array=0x7f7900e88a50, tables_init=0x7f7900d69750, wild_num=0, conds_init=0x7f7900e88ef8, og_num=0, order_init=0x0, skip_order_by=false, group_init=0x0, having_init=0x0, proc_param_init=0x0, select_lex_arg=0x7f7900e887e0, unit_arg=0x7f7900d69078) at 5.5/sql/sql_select.cc:727
#10 0x000000000087d5be in subselect_single_select_engine::prepare (this=0x7f7900d69e50) at 5.5/sql/item_subselect.cc:3025
#11 0x0000000000875eaf in Item_subselect::fix_fields (this=0x7f7900d69d18, thd_param=0x7f7904b49060, ref=0x7f7900d69ea0) at 5.5/sql/item_subselect.cc:245
#12 0x0000000000692000 in find_order_in_list (thd=0x7f7904b49060, ref_pointer_array=0x7f7900d6ac38, tables=0x7f7900e88200, order=0x7f7900d69e90, fields=..., all_fields=..., is_group_field=false) at 5.5/sql/sql_select.cc:20520
#13 0x000000000069211b in setup_order (thd=0x7f7904b49060, ref_pointer_array=0x7f7900d6ac38, tables=0x7f7900e88200, fields=..., all_fields=..., order=0x7f7900d69e90) at 5.5/sql/sql_select.cc:20546
#14 0x000000000065fd22 in JOIN::prepare (this=0x7f7900d6a6f8, rref_pointer_array=0x7f7900e87c08, tables_init=0x7f7900e88200, wild_num=0, conds_init=0x0, og_num=0, order_init=0x0, skip_order_by=true, group_init=0x0, having_init=0x0, proc_param_init=0x0, select_lex_arg=0x7f7900e87998, unit_arg=0x7f7904b4c380) at 5.5/sql/sql_select.cc:736
#15 0x00000000006e064b in st_select_lex_unit::prepare (this=0x7f7904b4c380, thd_arg=0x7f7904b49060, sel_result=0x7f7900d69f78, additional_options=268435456) at 5.5/sql/sql_union.cc:344
#16 0x00000000006df8a6 in mysql_union (thd=0x7f7904b49060, lex=0x7f7904b4c2d0, result=0x7f7900d69f78, unit=0x7f7904b4c380, setup_tables_done_option=0) at 5.5/sql/sql_union.cc:37
#17 0x000000000065ed4c in handle_select (thd=0x7f7904b49060, lex=0x7f7904b4c2d0, result=0x7f7900d69f78, setup_tables_done_option=0) at 5.5/sql/sql_select.cc:297
#18 0x00000000006383df in execute_sqlcom_select (thd=0x7f7904b49060, all_tables=0x7f7900e873b8) at 5.5/sql/sql_parse.cc:4688
#19 0x00000000006315c1 in mysql_execute_command (thd=0x7f7904b49060) at 5.5/sql/sql_parse.cc:2233
#20 0x000000000063aaee in mysql_parse (thd=0x7f7904b49060, rawbuf=0x7f7900e87078 "(\nSELECT sample_name1 AS testname FROM sample\n)\nUNION\n(\nSELECT sample_name2 AS testname FROM sample C ORDER BY (SELECT T.sample_name1 FROM sample T WHERE T.id = C.id)\n)", length=168, parser_state=0x7f79017b5630) at 5.5/sql/sql_parse.cc:5799
#21 0x000000000062eb39 in dispatch_command (command=COM_QUERY, thd=0x7f7904b49060, packet=0x7f7901de8061 "(\nSELECT sample_name1 AS testname FROM sample\n)\nUNION\n(\nSELECT sample_name2 AS testname FROM sample C ORDER BY (SELECT T.sample_name1 FROM sample T WHERE T.id = C.id)\n)", packet_length=168) at 5.5/sql/sql_parse.cc:1079
#22 0x000000000062dcc5 in do_command (thd=0x7f7904b49060) at 5.5/sql/sql_parse.cc:793
#23 0x000000000072fd42 in do_handle_one_connection (thd_arg=0x7f7904b49060) at 5.5/sql/sql_connect.cc:1266
#24 0x000000000072f801 in handle_one_connection (arg=0x7f7904b49060) at 5.5/sql/sql_connect.cc:1181
#25 0x0000000000b652fd in pfs_spawn_thread (arg=0x7f7901d518e0) at 5.5/storage/perfschema/pfs.cc:1015
#26 0x00007f79079dab50 in start_thread (arg=<optimized out>) at pthread_create.c:304
#27 0x00007f79062e920d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112