Автор Тема: AltLinux 5.0.0 Ковчег, падает MySQL  (Прочитано 1888 раз)

Оффлайн hiller

  • Участник
  • *
  • Сообщений: 3
Установлен AltLinux 5.0.0 Ковчег x86_64.

$ rpm -qa | grep MySQL
MySQL-server-5.0.83-alt2
MySQL-client-5.0.83-alt2
libMySQL-devel-5.0.83-alt2
libMySQL-5.0.83-alt2
$ uname -a
Linux maindb.local 2.6.30-std-def-alt14 #1 SMP Wed Oct 7 06:45:50 UTC 2009 x86_64 GNU/Linux
$ cat /proc/cpuinfo | grep model | tail -1
model name      : Intel(R) Core(TM)2 Quad CPU    Q8400  @ 2.66GHz
$ free
             total       used       free     shared    buffers     cached
Mem:       4061160    3442056     619104          0     159476    2646212
-/+ buffers/cache:     636368    3424792
Swap:      4192824       4956    4187868

Через произвольный промежуток времени падает с таким логом:
091213 16:57:02  InnoDB: Started; log sequence number 26 250290865
091213 16:57:02 [Note] /usr/sbin/mysqld: ready for connections.
Version: '5.0.83-log'  socket: '/mysql.sock'  port: 3306  ALT Linux MySQL RPM
091221  7:32:05 - 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.
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.

key_buffer_size=134217728
read_buffer_size=131072
max_used_connections=77
max_connections=1000
threads_connected=12
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_connections = 2307064 K
bytes of memory
Hope that's ok; if not, decrease some variables in the equation.

thd=(nil)
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...
Cannot determine thread, fp=0x40000, backtrace may not be correct.
Bogus stack limit or frame pointer, fp=0x40000, stack_bottom=0x7fa7ed090000, thread_stack=262144, aborting backtrace.
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.
2009-Dec-21 07:32:06 :: execution failed
2009-Dec-21 07:32:06 :: shutdown

В чем может быть причина?

Память сначала тестировали, ошибок не обнаружилось, потом для очистки совести меняли на новую, опять тестировали, ошибок нет.
Все остальное работает.

Помогите, пожалуйста...

Drool

  • Гость
Re: AltLinux 5.0.0 Ковчег, падает MySQL
« Ответ #1 : 21.12.2009 09:14:08 »
Здесь еще спросите: https://lists.altlinux.org/mailman/listinfo/sysadmins

Оффлайн hiller

  • Участник
  • *
  • Сообщений: 3
Re: AltLinux 5.0.0 Ковчег, падает MySQL
« Ответ #2 : 21.12.2009 09:28:23 »
Спасибо за совет, пошел подписываться...

Оффлайн Ilya Evseev

  • Участник
  • *
  • Сообщений: 52
Re: AltLinux 5.0.0 Ковчег, падает MySQL
« Ответ #3 : 30.03.2010 18:30:14 »
Только что столкнулся с такой же проблемой, altlinux p5, mysql 5.0.90-alt1,
выдаёт эту ошибку сразу при запуске и завершается:
2010-Mar-30 18:08:49 :: startup
InnoDB: Error: tried to read 1048576 bytes at offset 0 1048576.
InnoDB: Was only able to read 671744.
InnoDB: Fatal error: cannot read from file. OS error number 17.
100330 18:09:35InnoDB: Assertion failure in thread 139746124031792 in file os0file.c line 2211
InnoDB: We intentionally generate a memory trap.
InnoDB: Submit a detailed bug report to http://bugs.mysql.com.
InnoDB: If you get repeated assertion failures or crashes, even
InnoDB: immediately after the mysqld startup, there may be
InnoDB: corruption in the InnoDB tablespace. Please refer to
InnoDB: http://dev.mysql.com/doc/refman/5.0/en/forcing-recovery.html
InnoDB: about forcing recovery.
100330 18:09:35 - 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.
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.

key_buffer_size=0
read_buffer_size=1048576
max_used_connections=0
max_connections=100
threads_connected=0
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_connections = 307199 K
bytes of memory
Hope that's ok; if not, decrease some variables in the equation.

thd=(nil)
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...
Cannot determine thread, fp=0x40000, backtrace may not be correct.
Bogus stack limit or frame pointer, fp=0x40000, stack_bottom=0x7fff36160000, thread_stack=262144, aborting backtrace.
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.
2010-Mar-30 18:09:35 :: execution failed
2010-Mar-30 18:09:35 :: shutdown
2010-Mar-30 18:11:38 :: startup
InnoDB: Error: tried to read 1048576 bytes at offset 0 1048576.
InnoDB: Was only able to read 671744.
InnoDB: Fatal error: cannot read from file. OS error number 17.
100330 18:12:03InnoDB: Assertion failure in thread 140143140501296 in file os0file.c line 2211
InnoDB: We intentionally generate a memory trap.
InnoDB: Submit a detailed bug report to http://bugs.mysql.com.
InnoDB: If you get repeated assertion failures or crashes, even
InnoDB: immediately after the mysqld startup, there may be
InnoDB: corruption in the InnoDB tablespace. Please refer to
InnoDB: http://dev.mysql.com/doc/refman/5.0/en/forcing-recovery.html
InnoDB: about forcing recovery.
100330 18:12:03 - 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.
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.

key_buffer_size=0
read_buffer_size=1048576
max_used_connections=0
max_connections=100
threads_connected=0
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_connections = 307199 K
bytes of memory
Hope that's ok; if not, decrease some variables in the equation.

thd=(nil)
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...
Cannot determine thread, fp=0x40000, backtrace may not be correct.
Bogus stack limit or frame pointer, fp=0x40000, stack_bottom=0x7fffa61d0000, thread_stack=262144, aborting backtrace.
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.
2010-Mar-30 18:12:04 :: execution failed
2010-Mar-30 18:12:04 :: shutdown

/var/lib/mysql/my.cnf:
skip-bdb
chroot=/var/lib/mysql
datadir=/db
bdb-logdir=/log
pid-file=/mysqld.pid
skip-locking
socket=/mysql.sock
tmpdir=/tmp
user=mysql

key_buffer = 32M
table_cache = 128
read_buffer_size = 1M
read_rnd_buffer_size = 1M
myisam_sort_buffer_size = 16M
thread_cache_size = 16
query_cache_size = 32M
thread_concurrency = 2

Помогло отключение InnoDB (skip-innodb в my.cnf)