MySQL-5.5.8 crashes by show table status

Bug #726079 reported by Yuki Asano
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Vertical Partitioning for MySQL
Fix Released
High
Kentoku SHIBA

Bug Description

CentOS-5.5上にMySQL-5.5.8とSpider-2.24、VP-0.13で下記の手順でコンパイル&インストールしました。

cmake .
make
make install

mysql> source install_spider.sql
mysql> source isntall_vp.sql

// create vp table

適当にvpテーブルを作ったDBをuseした上で show table statusを発行するとクラッシュします。
selectなどは問題ありません。

mysql>show table status;
ERROR 2013 (HY000): Lost connection to MySQL server during query

-- log
110206 7:27:40 - 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=1073741824
read_buffer_size=1073741824
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 = 78416 K
bytes of memory
Hope that's ok; if not, decrease some variables in the equation.

thd: 0xa2582c0
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 = 0x68d2c388 thread_stack 0x30000
/usr/local/mysql/bin/mysqld(my_print_stacktrace+0x39)[0x85100a9]
/usr/local/mysql/bin/mysqld(handle_segfault+0x3a1)[0x8117651]
[0x905420]
/usr/local/mysql/bin/mysqld(_Z19close_thread_tablesP3THD+0x56)[0x8156fb6]
/usr/local/mysql/bin/mysqld(_Z23close_tables_for_reopenP3THDPP10TABLE_LISTRK13MDL_savepoint+0x9e)[0x815725e]
/usr/local/mysql/bin/mysqld(_Z14get_all_tablesP3THDP10TABLE_LISTP4Item+0x956)[0x81d8386]
/usr/local/mysql/bin/mysqld(_Z24get_schema_tables_resultP4JOIN23enum_schema_table_state+0x1bb)[0x81c6d7b]
/usr/local/mysql/bin/mysqld(_ZN4JOIN4execEv+0x47e)[0x81c1dde]
/usr/local/mysql/bin/mysqld(_Z12mysql_selectP3THDPPP4ItemP10TABLE_LISTjR4ListIS1_ES2_jP8st_orderSB_S2_SB_yP13select_resultP18st_select_lex_unitP13st_select_lex+0x196)[0x81c4246]
/usr/local/mysql/bin/mysqld(_Z13handle_selectP3THDP3LEXP13select_resultm+0x14c)[0x81c4aec]
/usr/local/mysql/bin/mysqld[0x8186a12]
/usr/local/mysql/bin/mysqld(_Z21mysql_execute_commandP3THD+0x315f)[0x818a0bf]
/usr/local/mysql/bin/mysqld(_Z11mysql_parseP3THDPcjP12Parser_state+0x100)[0x818df30]
/usr/local/mysql/bin/mysqld(_Z16dispatch_command19enum_server_commandP3THDPcj+0x13ce)[0x818f35e]
/usr/local/mysql/bin/mysqld(_Z10do_commandP3THD+0xc4)[0x818f744]
/usr/local/mysql/bin/mysqld(_Z24do_handle_one_connectionP3THD+0x123)[0x821d4e3]
/usr/local/mysql/bin/mysqld(handle_one_connection+0x3c)[0x821d5bc]
/lib/libpthread.so.0[0xd9d832]
/lib/libc.so.6(clone+0x5e)[0xcdcf6e]
Trying to get some variables.
Some pointers may be invalid and cause the dump to abort...
thd->query at 0xa281d40 = show table status
thd->thread_id=3
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.
110206 07:27:40 mysqld_safe Number of processes running now: 0
110206 07:27:40 mysqld_safe mysqld restarted

ちなみにですが下記コマンドでも同様にクラッシュしました。
information_schemaを参照しようとすると問題があるようです。

select * from information_schema.table_constraints;
select * from information_schema.tables;
select * from information_schema.partitions;
desc "vp_table_name"
show create status like "vp_table_name"

Revision history for this message
Yuki Asano (yuki-asano) wrote :
Download full text (8.5 KiB)

他情報も添付しておきます。
vp_copy_tables() の呼出しでも同様にクラッシュし、MySQL-5.1.44との連携では症状は確認できませんでした。

mysql> show plugins;
+-----------------------+--------+--------------------+--------------+---------+
| Name | Status | Type | Library | License |
+-----------------------+--------+--------------------+--------------+---------+
| binlog | ACTIVE | STORAGE ENGINE | NULL | GPL |
| mysql_native_password | ACTIVE | AUTHENTICATION | NULL | GPL |
| mysql_old_password | ACTIVE | AUTHENTICATION | NULL | GPL |
| MRG_MYISAM | ACTIVE | STORAGE ENGINE | NULL | GPL |
| MEMORY | ACTIVE | STORAGE ENGINE | NULL | GPL |
| CSV | ACTIVE | STORAGE ENGINE | NULL | GPL |
| MyISAM | ACTIVE | STORAGE ENGINE | NULL | GPL |
| InnoDB | ACTIVE | STORAGE ENGINE | NULL | GPL |
| INNODB_TRX | ACTIVE | INFORMATION SCHEMA | NULL | GPL |
| INNODB_LOCKS | ACTIVE | INFORMATION SCHEMA | NULL | GPL |
| INNODB_LOCK_WAITS | ACTIVE | INFORMATION SCHEMA | NULL | GPL |
| INNODB_CMP | ACTIVE | INFORMATION SCHEMA | NULL | GPL |
| INNODB_CMP_RESET | ACTIVE | INFORMATION SCHEMA | NULL | GPL |
| INNODB_CMPMEM | ACTIVE | INFORMATION SCHEMA | NULL | GPL |
| INNODB_CMPMEM_RESET | ACTIVE | INFORMATION SCHEMA | NULL | GPL |
| PERFORMANCE_SCHEMA | ACTIVE | STORAGE ENGINE | NULL | GPL |
| partition | ACTIVE | STORAGE ENGINE | NULL | GPL |
| SPIDER | ACTIVE | STORAGE ENGINE | ha_spider.so | GPL |
| VP | ACTIVE | STORAGE ENGINE | ha_vp.so | GPL |
+-----------------------+--------+--------------------+--------------+---------+
19 rows in set (0.02 sec)

mysql> select * from information_schema.plugins;
+-----------------------+----------------+---------------+--------------------+---------------------+----------------+------------------------+----------------------------+--------------------------------------------------------------------------+----------------+-------------+
| PLUGIN_NAME | PLUGIN_VERSION | PLUGIN_STATUS | PLUGIN_TYPE | PLUGIN_TYPE_VERSION | PLUGIN_LIBRARY | PLUGIN_LIBRARY_VERSION | PLUGIN_AUTHOR | PLUGIN_DESCRIPTION | PLUGIN_LICENSE | LOAD_OPTION |
+-----------------------+----------------+---------------+--------------------+---------------------+----------------+------------------------+----------------------------+--------------------------------------------------------------------------+----------------+-------------+
| binlog | 1.0 | ACTIVE | STORAGE ENGINE | 50508.0 | NULL | NULL | MySQL AB | This is a pseudo storage engine to represent the binlog in a transaction | GPL | FORCE |
| mysql_native_password | 1.0 ...

Read more...

Changed in vpformysql:
assignee: nobody → Kentoku SHIBA (kentokushiba)
Changed in vpformysql:
status: New → In Progress
importance: Undecided → High
Revision history for this message
Kentoku SHIBA (kentokushiba) wrote :

バグのご報告ありがとうございます。

修正版を作成いたしましたので、
こちらをお使い下さい。

Revision history for this message
Kentoku SHIBA (kentokushiba) wrote :

バージョン0.14でリリースしました。

Changed in vpformysql:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.