[MDEV-2210] LP:1008293 - SET key_cache_segments leads to crashes in get_partitioned_key_cache_statistics, or safe_mutex_lock, or partitioned_key_cache_statistics Created: 2012-06-04 Updated: 2015-02-02 Resolved: 2012-10-04 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Critical |
| Reporter: | Jean Weisbuch (Inactive) | Assignee: | Igor Babaev |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | Launchpad | ||
| Attachments: |
|
| Description |
|
On 3 of the 4 servers i tried to do a "set global key_cache_segments = 8", 3 have crashed and only one didnt. The crashing servers were :
All the servers are on Debian Squeeze amd64 using MariaDB repository packages. All servers have different datas and workloads (and are not using replication), these are used on a shared hosting environement so there is many databases/tables on each with many random accesses on them. Did put the value on my.cnf and restarted completely the servers and it didnt crash (some have been up for weeks without a crash), so it seems to be only crashing when changing the parameter on a live server. (attached two crash reports: 5.5.24 and 5.3.7) |
| Comments |
| Comment by Jean Weisbuch (Inactive) [ 2012-06-04 ] |
|
Re: Changing key_cache_segments value using set leads to crashes |
| Comment by Jean Weisbuch (Inactive) [ 2012-06-04 ] |
|
Two crash reports from MariaDB error logs |
| Comment by Elena Stepanova [ 2012-06-04 ] |
|
Re: Changing key_cache_segments value using set leads to crashes Could you please provide your my.cnf file from a server where you observed the crash? Thanks. |
| Comment by Jean Weisbuch (Inactive) [ 2012-06-04 ] |
|
Re: Changing key_cache_segments value using set leads to crashes [client] And in the conf.d dir : |
| Comment by sbester [ 2012-06-06 ] |
|
Re: Changing key_cache_segments value using set leads to crashes Tttached two examples of a crash. |
| Comment by sbester [ 2012-06-06 ] |
|
Very easy to reproduce. Any myisam workload with 2 or more threads will hit this. Try setting the key_cache_segments to a random value in 1 thread and select/insert/update/show global status/cache index in another thread. Tttached two examples of a crash. |
| Comment by Elena Stepanova [ 2012-06-06 ] |
|
Re: Changing key_cache_segments value using set leads to crashes Reproducible with the RQG grammar and command line below on maria/5.2 revno 3139, maria/5.3 revno 3539, maria/5.5 revno 3426, and on release versions of 5.2, 5.3, 5.5.
SET GLOBAL key_cache_segments = _digit; query:
|
| Comment by Elena Stepanova [ 2012-06-06 ] |
|
Re: Changing key_cache_segments value using set leads to crashes
query:
perl ./runall.pl \ |
| Comment by Rasmus Johansson (Inactive) [ 2012-06-12 ] |
|
Launchpad bug id: 1008293 |