When accessing mysql without using the -A flag any query I would execute would fail immediately. The error I get using the console is:
ERROR 2006 (HY000): MySQL server has gone away
No connection. Trying to reconnect...
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111 "Connection refused")
Any select doesn't work, even a
select 1;
However I could see the databases. Use any of the databases. Serg suggested the following:
[14:53:14] serg: so, try this. run mysql -A.
[14:53:29] serg: and then, say, SHOW CREATE TABLE for every table in this your database
[14:53:57] serg: when you get a crash - you know what frm causes it, create a bug report on mariadb.org/jira and attach
this frm file
[14:54:03] serg: 10.1.5 won't crash on it
FYI the date of this conversation was the 14th of May 2015.
I'm providing the url to the syslog information that I was getting at the time of the issue.
http://pastebin.com/s9nMQqzB
Hopefully this helps.
- relates to
-
MDEV-8992
MariaDB crashes when accessing table with GIS features
-
-
Closed
{"report":{"fcp":865,"ttfb":251.60000002384186,"pageVisibility":"visible","entityId":51355,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"4c0490ff-6986-4f1b-bb15-4d03b564b681","navigationType":0,"readyForUser":941,"redirectCount":0,"resourceLoadedEnd":568.6000000238419,"resourceLoadedStart":259.5,"resourceTiming":[{"duration":10,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":259.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":259.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":269.5,"responseStart":0,"secureConnectionStart":0},{"duration":10,"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":259.8000000715256,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":259.8000000715256,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":269.8000000715256,"responseStart":0,"secureConnectionStart":0},{"duration":179.40000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":260,"connectEnd":260,"connectStart":260,"domainLookupEnd":260,"domainLookupStart":260,"fetchStart":260,"redirectEnd":0,"redirectStart":0,"requestStart":271.60000002384186,"responseEnd":439.40000009536743,"responseStart":293.2000000476837,"secureConnectionStart":260},{"duration":308,"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":260.60000002384186,"connectEnd":260.60000002384186,"connectStart":260.60000002384186,"domainLookupEnd":260.60000002384186,"domainLookupStart":260.60000002384186,"fetchStart":260.60000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":272.3000000715256,"responseEnd":568.6000000238419,"responseStart":295.3000000715256,"secureConnectionStart":260.60000002384186},{"duration":33.89999997615814,"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":260.7000000476837,"connectEnd":260.7000000476837,"connectStart":260.7000000476837,"domainLookupEnd":260.7000000476837,"domainLookupStart":260.7000000476837,"fetchStart":260.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":272.8000000715256,"responseEnd":294.60000002384186,"responseStart":289,"secureConnectionStart":260.7000000476837},{"duration":33.300000071525574,"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":261,"connectEnd":261,"connectStart":261,"domainLookupEnd":261,"domainLookupStart":261,"fetchStart":261,"redirectEnd":0,"redirectStart":0,"requestStart":273.5,"responseEnd":294.3000000715256,"responseStart":288.5,"secureConnectionStart":261},{"duration":33.89999997615814,"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":261.10000002384186,"connectEnd":261.10000002384186,"connectStart":261.10000002384186,"domainLookupEnd":261.10000002384186,"domainLookupStart":261.10000002384186,"fetchStart":261.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":274.2000000476837,"responseEnd":295,"responseStart":290.40000009536743,"secureConnectionStart":261.10000002384186},{"duration":13,"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":261.2000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":261.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":274.2000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":37.09999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":261.40000009536743,"connectEnd":261.40000009536743,"connectStart":261.40000009536743,"domainLookupEnd":261.40000009536743,"domainLookupStart":261.40000009536743,"fetchStart":261.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":276.90000009536743,"responseEnd":298.5,"responseStart":296.60000002384186,"secureConnectionStart":261.40000009536743},{"duration":13.900000095367432,"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":261.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":261.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":275.40000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":44.299999952316284,"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":261.7000000476837,"connectEnd":261.7000000476837,"connectStart":261.7000000476837,"domainLookupEnd":261.7000000476837,"domainLookupStart":261.7000000476837,"fetchStart":261.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":277.5,"responseEnd":306,"responseStart":297.3000000715256,"secureConnectionStart":261.7000000476837},{"duration":273.2999999523163,"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":265.8000000715256,"connectEnd":265.8000000715256,"connectStart":265.8000000715256,"domainLookupEnd":265.8000000715256,"domainLookupStart":265.8000000715256,"fetchStart":265.8000000715256,"redirectEnd":0,"redirectStart":0,"requestStart":290,"responseEnd":539.1000000238419,"responseStart":536.2000000476837,"secureConnectionStart":265.8000000715256},{"duration":274.3000000715256,"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":266,"connectEnd":266,"connectStart":266,"domainLookupEnd":266,"domainLookupStart":266,"fetchStart":266,"redirectEnd":0,"redirectStart":0,"requestStart":299.7000000476837,"responseEnd":540.3000000715256,"responseStart":537.4000000953674,"secureConnectionStart":266},{"duration":78.10000002384186,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":580.3000000715256,"connectEnd":580.3000000715256,"connectStart":580.3000000715256,"domainLookupEnd":580.3000000715256,"domainLookupStart":580.3000000715256,"fetchStart":580.3000000715256,"redirectEnd":0,"redirectStart":0,"requestStart":624.7000000476837,"responseEnd":658.4000000953674,"responseStart":657.7000000476837,"secureConnectionStart":580.3000000715256},{"duration":280.7000000476837,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":786,"connectEnd":786,"connectStart":786,"domainLookupEnd":786,"domainLookupStart":786,"fetchStart":786,"redirectEnd":0,"redirectStart":0,"requestStart":1032.6000000238419,"responseEnd":1066.7000000476837,"responseStart":1065,"secureConnectionStart":786}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":59,"responseStart":252,"responseEnd":266,"domLoading":255,"domInteractive":1000,"domContentLoadedEventStart":1000,"domContentLoadedEventEnd":1047,"domComplete":1473,"loadEventStart":1473,"loadEventEnd":1473,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":973.9000000953674},{"name":"bigPipe.sidebar-id.end","time":974.7000000476837},{"name":"bigPipe.activity-panel-pipe-id.start","time":974.9000000953674},{"name":"bigPipe.activity-panel-pipe-id.end","time":976.9000000953674},{"name":"activityTabFullyLoaded","time":1068.4000000953674}],"measures":[],"correlationId":"e73bb312f50aac","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":103,"dbReadsTimeInMs":12,"dbConnsTimeInMs":19,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Thanks for the report.
Stack trace from 10.1 commit 476dfb16
#3 <signal handler called>
#4 0x00007fb12273b31c in gis_field_options_read (buf=0x0, buf_len=520471232, st_type=0x7fb121fcbe98, precision=0x7fb121fcbe8c, scale=0x7fb121fcbe90, srid=0x7fb121fcbe94) at 10.1/sql/field.cc:7929
#5 0x00007fb12260aba8 in TABLE_SHARE::init_from_binary_frm_image (this=0x7fb11f135688, thd=0x7fb1037ef070, write=false, frm_image=0x7fb0fc679070 "\376\001\t\t\003", frm_length=8864) at 10.1/sql/table.cc:1503
#6 0x00007fb122608235 in open_table_def (thd=0x7fb1037ef070, share=0x7fb11f135688, flags=11) at 10.1/sql/table.cc:650
#7 0x00007fb1226dd62b in tdc_acquire_share (thd=0x7fb1037ef070, db=0x7fb0fc666740 "test", table_name=0x7fb0fc666128 "geo", key=0x7fb0fc6665a1 "test", key_length=9, hash_value=474670071, flags=3, out_table=0x7fb121fcc5c8) at 10.1/sql/table_cache.cc:639
#8 0x00007fb1224bc7db in open_table (thd=0x7fb1037ef070, table_list=0x7fb0fc666160, ot_ctx=0x7fb121fcc9f0) at 10.1/sql/sql_base.cc:2411
#9 0x00007fb1224bf500 in open_and_process_table (thd=0x7fb1037ef070, lex=0x7fb1037f2d28, tables=0x7fb0fc666160, counter=0x7fb121fccac4, flags=1024, prelocking_strategy=0x7fb121fcca70, has_prelocking_list=false, ot_ctx=0x7fb121fcc9f0) at 10.1/sql/sql_base.cc:4016
#10 0x00007fb1224c05f5 in open_tables (thd=0x7fb1037ef070, options=..., start=0x7fb121fccab0, counter=0x7fb121fccac4, flags=1024, prelocking_strategy=0x7fb121fcca70) at 10.1/sql/sql_base.cc:4526
#11 0x00007fb12250080f in open_tables (thd=0x7fb1037ef070, tables=0x7fb121fccab0, counter=0x7fb121fccac4, flags=1024) at 10.1/sql/sql_base.h:499
#12 0x00007fb1225a86c1 in mysqld_show_create (thd=0x7fb1037ef070, table_list=0x7fb0fc666160) at 10.1/sql/sql_show.cc:1120
#13 0x00007fb122525e81 in mysql_execute_command (thd=0x7fb1037ef070) at 10.1/sql/sql_parse.cc:3649
#14 0x00007fb122531234 in mysql_parse (thd=0x7fb1037ef070, rawbuf=0x7fb0fc666088 "show create table geo", length=21, parser_state=0x7fb121fce200) at 10.1/sql/sql_parse.cc:7161
#15 0x00007fb1225201e1 in dispatch_command (command=COM_QUERY, thd=0x7fb1037ef070, packet=0x7fb103793071 "show create table geo", packet_length=21) at 10.1/sql/sql_parse.cc:1462
#16 0x00007fb12251efb1 in do_command (thd=0x7fb1037ef070) at 10.1/sql/sql_parse.cc:1090
#17 0x00007fb122650cb3 in do_handle_one_connection (thd_arg=0x7fb1037ef070) at 10.1/sql/sql_connect.cc:1347
#18 0x00007fb1226509f8 in handle_one_connection (arg=0x7fb1037ef070) at 10.1/sql/sql_connect.cc:1258
#19 0x00007fb121c08b50 in start_thread (arg=<optimized out>) at pthread_create.c:304
#20 0x00007fb11fc9d95d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112