After upgrading server from MariaDB 1.0.21 to 10.1.8, mysqld crashes when using a table that uses GIS features. As a result, it is not even possible to run mysql_upgrade. Because of the repeated crashing, the server becomes unusable for production purposes.
Selecting data from the affected tables is possible though, but operations such as 'show create table', 'show table status' or even 'use <database>' cause mysqld to restart.
Interestingly, after issuing the 'describe' command on a table, it is sometimes possible to (temporarily) perform these functions on that particular table without crashing mysqld.
After creating a new table using an identical table definition, followed by copying the new .frm file over the old .frm file, the table works smoothly.
This bug is similar (though in my opinion not identical) to bug MDEV-8163.
- relates to
-
MDEV-8163
Table causes maria to crash repeatedly.
-
-
Closed
{"report":{"fcp":1285.9000000953674,"ttfb":499.40000009536743,"pageVisibility":"visible","entityId":53837,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"46dea487-bfd6-404b-b8e6-26b6cd92f2e9","navigationType":0,"readyForUser":1406.0999999046326,"redirectCount":0,"resourceLoadedEnd":1498.1999998092651,"resourceLoadedStart":517.5,"resourceTiming":[{"duration":274.19999980926514,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":517.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":517.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":791.6999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":274.19999980926514,"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":517.9000000953674,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":517.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":792.0999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":283.30000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":518.0999999046326,"connectEnd":518.0999999046326,"connectStart":518.0999999046326,"domainLookupEnd":518.0999999046326,"domainLookupStart":518.0999999046326,"fetchStart":518.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":518.0999999046326,"responseEnd":801.4000000953674,"responseStart":801.2999997138977,"secureConnectionStart":518.0999999046326},{"duration":356.19999980926514,"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":518.5999999046326,"connectEnd":518.5999999046326,"connectStart":518.5999999046326,"domainLookupEnd":518.5999999046326,"domainLookupStart":518.5999999046326,"fetchStart":518.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":518.5999999046326,"responseEnd":874.7999997138977,"responseStart":874.7999997138977,"secureConnectionStart":518.5999999046326},{"duration":359.80000019073486,"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":518.7999997138977,"connectEnd":518.7999997138977,"connectStart":518.7999997138977,"domainLookupEnd":518.7999997138977,"domainLookupStart":518.7999997138977,"fetchStart":518.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":518.7999997138977,"responseEnd":878.5999999046326,"responseStart":878.5999999046326,"secureConnectionStart":518.7999997138977},{"duration":360.19999980926514,"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":518.9000000953674,"connectEnd":518.9000000953674,"connectStart":518.9000000953674,"domainLookupEnd":518.9000000953674,"domainLookupStart":518.9000000953674,"fetchStart":518.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":518.9000000953674,"responseEnd":879.0999999046326,"responseStart":879.0999999046326,"secureConnectionStart":518.9000000953674},{"duration":360.30000019073486,"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":519.0999999046326,"connectEnd":519.0999999046326,"connectStart":519.0999999046326,"domainLookupEnd":519.0999999046326,"domainLookupStart":519.0999999046326,"fetchStart":519.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":519.0999999046326,"responseEnd":879.4000000953674,"responseStart":879.4000000953674,"secureConnectionStart":519.0999999046326},{"duration":425.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":519.6999998092651,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":519.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":945.0999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":360,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":519.9000000953674,"connectEnd":519.9000000953674,"connectStart":519.9000000953674,"domainLookupEnd":519.9000000953674,"domainLookupStart":519.9000000953674,"fetchStart":519.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":519.9000000953674,"responseEnd":879.9000000953674,"responseStart":879.9000000953674,"secureConnectionStart":519.9000000953674},{"duration":425.19999980926514,"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":520,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":520,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":945.1999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":360.30000019073486,"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":520.1999998092651,"connectEnd":520.1999998092651,"connectStart":520.1999998092651,"domainLookupEnd":520.1999998092651,"domainLookupStart":520.1999998092651,"fetchStart":520.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":520.1999998092651,"responseEnd":880.5,"responseStart":880.5,"secureConnectionStart":520.1999998092651},{"duration":550.5,"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":552.2999997138977,"connectEnd":552.2999997138977,"connectStart":552.2999997138977,"domainLookupEnd":552.2999997138977,"domainLookupStart":552.2999997138977,"fetchStart":552.2999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":552.2999997138977,"responseEnd":1102.7999997138977,"responseStart":1102.7999997138977,"secureConnectionStart":552.2999997138977},{"duration":879.2999997138977,"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":615.4000000953674,"connectEnd":615.4000000953674,"connectStart":615.4000000953674,"domainLookupEnd":615.4000000953674,"domainLookupStart":615.4000000953674,"fetchStart":615.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":615.4000000953674,"responseEnd":1494.6999998092651,"responseStart":1494.6999998092651,"secureConnectionStart":615.4000000953674},{"duration":146.09999990463257,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":957.1999998092651,"connectEnd":957.1999998092651,"connectStart":957.1999998092651,"domainLookupEnd":957.1999998092651,"domainLookupStart":957.1999998092651,"fetchStart":957.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":957.1999998092651,"responseEnd":1103.2999997138977,"responseStart":1103.2999997138977,"secureConnectionStart":957.1999998092651},{"duration":258.59999990463257,"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&whisper-enabled=true","startTime":1239.5999999046326,"connectEnd":1239.5999999046326,"connectStart":1239.5999999046326,"domainLookupEnd":1239.5999999046326,"domainLookupStart":1239.5999999046326,"fetchStart":1239.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":1239.5999999046326,"responseEnd":1498.1999998092651,"responseStart":1498.1999998092651,"secureConnectionStart":1239.5999999046326}],"fetchStart":1,"domainLookupStart":1,"domainLookupEnd":1,"connectStart":1,"connectEnd":1,"requestStart":300,"responseStart":500,"responseEnd":616,"domLoading":503,"domInteractive":1534,"domContentLoadedEventStart":1534,"domContentLoadedEventEnd":1582,"domComplete":2153,"loadEventStart":2153,"loadEventEnd":2153,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1496.5999999046326},{"name":"bigPipe.sidebar-id.end","time":1497.5},{"name":"bigPipe.activity-panel-pipe-id.start","time":1497.5999999046326},{"name":"bigPipe.activity-panel-pipe-id.end","time":1501.7999997138977},{"name":"activityTabFullyLoaded","time":1602.4000000953674}],"measures":[],"correlationId":"d63faf212679b0","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":125,"dbReadsTimeInMs":11,"dbConnsTimeInMs":19,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Contents of mysqld.log:
Version: '10.1.8-MariaDB' socket: '/serverdata/mysql/mysql.sock' port: 3306 MariaDB Server
151022 17:04:12 [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.1.8-MariaDB
key_buffer_size=4294967296
read_buffer_size=2097152
max_used_connections=1
max_threads=1002
thread_count=1
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 10371034 K bytes of memory
Hope that's ok; if not, decrease some variables in the equation.
Thread pointer: 0x0x7f2537bd0008
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 = 0x7f253b62dd40 thread_stack 0x48000
mysys/stacktrace.c:247(my_print_stacktrace)[0x7f253c0ea6cb]
sql/signal_handler.cc:160(handle_fatal_signal)[0x7f253bc4c0d5]
/lib64/libpthread.so.0(+0xf790)[0x7f253b265790]
sql/field.cc:8337(gis_field_options_read(unsigned char const*, unsigned int, Field_geom::storage_type*, unsigned int*, unsigned int*, unsigned int*))[0x7f253bc3a800]
sql/table.cc:1501(TABLE_SHARE::init_from_binary_frm_image(THD*, bool, unsigned char const*, unsigned long))[0x7f253bb7a84c]
sql/table.cc:652(open_table_def(THD*, TABLE_SHARE*, unsigned int))[0x7f253bb7c5b2]
sql/table_cache.cc:641(tdc_acquire_share(THD*, char const*, char const*, char const*, unsigned int, unsigned int, unsigned int, TABLE**))[0x7f253bbff14a]
sql/sql_base.cc:2421(open_table(THD*, TABLE_LIST*, Open_table_context*))[0x7f253ba9ac5c]
sql/sql_base.cc:4068(open_and_process_table)[0x7f253ba9f27a]
sql/sql_show.cc:1137(mysqld_show_create(THD*, TABLE_LIST*))[0x7f253bb3a4dc]
sql/sql_parse.cc:3701(mysql_execute_command(THD*))[0x7f253badf5c4]
sql/sql_parse.cc:7265(mysql_parse)[0x7f253bae4c0d]
sql/sql_parse.cc:1488(dispatch_command(enum_server_command, THD*, char*, unsigned int))[0x7f253bae7853]
sql/sql_parse.cc:1112(do_command(THD*))[0x7f253bae7dfb]
sql/sql_connect.cc:1350(do_handle_one_connection(THD*))[0x7f253bba262f]
sql/sql_connect.cc:1264(handle_one_connection)[0x7f253bba2787]
/lib64/libpthread.so.0(+0x7a51)[0x7f253b25da51]
/lib64/libc.so.6(clone+0x6d)[0x7f253974393d]
Trying to get some variables.
Some pointers may be invalid and cause the dump to abort.
Query (0x7f1ea70aa020): 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=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.
151022 17:04:13 mysqld_safe Number of processes running now: 0
151022 17:04:13 mysqld_safe mysqld restarted
2015-10-22 17:04:13 140096469264416 [Note] /usr/sbin/mysqld (mysqld 10.1.8-MariaDB) starting as process 51151 ...
2015-10-22 17:04:13 140096469264416 [Note] CONNECT: Version 1.03.0007 July 05, 2015
2015-10-22 17:04:14 140096469264416 [Note] InnoDB: Using mutexes to ref count buffer pool pages
2015-10-22 17:04:14 140096469264416 [Note] InnoDB: The InnoDB memory heap is disabled
2015-10-22 17:04:14 140096469264416 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2015-10-22 17:04:14 140096469264416 [Note] InnoDB: Memory barrier is not used
2015-10-22 17:04:14 140096469264416 [Note] InnoDB: Compressed tables use zlib 1.2.3
2015-10-22 17:04:14 140096469264416 [Note] InnoDB: Using Linux native AIO
2015-10-22 17:04:14 140096469264416 [Note] InnoDB: Using CPU crc32 instructions
2015-10-22 17:04:14 140096469264416 [Note] InnoDB: Initializing buffer pool, size = 20.0G
2015-10-22 17:04:15 140096469264416 [Note] InnoDB: Completed initialization of buffer pool
2015-10-22 17:04:16 140096469264416 [Note] InnoDB: Highest supported file format is Barracuda.
2015-10-22 17:04:16 140096469264416 [Note] InnoDB: The log sequence numbers 1475580279756 and 1475580279756 in ibdata files do not match the log sequence number 1475580280052 in the ib_logfiles!
2015-10-22 17:04:16 140096469264416 [Note] InnoDB: Database was not shutdown normally!
2015-10-22 17:04:16 140096469264416 [Note] InnoDB: Starting crash recovery.
2015-10-22 17:04:16 140096469264416 [Note] InnoDB: Reading tablespace information from the .ibd files...
2015-10-22 17:04:16 140096469264416 [Note] InnoDB: Restoring possible half-written data pages
2015-10-22 17:04:16 140096469264416 [Note] InnoDB: from the doublewrite buffer...
2015-10-22 17:04:17 140096469264416 [Note] InnoDB: 128 rollback segment(s) are active.
2015-10-22 17:04:17 140096469264416 [Note] InnoDB: Waiting for purge to start
2015-10-22 17:04:17 140096469264416 [Note] InnoDB: Percona XtraDB (http://www.percona.com) 5.6.26-74.0 started; log sequence number 1475580280052
2015-10-22 17:04:17 140068018689792 [Note] InnoDB: Dumping buffer pool(s) not yet started
2015-10-22 17:04:17 140096469264416 [Note] Plugin 'FEEDBACK' is disabled.
2015-10-22 17:04:17 140096469264416 [Note] Recovering after a crash using tc.log
2015-10-22 17:04:17 140096469264416 [Note] Starting crash recovery...
2015-10-22 17:04:17 140096469264416 [Note] Crash recovery finished.
2015-10-22 17:04:17 140096469264416 [Note] Server socket created on IP: '::'.
2015-10-22 17:04:17 140096469264416 [Note] /usr/sbin/mysqld: ready for connections.
Version: '10.1.8-MariaDB' socket: '/serverdata/mysql/mysql.sock' port: 3306 MariaDB Server