| Bug #59602 | MySQL Server crashes with signal 11 (segfault) | ||
|---|---|---|---|
| Submitted: | 19 Jan 2011 6:43 | Modified: | 30 Apr 2015 11:24 |
| Reporter: | Andy Knuts | Email Updates: | |
| Status: | Can't repeat | Impact on me: | |
| Category: | MySQL Server: Query Cache | Severity: | S1 (Critical) |
| Version: | 5.5.8 | OS: | Linux |
| Assigned to: | CPU Architecture: | Any | |
| Tags: | segfault | ||
[19 Jan 2011 6:43]
Andy Knuts
[19 Jan 2011 7:31]
Valeriy Kravchuk
Thank you for the problem report. Please, send your my.cnf file content and the results of: uname -a free Linux commands.
[19 Jan 2011 7:43]
Andy Knuts
# free
total used free shared buffers cached
Mem: 8192760 8091108 101652 0 9836 3365572
-/+ buffers/cache: 4715700 3477060
Swap: 3903756 247584 3656172
# uname -a
Linux SDB1 2.6.35-24-server #42-Ubuntu SMP Thu Dec 2 03:58:11 UTC 2010 x86_64 GNU/Linux
# cat /etc/my.cnf | awk '{if (/^\#/ || /^$/) {} else {print}}'
[client]
port = 3306
socket = /tmp/mysql.sock
[mysqld]
interactive_timeout=30
port = 3306
socket = /tmp/mysql.sock
basedir = /usr/local/mysql
datadir = /usr/local/mysql/data
tmpdir = /tmp
log_error = /var/log/mysql/error.log
skip-external-locking
skip-name-resolve
bind-address = 0.0.0.0
key_buffer_size = 1G
max_allowed_packet = 32M
table_open_cache = 256
sort_buffer_size = 1M
read_buffer_size = 1M
read_rnd_buffer_size = 4M
myisam_sort_buffer_size = 64M
max_connections = 1000
table_cache = 5000
thread_cache_size = 80
query_cache_size= 16M
thread_concurrency = 8
max_heap_table_size = 64M
tmp_table_size = 64M
innodb_file_per_table = 1
innodb_buffer_pool_size = 3G
innodb_flush_log_at_trx_commit = 0
innodb_open_files=2048
innodb_log_buffer_size=8M
innodb_log_file_size=128M
join_buffer_size=512K
low_priority_updates=1
concurrent_insert=2
query_cache_limit = 20M
query_cache_size = 800M
slow_query_log = /var/log/mysql/slow.log
long_query_time = 3
log_bin = /usr/local/mysql/BINLOGS/mysql-bin.log
expire_logs_days = 100
max_binlog_size = 1G
binlog_format=mixed
[mysqldump]
quick
max_allowed_packet = 32M
[mysql]
no-auto-rehash
[myisamchk]
key_buffer_size = 128M
sort_buffer_size = 128M
read_buffer = 2M
write_buffer = 2M
[mysqlhotcopy]
interactive-timeout
[19 Jan 2011 7:50]
Valeriy Kravchuk
I see the following settings related to the query cache in your my.cnf: query_cache_size= 16M ... query_cache_limit = 20M query_cache_size = 800M Can you, please, try to remove/comment out the last 2 settings and leave only: query_cache_size= 16M and then check if this crash will ever appear again?
[19 Jan 2011 7:54]
Andy Knuts
Okay. I commented out 'query_cache_size= 16M'. I didn't know I had two of these in my config file but is there realy a chance that this was the problem? Because "show variables like '%query_cache%'" showed the right value. Isn't the first query_cache_size just being overwritten by the second query_cache_size in the config file?
[19 Jan 2011 8:24]
Valeriy Kravchuk
I think this setting query_cache_size = 800M can be a part of the problem. Nobody really needs such a big query cache. I'd like to check if smaller query cache can prevent the problem. With your other my.cnf settings it is possible that you had out of memory situation.
[19 Jan 2011 8:36]
Andy Knuts
Oké. Which size would you like to test? Ps: I also would like to add that this exact same configuration (even with the double query_cache_size setting) has been in use for 1.5 years on exactly the same hardware without any troubles (not even a single crash) while we were using MySQL 5.0.51a. We didn't touch the hardware configuration but a couple of days ago we did install a new OS and installed the latest MySQL GA version. (We used the MySQL binaries, not from source) So, do you still think it can be related to a OOM? The kernel didn't report anything about an OOM at least.
[25 Jan 2011 17:41]
Valeriy Kravchuk
Please, try with query_cache_size= 16M Just to make sure query cache size does not really matter.
[26 Feb 2011 0:00]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".
