[groonga-dev,01069] mysql強制再起動(mysql5.1.61, mroonga2.0.8)

Back to archive index

宮脇佑介 wakis****@gmail*****
2012年 10月 29日 (月) 20:24:27 JST


以前mroongaのインストール手順についてお世話になりました、
wakisukeこと宮脇です。


この度、リリースされたmroonga2.0.8にアップデートをしたのですが、
アップデート後、mroongaエンジンを使ったテーブルへインサートを行うと、
必ず以下のメッセージを出して、mysqlが再起動するという症状が起きています。

ERROR 2013 (HY000): Lost connection to MySQL server during query

アップデートのミスかと思い、OS(Centos6.3)ごとクリーンインストールした
のですが、
状況変わらずでした。

また、以前のデータベースでの問題ではなく、
現在ではmgoongaのユーザガイドに記載されている、基本的なインサート文でも
上記同様にmysqlの再起動が発生します
http://mroonga.github.com/ja/docs/userguide/storage.html#how-to-use-full-text-search


エラーログにも疑わしい記録がなく、
現在mroongaエンジンを使ったテーブルにはインサートが一切機能しない状況です。
(mroongaエンジンを使用していないテーブルへのインサートは可能です、その
他alterを使ったmroongaテーブルの作成は可能で す)



以上となります。
こちらで原因特定できず申し訳ありません。
何卒、よろしくお願い致しますm(_ _)m







以下にテーブル作成からインサートまでの実行文と、
エラーログの履歴を記載します

************************ SQL文
mysql> CREATE TABLE diaries (id INT PRIMARY KEY AUTO_INCREMENT, content
VARCHAR(255), FULLTEXT INDEX (content)) ENGINE = mroonga DEFAULT CHARSET
utf8;
Query OK, 0 rows affected (0.30 sec)
mysql> INSERT INTO diaries (content) VALUES ("明日の天気は晴れでしょう。");
ERROR 2013 (HY000): Lost connection to MySQL server during query
mysql> INSERT INTO diaries (content) VALUES ("明日の天気は晴れでしょう。");
ERROR 2006 (HY000): MySQL server has gone away
No connection. Trying to reconnect...
Connection id: 1
Current database: test

ERROR 2013 (HY000): Lost connection to MySQL server during query

************************ mysql log
121029 20:22:15 mysqld_safe Number of processes running now: 0
121029 20:22:15 mysqld_safe mysqld restarted
121029 20:22:15 InnoDB: Initializing buffer pool, size = 8.0M
121029 20:22:15 InnoDB: Completed initialization of buffer pool
121029 20:22:15 InnoDB: Started; log sequence number 0 44243
121029 20:22:15 [Note] Event Scheduler: Loaded 0 events
121029 20:22:15 [Note] /usr/libexec/mysqld: ready for connections.
Version: '5.1.61' socket: '/var/lib/mysql/mysql.sock' port: 3306 Source
distribution
11:22:16 UTC - 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=8384512
read_buffer_size=131072
max_used_connections=1
max_threads=151
thread_count=1
connection_count=1
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads =
338324 K bytes of memory
Hope that's ok; if not, decrease some variables in the equation.

