storage/perfschema/pfs_digest.h:126: int read_token(PSI_digest_storage*, int, uint*): Assertion `index <= digest_storage->m_byte_count' failed | abort in read_token

Bug #1206014 reported by Roel Van de Paar on 2013-07-29
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Server
Status tracked in 5.7
5.1
Undecided
Unassigned
5.5
Undecided
Unassigned
5.6
High
Unassigned
5.7
High
Unassigned

Bug Description

Thread 1 (LWP 24699):
+bt
#0 0x000000340cc0c69c in pthread_kill () from /lib64/libpthread.so.0
#1 0x0000000000686bde in handle_fatal_signal (sig=6) at /bzr/5.6_dbg/Percona-Server-5.6.12-rc60.4/sql/signal_handler.cc:251
#2 <signal handler called>
#3 0x000000340c4328a5 in raise () from /lib64/libc.so.6
#4 0x000000340c434085 in abort () from /lib64/libc.so.6
#5 0x000000340c42ba1e in __assert_fail_base () from /lib64/libc.so.6
#6 0x000000340c42bae0 in __assert_fail () from /lib64/libc.so.6
#7 0x00000000009b3763 in read_token (tok=<optimized out>, index=81, digest_storage=0x7f4c663ad270) at /bzr/5.6_dbg/Percona-Server-5.6.12-rc60.4/storage/perfschema/pfs_digest.h:126
#8 get_digest_text (digest_text=<optimized out>, digest_storage=0x7f4c663ad270) at /bzr/5.6_dbg/Percona-Server-5.6.12-rc60.4/storage/perfschema/pfs_digest.cc:402
#9 0x00000000009c9591 in table_events_statements_common::make_row (this=0x7f4bf00d6d80, statement=0x7f4c663acab0) at /bzr/5.6_dbg/Percona-Server-5.6.12-rc60.4/storage/perfschema/table_events_statements.cc:386
#10 0x00000000009c9b23 in table_events_statements_current::rnd_next (this=0x7f4bf00d6d80) at /bzr/5.6_dbg/Percona-Server-5.6.12-rc60.4/storage/perfschema/table_events_statements.cc:648
#11 0x00000000009b15dd in ha_perfschema::rnd_next (this=0x38cc550, buf=0x38cf400 "") at /bzr/5.6_dbg/Percona-Server-5.6.12-rc60.4/storage/perfschema/ha_perfschema.cc:326
#12 0x00000000005b4647 in handler::ha_rnd_next (this=0x38cc550, buf=0x38cf400 "") at /bzr/5.6_dbg/Percona-Server-5.6.12-rc60.4/sql/handler.cc:2667
#13 0x000000000088722c in rr_sequential (info=0x7f4bf0068a10) at /bzr/5.6_dbg/Percona-Server-5.6.12-rc60.4/sql/records.cc:478
#14 0x00000000006fbc89 in sub_select (join=0x7f4bf011b8e8, join_tab=0x7f4bf0068980, end_of_records=<optimized out>) at /bzr/5.6_dbg/Percona-Server-5.6.12-rc60.4/sql/sql_executor.cc:1255
#15 0x00000000006fd38b in do_select (join=0x7f4bf011b8e8) at /bzr/5.6_dbg/Percona-Server-5.6.12-rc60.4/sql/sql_executor.cc:930
#16 JOIN::exec (this=0x7f4bf011b8e8) at /bzr/5.6_dbg/Percona-Server-5.6.12-rc60.4/sql/sql_executor.cc:191
#17 0x00000000007492d0 in mysql_execute_select (free_join=true, select_lex=0x39817b8, thd=0x397ece0) at /bzr/5.6_dbg/Percona-Server-5.6.12-rc60.4/sql/sql_select.cc:1101
#18 mysql_select (thd=0x397ece0, tables=0x7f4bf00056f8, wild_num=1, fields=..., conds=0x0, order=<optimized out>, group=0x39818b8, having=0x0, select_options=2147748608, result=0x7f4bf0006980, unit=0x3981170, select_lex=0x39817b8) at /bzr/5.6_dbg/Percona-Server-5.6.12-rc60.4/sql/sql_select.cc:1222
#19 0x0000000000749dbb in handle_select (thd=0x397ece0, result=0x7f4bf0006980, setup_tables_done_option=0) at /bzr/5.6_dbg/Percona-Server-5.6.12-rc60.4/sql/sql_select.cc:111
#20 0x000000000071ecdd in execute_sqlcom_select (thd=0x397ece0, all_tables=0x7f4bf00056f8) at /bzr/5.6_dbg/Percona-Server-5.6.12-rc60.4/sql/sql_parse.cc:5305
#21 0x00000000007217b7 in mysql_execute_command (thd=0x397ece0) at /bzr/5.6_dbg/Percona-Server-5.6.12-rc60.4/sql/sql_parse.cc:2762
#22 0x0000000000727818 in mysql_parse (thd=0x397ece0, rawbuf=0x39810a8 "\360R7\001", length=<optimized out>, parser_state=<optimized out>) at /bzr/5.6_dbg/Percona-Server-5.6.12-rc60.4/sql/sql_parse.cc:6477
#23 0x000000000072871f in dispatch_command (command=COM_QUERY, thd=0x397ece0, packet=0x3970b71 "", packet_length=235) at /bzr/5.6_dbg/Percona-Server-5.6.12-rc60.4/sql/sql_parse.cc:1374
#24 0x0000000000729a47 in do_command (thd=0x397ece0) at /bzr/5.6_dbg/Percona-Server-5.6.12-rc60.4/sql/sql_parse.cc:1049
#25 0x00000000006ed63f in do_handle_one_connection (thd_arg=<optimized out>) at /bzr/5.6_dbg/Percona-Server-5.6.12-rc60.4/sql/sql_connect.cc:1615
#26 0x00000000006ed727 in handle_one_connection (arg=0x397ece0) at /bzr/5.6_dbg/Percona-Server-5.6.12-rc60.4/sql/sql_connect.cc:1526
#27 0x00000000009dd6c9 in pfs_spawn_thread (arg=0x3916d60) at /bzr/5.6_dbg/Percona-Server-5.6.12-rc60.4/storage/perfschema/pfs.cc:1855
#28 0x000000340cc07851 in start_thread () from /lib64/libpthread.so.0
#29 0x000000340c4e890d in clone () from /lib64/libc.so.6

2013-07-13 23:03:42 24555 [Note] /ssd/Percona-Server-5.6.12-rc60.4-405-debug.Linux.x86_64/bin/mysqld: ready for connections.
Version: '5.6.12-rc60.4-debug-log' socket: '/ssd/837240/current1_6/tmp/master.sock' port: 13100 Percona Server with XtraDB (GPL), Release rc60.4, Revision 405-debug
mysqld: /bzr/5.6_dbg/Percona-Server-5.6.12-rc60.4/storage/perfschema/pfs_digest.h:126: int read_token(PSI_digest_storage*, int, uint*): Assertion `index <= digest_storage->m_byte_count' failed.
20:08:41 UTC - mysqld got signal 6 ;
[...]
Query (7f4bf0004c50): SELECT * FROM (performance_schema . `events_statements_current` AS table1 STRAIGHT_JOIN test . `table100_time_3` AS table2 ON ( table2 . `col_datetime_3` = table1 . `EVENT_NAME` ) ) ORDER BY table2 . `col_time_not_null_key` LIMIT 213
Connection ID (thread ID): 21
Status: NOT_KILLED

Roel Van de Paar (roel11) wrote :
Roel Van de Paar (roel11) wrote :
Roel Van de Paar (roel11) wrote :
Roel Van de Paar (roel11) wrote :
Roel Van de Paar (roel11) wrote :

No yy file available

99% upstream.

tags: added: upstream
Roel Van de Paar (roel11) wrote :

Laurynas, feel free to remove 56qual tag if this bug is "as good as certain" upstream.

tags: added: 56qual
tags: removed: 56qual
Roel Van de Paar (roel11) wrote :

Likely not related but see bug 1688698

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers