[MDEV-18140] latin1 encoding crashes in 10.0.34 Created: 2019-01-04 Updated: 2019-12-12 Resolved: 2019-12-12 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Galera, Optimizer |
| Affects Version/s: | 10.0.34-galera |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Jeff | Assignee: | Alice Sherepa |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | need_verification | ||
| Environment: |
ubuntu-trusty-14.04-amd64-server-20180201 |
||
| Attachments: |
|
| Description |
|
Our entire Galera cluster crashed, each one with the same stacktrace here:
|
| Comments |
| Comment by Elena Stepanova [ 2019-01-07 ] | ||
|
Invalid query pointer is not the reason of the problem, it's a nuisance which happens on certain non-debug builds while generating crash reports. | ||
| Comment by Alice Sherepa [ 2019-01-07 ] | ||
|
Could you please add the output of
Is it possible for you to try the same query and see if the crash is reproducible? | ||
| Comment by Jeff [ 2019-01-07 ] | ||
|
Here is the my.cnf file from one of the servers. They are all the same. We tried to reproduce on our staging server by executing the query and it worked fine. We do not want to execute in production due to risk. my.cnf | ||
| Comment by Jeff [ 2019-01-07 ] | ||
|
companies CREATE TABLE `companies` (↵ `id` int(11) NOT NULL AUTO_INCREMENT,↵ `name` varchar(255) DEFAULT NULL,↵ `address_1` varchar(255) DEFAULT NULL,↵ `city` varchar(255) DEFAULT NULL,↵ `postal_code` varchar(255) DEFAULT NULL,↵ `state` varchar(255) DEFAULT NULL,↵ `phone1` varchar(255) DEFAULT NULL,↵ `fax` varchar(255) DEFAULT NULL,↵ `email` varchar(255) DEFAULT NULL,↵ `web` varchar(255) DEFAULT NULL,↵ `account_id` int(11) DEFAULT NULL,↵ `phone1_desc` varchar(255) DEFAULT NULL,↵ `phone2` varchar(255) DEFAULT NULL,↵ `phone2_desc` varchar(255) DEFAULT NULL,↵ `phone3` varchar(255) DEFAULT NULL,↵ `phone3_desc` varchar(255) DEFAULT NULL,↵ `phone4` varchar(255) DEFAULT NULL,↵ `phone4_desc` varchar(255) DEFAULT NULL,↵ `country` varchar(255) DEFAULT NULL,↵ `description` text,↵ `image_name` varchar(255) DEFAULT NULL,↵ `image_file` blob,↵ `image_content_type` varchar(255) DEFAULT NULL,↵ `address_2` varchar(255) DEFAULT NULL,↵ `delta` tinyint(1) NOT NULL DEFAULT '1',↵ `updated_at` datetime DEFAULT NULL,↵ `created_at` datetime DEFAULT NULL,↵ `image_file_name` varchar(255) DEFAULT NULL,↵ `import_id` int(11) DEFAULT NULL,↵ `is_flagged_for_deletion` tinyint(1) DEFAULT '0',↵ `created_by_user_id` int(11) DEFAULT NULL,↵ `next_entry_name` varchar(255) DEFAULT NULL,↵ `next_entry_due` datetime DEFAULT NULL,↵ `next_entry_all_day` tinyint(1) DEFAULT NULL,↵ `next_entry_id` int(11) DEFAULT NULL,↵ `latest_activity_id` int(11) DEFAULT NULL,↵ `owner_id` int(11) DEFAULT NULL,↵ `is_sample` tinyint(1) DEFAULT '0',↵ PRIMARY KEY (`id`),↵ KEY `index_companies_on_account_id` (`account_id`),↵ KEY `index_companies_on_account_id_and_name` (`account_id`,`name`),↵ KEY `index_companies_on_is_flagged_for_deletion` (`is_flagged_for_deletion`),↵ KEY `index_companies_on_import_id` (`import_id`),↵ KEY `index_companies_on_created_by_user_id` (`created_by_user_id`),↵ KEY `index_companies_on_latest_activity_id` (`latest_activity_id`),↵ KEY `index_companies_on_owner_id` (`owner_id`),↵ KEY `index_companies_on_account_id_and_email` (`account_id`,`email`),↵ CONSTRAINT `__companies_accounts_fk` FOREIGN KEY (`account_id`) REFERENCES `accounts` (`id`)↵) ENGINE=InnoDB AUTO_INCREMENT=104848088 DEFAULT CHARSET=latin1 | ||
| Comment by Jeff [ 2019-01-07 ] | ||
|
custom_field_values CREATE TABLE `custom_field_values` (↵ `id` int(11) NOT NULL AUTO_INCREMENT,↵ `custom_field_label_id` int(11) DEFAULT NULL,↵ `custom_field_label_dropdown_entry_id` int(11) DEFAULT NULL,↵ `association_id` int(11) DEFAULT NULL,↵ `association_type` varchar(255) DEFAULT NULL,↵ `account_id` int(11) DEFAULT NULL,↵ `deal_id` int(11) DEFAULT NULL,↵ `company_id` int(11) DEFAULT NULL,↵ `person_id` int(11) DEFAULT NULL,↵ `string_value` varchar(5000) DEFAULT NULL,↵ `numeric_value` decimal(38,8) DEFAULT NULL,↵ `date_value` date DEFAULT NULL,↵ `created_at` datetime DEFAULT NULL,↵ `updated_at` datetime DEFAULT NULL,↵ PRIMARY KEY (`id`),↵ KEY `index_custom_field_values_on_custom_field_label_id` (`custom_field_label_id`),↵ KEY `index_custom_field_values_on_deal_id_and_custom_field_label_id` (`deal_id`,`custom_field_label_id`),↵ KEY `index_custom_field_values_on_person_id_and_custom_field_label_id` (`person_id`,`custom_field_label_id`),↵ KEY `index_cfv_on_cfl_id_and_string_value` (`custom_field_label_id`,`string_value`(767)),↵ KEY `index_cfv_on_cfl_id_and_numeric_value` (`custom_field_label_id`,`numeric_value`),↵ KEY `index_cfv_on_cfl_id_and_date_value` (`custom_field_label_id`,`date_value`),↵ KEY `index_cfv_on_cfl_id_and_association_id` (`custom_field_label_id`,`association_id`),↵ KEY `index_cfv_on_cfl_id_and_cfl_dropdown_entry_id` (`custom_field_label_id`,`custom_field_label_dropdown_entry_id`),↵ KEY `index_custom_field_values_on_company_id` (`company_id`),↵ KEY `index_custom_field_values_on_deal_id` (`deal_id`),↵ KEY `index_custom_field_values_on_person_id` (`person_id`),↵ KEY `index_custom_field_values_on_account_id` (`account_id`)↵) ENGINE=InnoDB AUTO_INCREMENT=1188538541 DEFAULT CHARSET=latin1 | ||
| Comment by Jeff [ 2019-01-09 ] | ||
|
Any new info here? We had another production crash across the cluster today. Similar but different. Will post the stack traces. | ||
| Comment by Jeff [ 2019-01-09 ] | ||
|
Jan 9 21:29:17 localhost mysqld: 190109 21:29:17 [ERROR] mysqld got signal 11 ; Co | ||
| Comment by Jeff [ 2019-01-09 ] | ||
|
Jan 9 21:28:57 localhost mysqld: 190109 21:28:57 [ERROR] mysqld got signal 11 ; | ||
| Comment by Jeff [ 2019-01-14 ] | ||
|
We have been able to reproduce the crash on 10.0.34 and subsequently found the trigger to be related to using latin1 encoding on this particular dataset. Testing has shown that an upgrade to 10.0.37 fixes the issue. If you know of any related bugs that were fixed in either .35, .36, or .37 could you add the links? We would like to further understand root cause as we have not been able to identify the exact data that causes the crash, and it also seems to be related to the connection state (it doesn't happen at first, but then happens continuously until the connection is reset) | ||
| Comment by Alice Sherepa [ 2019-01-15 ] | ||
|
I am not able to reproduce it right away. I suspect it to be related to | ||
| Comment by Jeff [ 2019-01-15 ] | ||
|
Unfortunately we cannot provide a data dump due to customer data privacy. It doesn't appear to be related to 15247 because that bug actually is about utf8 causing the crash. Ours is about utf8 preventing the crash when we are defaulted to latin1 | ||
| Comment by Jan Lindström (Inactive) [ 2019-12-12 ] | ||
|
Support for 10.0-galera has ended. |