[MDEV-13737] encryption.innodb_encryption_discard_import failed in bb, assertion `flags & BUF_PAGE_PRINT_NO_CRASH' in buf_page_print Created: 2017-09-05  Updated: 2018-04-11  Resolved: 2018-04-11

Status: Closed
Project: MariaDB Server
Component/s: Tests
Affects Version/s: 10.2.2, 10.3
Fix Version/s: N/A

Type: Bug Priority: Major
Reporter: Alice Sherepa Assignee: Jan Lindström (Inactive)
Resolution: Fixed Votes: 0
Labels: None

Attachments: HTML File log    

 Description   

http://buildbot.askmonty.org/buildbot/builders/p8-rhel6-bintar-debug/builds/1224/steps/test/logs/stdio

CURRENT_TEST: encryption.innodb_encryption_discard_import
mysqltest: At line 99: query 'ALTER TABLE t1 ENGINE InnoDB' failed: 2013: Lost connection to MySQL server during query
 
The result from queries just before the failure was:
< snip >
ALTER TABLE t1 IMPORT TABLESPACE;
SELECT COUNT(1) FROM t1;
COUNT(1)
10000
ALTER TABLE t2 IMPORT TABLESPACE;
SELECT COUNT(1) FROM t2;
COUNT(1)
10000
ALTER TABLE t3 IMPORT TABLESPACE;
SELECT COUNT(1) FROM t3;
COUNT(1)
10000
# tablespaces should remain encrypted after import
# t1 yes on expecting NOT FOUND
NOT FOUND /foobar/ in t1.ibd
# t2 ... on expecting NOT FOUND
NOT FOUND /temp/ in t2.ibd
# t3 ... on expecting NOT FOUND
NOT FOUND /barfoo/ in t3.ibd
ALTER TABLE t1 ENGINE InnoDB;
 
More results from queries before failure can be found in /home/buildbot/maria-slave/p8-rhel6-bintar-debug/build/mysql-test/var/4/log/innodb_encryption_discard_import.log

Core was generated by `/home/buildbot/maria-slave/p8-rhel6-bintar-debug/build/sql/mysqld --defaults-gr'.
Program terminated with signal 6, Aborted.
#0  0x00000fff7d423a40 in .pthread_kill () from /opt/at7.0/lib64/power7/libpthread.so.0
#0  0x00000fff7d423a40 in .pthread_kill () from /opt/at7.0/lib64/power7/libpthread.so.0
#1  0x0000000037bcd050 in .my_write_core ()
#2  0x000000003713c314 in .handle_fatal_signal () at /home/buildbot/maria-slave/p8-rhel6-bintar-debug/build/sql/signal_handler.cc:303
#3  <signal handler called>
#4  0x00000fff7cbaf2f0 in .raise () from /opt/at7.0/lib64/power7/libc.so.6
#5  0x00000fff7cbb12f4 in .abort () from /opt/at7.0/lib64/power7/libc.so.6
#6  0x00000fff7cba5f3c in .__assert_fail_base () from /opt/at7.0/lib64/power7/libc.so.6
#7  0x00000fff7cba602c in .__assert_fail () from /opt/at7.0/lib64/power7/libc.so.6
#8  0x00000000377c6ca0 in ._Z14buf_page_printPKhRK11page_size_tm () at /home/buildbot/maria-slave/p8-rhel6-bintar-debug/build/storage/innobase/buf/buf0buf.cc:1355
#9  0x00000000378a8a68 in ._Z17fil_space_encryptPK11fil_space_tmmPhS2_ () at /home/buildbot/maria-slave/p8-rhel6-bintar-debug/build/storage/innobase/fil/fil0crypt.cc:705
#10 0x00000000377dd6c0 in ._Z29buf_page_encrypt_before_writeP11fil_space_tP10buf_page_tPh () at /home/buildbot/maria-slave/p8-rhel6-bintar-debug/build/storage/innobase/buf/buf0buf.cc:7358
#11 0x00000000377f2d00 in ._ZL25buf_flush_write_block_lowP10buf_page_t11buf_flush_tb () at /home/buildbot/maria-slave/p8-rhel6-bintar-debug/build/storage/innobase/buf/buf0flu.cc:1095
#12 0x00000000377f3838 in ._Z14buf_flush_pageP10buf_pool_tP10buf_page_t11buf_flush_tb () at /home/buildbot/maria-slave/p8-rhel6-bintar-debug/build/storage/innobase/buf/buf0flu.cc:1268
#13 0x00000000377f4428 in ._ZL23buf_flush_try_neighborsRK9page_id_t11buf_flush_tmm () at /home/buildbot/maria-slave/p8-rhel6-bintar-debug/build/storage/innobase/buf/buf0flu.cc:1492
#14 0x00000000377f4884 in ._ZL32buf_flush_page_and_try_neighborsP10buf_page_t11buf_flush_tmPm () at /home/buildbot/maria-slave/p8-rhel6-bintar-debug/build/storage/innobase/buf/buf0flu.cc:1564
#15 0x00000000377f4f30 in ._Z24buf_flush_LRU_list_batchP10buf_pool_tmP16flush_counters_t () at /home/buildbot/maria-slave/p8-rhel6-bintar-debug/build/storage/innobase/buf/buf0flu.cc:1700
#16 0x00000000377f5474 in ._ZL16buf_do_LRU_batchP10buf_pool_tmP16flush_counters_t () at /home/buildbot/maria-slave/p8-rhel6-bintar-debug/build/storage/innobase/buf/buf0flu.cc:1762
#17 0x00000000377f5d3c in ._Z15buf_flush_batchP10buf_pool_t11buf_flush_tmmP16flush_counters_t () at /home/buildbot/maria-slave/p8-rhel6-bintar-debug/build/storage/innobase/buf/buf0flu.cc:1890
#18 0x00000000377f67b0 in ._Z18buf_flush_do_batchP10buf_pool_t11buf_flush_tmmP16flush_counters_t () at /home/buildbot/maria-slave/p8-rhel6-bintar-debug/build/storage/innobase/buf/buf0flu.cc:2063
#19 0x00000000377f738c in ._ZL18buf_flush_LRU_listP10buf_pool_t () at /home/buildbot/maria-slave/p8-rhel6-bintar-debug/build/storage/innobase/buf/buf0flu.cc:2326
#20 0x00000000377f9abc in ._ZL13pc_flush_slotv () at /home/buildbot/maria-slave/p8-rhel6-bintar-debug/build/storage/innobase/buf/buf0flu.cc:2874
#21 0x00000000377fb068 in .buf_flush_page_cleaner_coordinator () at /home/buildbot/maria-slave/p8-rhel6-bintar-debug/build/storage/innobase/buf/buf0flu.cc:3312
#22 0x00000fff7d41c548 in .start_thread () from /opt/at7.0/lib64/power7/libpthread.so.0
#23 0x00000fff7cc88454 in .__clone () at ../sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S:104



 Comments   
Comment by Alice Sherepa [ 2017-09-05 ]

     bool corrupted = buf_page_is_corrupted(true, tmp_mem, page_size, space);
        memcpy(tmp_mem+FIL_PAGE_FILE_FLUSH_LSN_OR_KEY_VERSION, src+FIL_PAGE_FILE_FLUSH_LSN_OR_KEY_VERSION, 8);
        bool different = memcmp(src, tmp_mem, page_size.physical());
 
        if (!ok || corrupted || corrupted1 || err != DB_SUCCESS || different) {

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