Thread pointer: 0x220f980
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 = 7f89640c7d98 thread_stack 0x40000
/usr/libexec/mysqld(my_print_stacktrace+0x29) [0x84c049]
/usr/libexec/mysqld(handle_fatal_signal+0x483) [0x6a0fa3]
/lib64/libpthread.so.0() [0x386560f500]
/usr/lib64/mysql/plugin/ha_mroonga.so(+0x17bdf) [0x7f8964be6bdf]
/usr/lib64/mysql/plugin/ha_mroonga.so(ha_mroonga::storage_write_row(unsigned
char*)+0x6ef) [0x7f8964bfba8f]
/usr/libexec/mysqld(handler::ha_write_row(unsigned char*)+0x59) [0x696f59]
/usr/libexec/mysqld(write_record(THD*, st_table*, st_copy_info*)+0x6f)
[0x635a8f]
/usr/libexec/mysqld(mysql_insert(THD*, TABLE_LIST*, List<Item>&,
List<List<Item> >&, List<Item>&, List<Item>&, enum_duplicates,
bool)+0xb37) [0x639e67]
/usr/libexec/mysqld(mysql_execute_command(THD*)+0xb89) [0x5c8b69]
/usr/libexec/mysqld(mysql_parse(THD*, char*, unsigned int, char
const**)+0x2d3) [0x5cda33]
/usr/libexec/mysqld(dispatch_command(enum_server_command, THD*, char*,
unsigned int)+0xd05) [0x5cf865]
/usr/libexec/mysqld(do_command(THD*)+0xea) [0x5d03ba]
/usr/libexec/mysqld(handle_one_connection+0x23d) [0x5c39ed]
/lib64/libpthread.so.0() [0x3865607851]
/lib64/libc.so.6(clone+0x6d) [0x38652e811d]

Trying to get some variables.
Some pointers may be invalid and cause the dump to abort.
Query (7f894c004a00): is an invalid pointer
Connection ID (thread ID): 1
Status: 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.
121029 20:22:16 mysqld_safe Number of processes running now: 0
121029 20:22:16 mysqld_safe mysqld restarted
121029 20:22:16 InnoDB: Initializing buffer pool, size = 8.0M
121029 20:22:16 InnoDB: Completed initialization of buffer pool
121029 20:22:16 InnoDB: Started; log sequence number 0 44243
121029 20:22:16 [Note] Event Scheduler: Loaded 0 events
121029 20:22:16 [Note] /usr/libexec/mysqld: ready for connections.
Version: '5.1.61' socket: '/var/lib/mysql/mysql.sock' port: 3306 Source
distribution


************************ mroonga log
2012-10-29 20:22:15.704411|n|662197e0|mroonga 2.08 started.
2012-10-29 20:22:15.704456|n|662197e0|log level is 'DUMP'
2012-10-29 20:22:16.738590|n|b12af7e0|mroonga 2.08 started.
2012-10-29 20:22:16.738612|n|b12af7e0|log level is 'DUMP'




mysqlの環境などを記載します

************************ mysql 文字コード
mysql> show variables like 'character_set%';
+--------------------------+----------------------------+
| Variable_name | Value |
+--------------------------+----------------------------+
| character_set_client | utf8 |
| character_set_connection | utf8 |
| character_set_database | utf8 |
| character_set_filesystem | binary |
| character_set_results | utf8 |
| character_set_server | utf8 |
| character_set_system | utf8 |
| character_sets_dir | /usr/share/mysql/charsets/ |
+--------------------------+----------------------------+
8 rows in set (0.00 sec)

********************** mysql バージョン
mysqladmin Ver 8.42 Distrib 5.1.61, for redhat-linux-gnu on x86_64
Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Server version 5.1.61
Protocol version 10
Connection Localhost via UNIX socket
UNIX socket /var/lib/mysql/mysql.sock
Uptime: 12 min 25 sec

Threads: 1 Questions: 28 Slow queries: 0 Opens: 30 Flush tables: 1 Open
tables: 9 Queries per second avg: 0.37

********************** mecab 文字コード
[root @ wakisuke mysql]# mecab -D | grep cha
charset: utf8

[root @ wakisuke mysql]# echo "すもももももももものうち" | mecab
すもも 名詞,一般,*,*,*,*,すもも,スモモ,スモモ
も 助詞,係助詞,*,*,*,*,も,モ,モ
もも 名詞,一般,*,*,*,*,もも,モモ,モモ
も 助詞,係助詞,*,*,*,*,も,モ,モ
もも 名詞,一般,*,*,*,*,もも,モモ,モモ
の 助詞,連体化,*,*,*,*,の,ノ,ノ
うち 名詞,非自立,副詞可能,*,*,*,うち,ウチ,ウチ
EOS




groonga-dev メーリングリストの案内
Back to archive index