[MDEV-7762] InnoDB: Failing assertion: block->page.buf_fix_count > 0 in buf0buf.ic line 730 Created: 2015-03-11  Updated: 2015-12-03  Resolved: 2015-12-03

Status: Closed
Project: MariaDB Server
Component/s: Storage Engine - XtraDB
Affects Version/s: 5.5
Fix Version/s: 5.5.47

Type: Bug Priority: Minor
Reporter: Elena Stepanova Assignee: Jan Lindström (Inactive)
Resolution: Fixed Votes: 0
Labels: upstream, xtradb

Sprint: 5.5.47-1

 Description   

CREATE TABLE t1 ENGINE=InnoDB AS SELECT * FROM mysql.help_topic;
SELECT * FROM INFORMATION_SCHEMA.INNODB_BUFFER_POOL_PAGES_BLOB;

Stack trace from 5.5 commit 34f37aa0c0aa87cfb6908500e937516ff37ea6f0

150312  0:55:12  InnoDB: Assertion failure in thread 140654486423296 in file buf0buf.ic line 730
InnoDB: Failing assertion: block->page.buf_fix_count > 0
 
#5  0x00007fecaa9773e0 in *__GI_abort () at abort.c:92
#6  0x0000000000988f15 in buf_block_get_frame (block=0x7feca5fe68c0) at 5.5/storage/xtradb/include/buf0buf.ic:730
#7  0x000000000099357e in i_s_innodb_buffer_pool_pages_blob_fill (thd=0x7feca5a26060, tables=0x7fec9a9512f8, cond=0x0) at 5.5/storage/xtradb/handler/i_s.cc:6680
#8  0x00000000006bfab0 in get_schema_tables_result (join=0x7fec9a952358, executed_place=PROCESSED_BY_JOIN_EXEC) at 5.5/sql/sql_show.cc:7767
#9  0x0000000000669c78 in JOIN::exec (this=0x7fec9a952358) at 5.5/sql/sql_select.cc:2360
#10 0x000000000066c4ad in mysql_select (thd=0x7feca5a26060, rref_pointer_array=0x7feca5a29cd0, tables=0x7fec9a9512f8, wild_num=1, fields=..., conds=0x0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2684619520, result=0x7fec9a952338, unit=0x7feca5a29380, select_lex=0x7feca5a29a60) at 5.5/sql/sql_select.cc:3094
#11 0x0000000000662f7d in handle_select (thd=0x7feca5a26060, lex=0x7feca5a292d0, result=0x7fec9a952338, setup_tables_done_option=0) at 5.5/sql/sql_select.cc:319
#12 0x000000000063c1bc in execute_sqlcom_select (thd=0x7feca5a26060, all_tables=0x7fec9a9512f8) at 5.5/sql/sql_parse.cc:4689
#13 0x000000000063539e in mysql_execute_command (thd=0x7feca5a26060) at 5.5/sql/sql_parse.cc:2234
#14 0x000000000063eca2 in mysql_parse (thd=0x7feca5a26060, rawbuf=0x7fec9a951078 "SELECT * FROM INFORMATION_SCHEMA.INNODB_BUFFER_POOL_PAGES_BLOB", length=62, parser_state=0x7fecacb2f620) at 5.5/sql/sql_parse.cc:5909
#15 0x00000000006328e5 in dispatch_command (command=COM_QUERY, thd=0x7feca5a26060, packet=0x7fec9c8b5061 "SELECT * FROM INFORMATION_SCHEMA.INNODB_BUFFER_POOL_PAGES_BLOB", packet_length=62) at 5.5/sql/sql_parse.cc:1079
#16 0x0000000000631a71 in do_command (thd=0x7feca5a26060) at 5.5/sql/sql_parse.cc:793
#17 0x00000000007340f2 in do_handle_one_connection (thd_arg=0x7feca5a26060) at 5.5/sql/sql_connect.cc:1266
#18 0x0000000000733bb1 in handle_one_connection (arg=0x7feca5a26060) at 5.5/sql/sql_connect.cc:1181
#19 0x0000000000b6c5f9 in pfs_spawn_thread (arg=0x7feca5a2ea20) at 5.5/storage/perfschema/pfs.cc:1015
#20 0x00007fecac768b50 in start_thread (arg=<optimized out>) at pthread_create.c:304
#21 0x00007fecaaa1e70d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112



 Comments   
Comment by Elena Stepanova [ 2015-03-11 ]

jplindst,
This is an XtraDB bug https://bugs.launchpad.net/percona-server/+bug/1217158 .
If you think we should wait for a fix from Percona, or not fix it at all, I'm okay with that, I just need it to be filed.

Comment by Jan Lindström (Inactive) [ 2015-03-12 ]

This is debug only assertion I_S function (IS is XtraDB feature) is calling buf_block_get_frame on any page it reads, which debug-asserts that the page is buffer-fixed, which is not the case in I_S query. Lets, wait that Percona fixes this.

Comment by Jan Lindström (Inactive) [ 2015-12-03 ]

commit 33589b25efe3283b748e43a54c42db2ed176c3e5
Author: Jan Lindström <jan.lindstrom@mariadb.com>
Date: Thu Dec 3 13:18:10 2015 +0200

MDEV-7762 InnoDB: Failing assertion: block->page.buf_fix_count > 0 in buf0buf.ic line 730

Analysis: debug only assertion I_S function (IS is XtraDB feature) is calling
buf_block_get_frame on any page it reads, which debug-asserts that the page is
buffer-fixed, which is not the case in I_S query.

Fixed by holding the buffer page mutex while the fields are read directly.

Generated at Thu Feb 08 07:22:04 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.