[MDEV-8046] Server crashes in pfs_mutex_enter_func on select from I_S.INNODB_TABLESPACES_ENCRYPTION if InnoDB is disabled Created: 2015-04-24  Updated: 2015-05-15  Resolved: 2015-05-06

Status: Closed
Project: MariaDB Server
Component/s: Encryption, Storage Engine - InnoDB, Storage Engine - XtraDB
Affects Version/s: 10.1.4
Fix Version/s: 10.1.5

Type: Bug Priority: Major
Reporter: Elena Stepanova Assignee: Jan Lindström (Inactive)
Resolution: Fixed Votes: 0
Labels: verified


 Description   
  • start server with --skip-innodb --default-storage-engine=MyISAM
  • run select * from information_schema.innodb_tablespaces_encryption;

#3  <signal handler called>
#4  0x00007f6fa5ef052d in pfs_mutex_enter_func (mutex=0x0, file_name=0x7f6fa656cf58 "10.1/storage/xtradb/handler/i_s.cc", line=8550, priority=IB_DEFAULT_PRIO) at 10.1/storage/xtradb/include/sync0sync.ic:399
#5  0x00007f6fa5effd9e in i_s_tablespaces_encryption_fill_table (thd=0x7f6f90d69070, tables=0x7f6f8ec71308) at 10.1/storage/xtradb/handler/i_s.cc:8550
#6  0x00007f6fa5b7e017 in get_schema_tables_result (join=0x7f6f8ec72388, executed_place=PROCESSED_BY_JOIN_EXEC) at 10.1/sql/sql_show.cc:7939
#7  0x00007f6fa5b20c77 in JOIN::exec_inner (this=0x7f6f8ec72388) at 10.1/sql/sql_select.cc:2547
#8  0x00007f6fa5b20305 in JOIN::exec (this=0x7f6f8ec72388) at 10.1/sql/sql_select.cc:2397
#9  0x00007f6fa5b238fc in mysql_select (thd=0x7f6f90d69070, rref_pointer_array=0x7f6f90d6d758, tables=0x7f6f8ec71308, wild_num=1, fields=..., conds=0x0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2684619520, result=0x7f6f8ec72368, unit=0x7f6f90d6cdf0, select_lex=0x7f6f90d6d4e0) at 10.1/sql/sql_select.cc:3326
#10 0x00007f6fa5b19979 in handle_select (thd=0x7f6f90d69070, lex=0x7f6f90d6cd28, result=0x7f6f8ec72368, setup_tables_done_option=0) at 10.1/sql/sql_select.cc:373
#11 0x00007f6fa5aeaa12 in execute_sqlcom_select (thd=0x7f6f90d69070, all_tables=0x7f6f8ec71308) at 10.1/sql/sql_parse.cc:5782
#12 0x00007f6fa5ae0db9 in mysql_execute_command (thd=0x7f6f90d69070) at 10.1/sql/sql_parse.cc:2926
#13 0x00007f6fa5aee02e in mysql_parse (thd=0x7f6f90d69070, rawbuf=0x7f6f8ec71088 "select * from information_schema.innodb_tablespaces_encryption", length=62, parser_state=0x7f6fa5595200) at 10.1/sql/sql_parse.cc:7165
#14 0x00007f6fa5add03e in dispatch_command (command=COM_QUERY, thd=0x7f6f90d69070, packet=0x7f6fa28b0071 "select * from information_schema.innodb_tablespaces_encryption", packet_length=62) at 10.1/sql/sql_parse.cc:1462
#15 0x00007f6fa5adbe0e in do_command (thd=0x7f6f90d69070) at 10.1/sql/sql_parse.cc:1090
#16 0x00007f6fa5c0d0a7 in do_handle_one_connection (thd_arg=0x7f6f90d69070) at 10.1/sql/sql_connect.cc:1347
#17 0x00007f6fa5c0cdec in handle_one_connection (arg=0x7f6f90d69070) at 10.1/sql/sql_connect.cc:1258
#18 0x00007f6fa51cfb50 in start_thread (arg=<optimized out>) at pthread_create.c:304
#19 0x00007f6fa326495d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112



 Comments   
Comment by Jan Lindström (Inactive) [ 2015-05-06 ]

commit bad81f23f68b2193ad4f443fb0e20b56c7c86f68
Author: Jan Lindström <jan.lindstrom@mariadb.com>
Date: Wed May 6 15:16:28 2015 +0300

MDEV-8046: Server crashes in pfs_mutex_enter_func on select from I_S.INNODB_TABLESPACES_ENCRYPTION if InnoDB is disabled

Problem was that information schema tables innodb_tablespaces_encryption and
innodb_tablespaces_scrubbing where missing required check is InnoDB enabled
or not.

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