[MDEV-26068] Server crashes when innodb-data-file-size-debug set to 1 Created: 2021-07-01  Updated: 2023-09-08  Resolved: 2021-07-01

Status: Closed
Project: MariaDB Server
Component/s: Debug
Affects Version/s: 10.2, 10.3, 10.4, 10.5, 10.6, 10.7
Fix Version/s: N/A

Type: Bug Priority: Major
Reporter: Ramesh Sivaraman Assignee: Marko Mäkelä
Resolution: Won't Fix Votes: 0
Labels: None

Issue Links:
Relates
relates to MDEV-11556 InnoDB redo log apply fails to adjust... Closed
relates to MDEV-26381 InnoDB: Failing assertion: fsize != o... Open

 Description   

# mysqld options required for replay:  --innodb-data-file-size-debug=1

Leads to:

10.6.1 adb0fdb268c6b461a130c27f53a5244a3aa217e9 (Debug)

mysqld: /test/10.6_dbg/storage/innobase/fil/fil0fil.cc:539: bool fil_space_extend_must_retry(fil_space_t*, fil_node_t*, uint32_t, bool*): Assertion `size >= 4U' failed.

10.6.1 adb0fdb268c6b461a130c27f53a5244a3aa217e9 (Debug)

Core was generated by `/test/MD170521-mariadb-10.6.1-linux-x86_64-dbg/bin/mysqld --no-defaults --innod'.
Program terminated with signal SIGABRT, Aborted.
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
[Current thread is 1 (Thread 0x1539e6e37800 (LWP 2839745))]
(gdb) bt
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1  0x00001539e6ff3859 in __GI_abort () at abort.c:79
#2  0x00001539e6ff3729 in __assert_fail_base (fmt=0x1539e7189588 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x55c7f6ac69c5 "size >= 4U", file=0x55c7f6ac4b28 "/test/10.6_dbg/storage/innobase/fil/fil0fil.cc", line=539, function=<optimized out>) at assert.c:92
#3  0x00001539e7004f36 in __GI___assert_fail (assertion=assertion@entry=0x55c7f6ac69c5 "size >= 4U", file=file@entry=0x55c7f6ac4b28 "/test/10.6_dbg/storage/innobase/fil/fil0fil.cc", line=line@entry=539, function=function@entry=0x55c7f6ac4d18 "bool fil_space_extend_must_retry(fil_space_t*, fil_node_t*, uint32_t, bool*)") at assert.c:101
#4  0x000055c7f6571f99 in fil_space_extend_must_retry (space=space@entry=0x55c7f8b4fcb8, node=node@entry=0x55c7f8b4fe28, size=size@entry=1, success=success@entry=0x7ffeae41812f) at /test/10.6_dbg/storage/innobase/fil/fil0fil.cc:539
#5  0x000055c7f6575835 in fil_space_t::prepare (this=this@entry=0x55c7f8b4fcb8, have_mutex=have_mutex@entry=false) at /test/10.6_dbg/storage/innobase/fil/fil0fil.cc:657
#6  0x000055c7f6575afd in fil_space_t::get (id=<optimized out>) at /test/10.6_dbg/include/mysql/psi/mysql_thread.h:786
#7  0x000055c7f6511cec in buf_read_page (page_id={m_id = 7}, zip_size=zip_size@entry=0) at /test/10.6_dbg/storage/innobase/include/buf0types.h:137
#8  0x000055c7f64e7c3a in buf_page_get_low (page_id=page_id@entry={m_id = 7}, zip_size=zip_size@entry=0, rw_latch=rw_latch@entry=2, guess=<optimized out>, guess@entry=0x0, mode=mode@entry=10, mtr=mtr@entry=0x7ffeae418650, err=<optimized out>, allow_ibuf_merge=<optimized out>) at /test/10.6_dbg/storage/innobase/buf/buf0buf.cc:2671
#9  0x000055c7f64e99a8 in buf_page_get_gen (page_id=page_id@entry={m_id = 7}, zip_size=zip_size@entry=0, rw_latch=rw_latch@entry=2, guess=guess@entry=0x0, mode=mode@entry=10, mtr=mtr@entry=0x7ffeae418650, err=0x0, allow_ibuf_merge=false) at /test/10.6_dbg/storage/innobase/buf/buf0buf.cc:3105
#10 0x000055c7f651a62d in dict_boot () at /test/10.6_dbg/storage/innobase/include/buf0types.h:107
#11 0x000055c7f6417fc0 in srv_start (create_new_db=<optimized out>) at /test/10.6_dbg/storage/innobase/srv/srv0start.cc:1440
#12 0x000055c7f6221712 in innodb_init (p=<optimized out>) at /test/10.6_dbg/storage/innobase/handler/ha_innodb.cc:3764
#13 0x000055c7f5e163fa in ha_initialize_handlerton (plugin=0x55c7f8804e20) at /test/10.6_dbg/sql/handler.cc:647
#14 0x000055c7f5b5bf79 in plugin_initialize (tmp_root=tmp_root@entry=0x7ffeae41b740, plugin=plugin@entry=0x55c7f8804e20, argc=argc@entry=0x55c7f713b9e0 <remaining_argc>, argv=argv@entry=0x55c7f87c1078, options_only=<optimized out>) at /test/10.6_dbg/sql/sql_plugin.cc:1459
#15 0x000055c7f5b5d9a7 in plugin_init (argc=argc@entry=0x55c7f713b9e0 <remaining_argc>, argv=<optimized out>, flags=0) at /test/10.6_dbg/sql/sql_plugin.cc:1751
#16 0x000055c7f5a34166 in init_server_components () at /test/10.6_dbg/sql/mysqld.cc:5023
#17 0x000055c7f5a3ab30 in mysqld_main (argc=<optimized out>, argv=<optimized out>) at /test/10.6_dbg/sql/mysqld.cc:5630
#18 0x000055c7f5a2db26 in main (argc=<optimized out>, argv=<optimized out>) at /test/10.6_dbg/sql/main.cc:34

Bug confirmed present in:
MariaDB: 10.2.39 (dbg), 10.3.30 (dbg), 10.4.20 (dbg), 10.5.11 (dbg), 10.6.1 (dbg)

Bug (or feature/syntax) confirmed not present in:
MariaDB: 10.2.39 (opt), 10.3.30 (opt), 10.4.20 (opt), 10.5.11 (opt), 10.6.1 (opt)



 Comments   
Comment by Marko Mäkelä [ 2021-07-01 ]

The parameter for debug injection was added for a test case of MDEV-11556. I do not think that it is meaningful to do anything about this.

Generated at Thu Feb 08 09:42:30 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.