[MDEV-13425] Signal 11 on get_share() inside HASH_SEARCH and strcmp Created: 2017-08-02  Updated: 2020-07-23  Resolved: 2020-07-23

Status: Closed
Project: MariaDB Server
Component/s: Storage Engine - XtraDB
Fix Version/s: N/A

Type: Task Priority: Major
Reporter: Jan Lindström (Inactive) Assignee: Thirunarayanan Balathandayuthapani
Resolution: Won't Fix Votes: 1
Labels: None

Issue Links:
Relates
relates to MDEV-16557 Remove INNOBASE_SHARE::idx_trans_tbl Closed
relates to MDEV-12972 Random and Frequent Segfault (SIG 11)... Closed

 Description   

#14 __strcmp_sse2_unaligned () at ../sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S:31
#15 0x0000556851c4d2d7 in ?? ()
#16 0x00005568519c8113 in handler::ha_open(TABLE*, char const*, int, unsigned int) ()
#17 0x00005568518e1ea9 in open_table_from_share(THD*, TABLE_SHARE*, char const*, unsigned int, unsigned int, unsigned int, TABLE*, bool) ()
#18 0x00005568517ee393 in open_table(THD*, TABLE_LIST*, Open_table_context*) ()
#19 0x00005568517f2202 in open_tables(THD*, DDL_options_st const&, TABLE_LIST**, unsigned int*, unsigned int, Prelocking_strategy*) ()
#20 0x00005568517f2be3 in open_and_lock_tables(THD*, DDL_options_st const&, TABLE_LIST*, bool, unsigned int, Prelocking_strategy*) ()



 Comments   
Comment by Jan Lindström (Inactive) [ 2017-08-08 ]

Assertion happens at following code :

HASH_SEARCH(table_name_hash, innobase_open_tables, fold,
		    INNOBASE_SHARE*, share,
		    ut_ad(share->use_count > 0),
		    !strcmp(share->table_name, table_name));

This code and code calling function where this is has not been changed between 10.0 and 10.1.

Comment by Marko Mäkelä [ 2018-08-29 ]

The INNOBASE_SHARE was removed from InnoDB in MDEV-16557. Before 10.2, it would be harder to remove INNOBASE_SHARE, because also contains a lock for some concurrency control.

Comment by Marko Mäkelä [ 2020-07-23 ]

The code was removed in the InnoDB storage engine in MDEV-16557 (MariaDB 10.2.18). The change is too intrusive for the 10.1 series. There is no XtraDB storage engine available in 10.2.

Generated at Thu Feb 08 08:05:30 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.