[MDEV-13305] InnoDB: Assertion failure in file /home/buildbot/buildbot/build/mariadb-10.2.7/storage/innobase/srv/srv0start.cc line 960 Created: 2017-07-13  Updated: 2017-07-14  Resolved: 2017-07-13

Status: Closed
Project: MariaDB Server
Component/s: Backup
Affects Version/s: 10.2.7
Fix Version/s: N/A

Type: Bug Priority: Major
Reporter: Michael Xu Assignee: Vladislav Vaintroub
Resolution: Duplicate Votes: 0
Labels: need_feedback
Environment:

CentOS 7.x x86_64


Issue Links:
Duplicate
duplicates MDEV-12988 backup fails if innodb_undo_tablespac... Closed

 Description   

# mariabackup --backup --host=127.0.0.1 --port=3306 --user=backup --password=changeme --parallel=16 --extra-lsndir=/var/tmp/backup_3306 --tmpdir=/tmp/backup_3306 --target-dir=/var/tmp/backup_3306
170713 11:59:47 Connecting to MySQL server host: 127.0.0.1, user: backup, password: set, port: 3306, socket: not set
Using server version 10.2.7-MariaDB-log
mariabackup based on MariaDB server 10.2.7-MariaDB Linux (x86_64) 
xtrabackup: uses posix_fadvise().
xtrabackup: cd to /var/lib/mysql/
xtrabackup: open files limit requested 102400, set to 102400
xtrabackup: using the following InnoDB configuration:
xtrabackup:   innodb_data_home_dir = /var/lib/mysql
xtrabackup:   innodb_data_file_path = ib_data1:100M;ib_data2:100M;ib_data3:100M;ib_data4:100M:autoextend
xtrabackup:   innodb_log_group_home_dir = /var/lib/mysql
2017-07-13 11:59:47 0x7fba884fe8c0 InnoDB: Using Linux native AIO
xtrabackup: using O_DIRECT
xtrabackupp: Warning: ignoring innodb_flush_method = O_DIRECT on Windows.
2017-07-13 11:59:47 140439127582912 [Note] InnoDB: Number of pools: 1
170713 11:59:47 >> log scanned up to (1540272)

2017-07-13 11:59:47 0x7fba884fe8c0  InnoDB: Assertion failure in file /home/buildbot/buildbot/build/mariadb-10.2.7/storage/innobase/srv/srv0start.cc line 960
InnoDB: Failing assertion: undo_tablespace_ids[i] != 0
InnoDB: We intentionally generate a memory trap.
InnoDB: Submit a detailed bug report to http://bugs.mysql.com.
InnoDB: If you get repeated assertion failures or crashes, even
InnoDB: immediately after the mysqld startup, there may be
InnoDB: corruption in the InnoDB tablespace. Please refer to
InnoDB: http://dev.mysql.com/doc/refman/5.7/en/forcing-innodb-recovery.html
InnoDB: about forcing recovery.
170713 11:59:47 [ERROR] mysqld got signal 6 ;
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.
 
To report this bug, see https://mariadb.com/kb/en/reporting-bugs
 
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.
 
Server version: 10.2.7-MariaDB
key_buffer_size=0
read_buffer_size=131072
max_used_connections=0
max_threads=1
thread_count=0
It is possible that mysqld could use up to 
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 5383 K  bytes of memory
Hope that's ok; if not, decrease some variables in the equation.
 
Thread pointer: 0x0
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 = 0x0 thread_stack 0x49000
addr2line: 'mariabackup': No such file
mariabackup(my_print_stacktrace+0x2e)[0x55ef3e2f839e]
mariabackup(handle_fatal_signal+0x30d)[0x55ef3dda3edd]
/lib64/libpthread.so.0(+0x115b0)[0x7fba881835b0]
/lib64/libc.so.6(gsignal+0x9f)[0x7fba866058df]
/lib64/libc.so.6(abort+0x16a)[0x7fba866074da]
mariabackup(+0x42e7b8)[0x55ef3dada7b8]
mariabackup(+0xa6e56b)[0x55ef3e11a56b]
mariabackup(+0x44f728)[0x55ef3dafb728]
mariabackup(+0x4524c9)[0x55ef3dafe4c9]
mariabackup(main+0x11d)[0x55ef3dadc41d]
/lib64/libc.so.6(__libc_start_main+0xf1)[0x7fba865f0401]
mariabackup(+0x44988d)[0x55ef3daf588d]
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.
Aborted (core dumped)



 Comments   
Comment by Elena Stepanova [ 2017-07-13 ]

ATTN marko

Comment by Vladislav Vaintroub [ 2017-07-13 ]

mxu Could you please provide all relevant information that is sufficient to reproduce the problem?
e.g my.cnf

Comment by Michael Xu [ 2017-07-14 ]

my.cnf is list below, and I think the error is caused by undo_tablespaces

# this is only for the mysqld standalone daemon
[mysqld]
innodb_undo_directory                 = /var/lib/mysql                 # 
innodb_undo_tablespaces               = 12                             # 
innodb_undo_logs                      = 128                            # 
innodb_max_undo_log_size              = 1G                             # 
innodb_undo_log_truncate              = 1                              #
#
# * Galera-related settings
#
[galera]
# Mandatory settings
#wsrep_on=ON
#wsrep_provider=
#wsrep_cluster_address=
#binlog_format=row
#default_storage_engine=InnoDB
#innodb_autoinc_lock_mode=2
#
# Allow server to accept connections on all interfaces.
#
#bind-address=0.0.0.0
#
# Optional setting
#wsrep_slave_threads=1
#innodb_flush_log_at_trx_commit=0
 
# This group is only read by MariaDB servers, not by MySQL.
# If you use the same .cnf file for MySQL and MariaDB,
# you can put MariaDB-only options here
[mariadb]
 
# This group is only read by MariaDB-10.1 servers.
# If you use the same .cnf file for MariaDB of different versions,
# use this group for options that older servers don't understand
[mariadb-10.1]

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