LINUX.ORG.RU
ФорумAdmin

mysqld got signal 11


0

0

на 3 mysql-серверах : все 5.1.32 - два из них на линуксах Gentoo(2.6.28 x86_64 ) и OpenSuse (2.6.18.2-34-default) - на них mysql собран вручную .. и один FreeBSd-7 - тут Mysql собран из портов (7.1-PRERELEASE #14 ) ..
на одном и том же селекте
SELECT * FROM probid_fields_data WHERE boxid='91' and auctionid='1936673' ;
все сервера видають ошибку
ERROR 2013 (HY000): Lost connection to MySQL server during query
и в логах:

090322 20:00:21 - 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=2147483648
read_buffer_size=4194304
max_used_connections=155
max_threads=300
threads_connected=11
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 5786596 K
bytes of memory
Hope that's ok; if not, decrease some variables in the equation.

thd: 0x7f770005e110
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...
stack_bottom = 0x7f772b4d2f70 thread_stack 0x40000
[0x691e24]
[0x4ba590]
[0x629730]
[0x649052]
[0x6745ae]
[0x5a170a]
[0x589b67]
[0x584082]
[0x58416b]
[0x513dc0]
[0x51ea65]
[0x51eebd]
[0x531a62]
[0x52dc24]
[0x53333c]
[0x4c763a]
[0x4cdab0]
[0x4cf996]
[0x4d07f3]
[0x4d10a6]
[0x4c3e4e]
[0x625ed7]
[0x715879]
Trying to get some variables.
Some pointers may be invalid and cause the dump to abort...
thd->query at 0x7f77244f1600 is an invalid pointer
thd->thread_id=113784
thd->killed=NOT_KILLED
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.

resolve_stack_dump -s /tmp/mysqld.sym -n /tmp/mysql.stack
0x691e24 my_print_stacktrace + 36
0x4ba590 handle_segfault + 848
0x629730 __restore_rt + 0
0x649052 mi_lock_database + 34
0x6745ae myrg_lock_database + 110
0x5a170a _ZN7handler16ha_external_lockEP3THDi + 26
0x589b67 _ZN18QUICK_RANGE_SELECT20init_ror_merged_scanEb + 167
0x584082 _ZN26QUICK_ROR_INTERSECT_SELECT20init_ror_merged_scanEb + 114
0x58416b _ZN26QUICK_ROR_INTERSECT_SELECT5resetEv + 75
0x513dc0 _ZL21join_init_read_recordP13st_join_table + 32
0x51ea65 _Z10sub_selectP4JOINP13st_join_tableb + 101
0x51eebd _ZL9do_selectP4JOINP4ListI4ItemEP8st_tableP9Procedure + 637
0x531a62 _ZN4JOIN4execEv + 2354
0x52dc24 _Z12mysql_selectP3THDPPP4ItemP10TABLE_LISTjR4ListIS1_ES2_jP8st_orderSB_S2_SB_yP 13select_resultP18st_select_lex_unitP13st_select + 292
0x53333c _Z13handle_selectP3THDP6st_lexP13select_resultm + 364
0x4c763a _ZL21execute_sqlcom_selectP3THDP10TABLE_LIST + 154
0x4cdab0 _Z21mysql_execute_commandP3THD + 14448
0x4cf996 _Z11mysql_parseP3THDPKcjPS2_ + 854
0x4d07f3 _Z16dispatch_command19enum_server_commandP3THDPcj + 3667
0x4d10a6 _Z10do_commandP3THD + 230
0x4c3e4e handle_one_connection + 558
0x625ed7 start_thread + 199
0x715879 clone + 121


desc probid_fields_data
-> ;
+-----------+------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+-----------+------------+------+-----+---------+----------------+
| id | int(11) | NO | MUL | NULL | auto_increment |
| auctionid | int(11) | NO | MUL | 0 | |
| ownerid | int(11) | NO | | 0 | |
| boxid | int(11) | NO | MUL | 0 | |
| boxvalue | text | NO | | NULL | |
| active | tinyint(4) | NO | | 1 | |
+-----------+------------+------+-----+---------+----------------+
6 rows in set (0.00 sec)

# free
total used free shared buffers cached
Mem: 16463976 10003524 6460452 0 82044 9153468
-/+ buffers/cache: 768012 15695964
Swap: 2104504 14640 2089864

my.cnf тут http://vol-kovtun.narod.ru/unix/gentoo.html
другие my.cnf немного отличаютса ..

подскажите в чем может бить причина ?


забил написать

таблица probid_fields_data имеет тип merge

mysql> SELECT * FROM probid_fields_data_closed WHERE boxid='91' and auctionid='1936673';
Empty set (0.00 sec)

mysql> SELECT * FROM probid_fields_data_active WHERE boxid='91' and auctionid='1936673';
Empty set (0.01 sec)

mysql> SELECT * FROM probid_fields_data WHERE boxid='91' and auctionid='1936673';
ERROR 2013 (HY000): Lost connection to MySQL server during query

vova07
() автор топика

самое обычное это нехватка памяти, проверь хватает ли её. Если ОК то пиши багрепорт :)

true_admin ★★★★★
()
Ответ на: комментарий от true_admin

Оперативки хватает .. там по 16Г на 2 серверах

интересно что такая ошбика далеко не со всема select-ами

mysql> SELECT * FROM probid_fields_data WHERE boxid='15' and auctionid='1670071' ;
+-------+-----------+---------+-------+----------+--------+
| id | auctionid | ownerid | boxid | boxvalue | active |
+-------+-----------+---------+-------+----------+--------+
| 66639 | 1670071 | 135323 | 15 | all | 1 |
+-------+-----------+---------+-------+----------+--------+
1 row in set (0.02 sec)

vova07
() автор топика
Ответ на: комментарий от vova07

я имел в виду не выставлены ли лимиты.

Вообще, я уже сталкивался когда выборка по определённому индексу рушила мускул на amd64 тачке. Попробуй с индексами поиграться. После этого перешёл на постгрес в новых проектах :)

true_admin ★★★★★
()
Ответ на: комментарий от true_admin

сознательно я никаких лимитов не ставил.
пробивал искать - так же не нашол ..
может подскажите в каких местах посмотреть ? ( login.defs)

( системи то ж разние - результат один !!! )

vova07
() автор топика
Ответ на: комментарий от vova07

Судя по трейсу это эпичный баг с merge таблицами и index_merge, вот этот: http://bugs.mysql.com/bug.php?id=41333.

На текущий момент это можно обойти только добавив в запрос IGNORE INDEX( <какой у тебя там индекс по boxid>), или наоборот по auction_id, оно симметрично, выбери какое быстрее.

Начиная со следующего 5.1 можно будет глобально запретить index_merge http://lists.mysql.com/commits/67226 . Будет ли пофиксен 41333, неясно. Уже несколько 5.1 релизов прошло с тех пор как проблема известна.

gods-little-toy ★★★
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.