[MDEV-10896] Failing assertion: it != chunk_map->end() - numerous tests fail in buildbot on Power Created: 2016-09-26  Updated: 2016-11-02  Resolved: 2016-11-02

Status: Closed
Project: MariaDB Server
Component/s: Platform Power, Storage Engine - InnoDB, Tests
Affects Version/s: 10.2
Fix Version/s: 10.2.3

Type: Bug Priority: Major
Reporter: Elena Stepanova Assignee: Sergey Vojtovich
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Blocks
blocks MDEV-7069 Fix buildbot failures in main server ... Stalled
Sprint: 10.0.28, 10.2.4-1

 Description   

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

rpl.rpl_checksum_cache 'mix,xtradb'      w4 [ fail ]
        Test ended at 2016-09-25 07:05:57
 
CURRENT_TEST: rpl.rpl_checksum_cache
mysqltest: At line 220: query 'call test.p1($1)' failed: 2013: Lost connection to MySQL server during query
 
The result from queries just before the failure was:
< snip >
select round(RAND() * 32) into @act_size;
set @data = repeat('a', @act_size);
insert into t1 values(n, @data);
when 2 then
begin
select round(8192 + RAND() * 4096) into @act_size;
insert into t2 set data=repeat('a', @act_size);
end;
when 3 then
begin
select round(3686.4000 + RAND() * 819.2000) into @act_size;
insert into t3 set data= repeat('a', @act_size);
end;
end case;
set n= n-1;
end while;
end|
set autocommit= 0;
begin;
call test.p1(1000);

2016-09-25 07:05:56 0xfff7fb97d60  InnoDB: Assertion failure in thread 17590033939808 in file buf0buf.cc line 3947
InnoDB: Failing assertion: it != chunk_map->end()
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.
160925  7:05:56 [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.2-MariaDB-debug-log
key_buffer_size=1048576
read_buffer_size=131072
max_used_connections=6
max_threads=153
thread_count=9
It is possible that mysqld could use up to 
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 63055 K  bytes of memory
Hope that's ok; if not, decrease some variables in the equation.
 
Thread pointer: 0x0xfff85a24070
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 = 0xfff7fb971c0 thread_stack 0x48c00
/home/buildbot/maria-slave/p8-rhel6-bintar-debug/build/sql/mysqld(my_print_stacktrace-0xa77b68)[0x34ce01e8]
/home/buildbot/maria-slave/p8-rhel6-bintar-debug/build/sql/mysqld(handle_fatal_signal-0x13de2f0)[0x342bdfa8]
linux-vdso64.so.1(__kernel_sigtramp_rt64+0x0)[0xfffab050448]
/opt/at7.0/lib64/power7/libc.so.6(gsignal-0x174cd8)[0xfffaa76f2f0]
/opt/at7.0/lib64/power7/libc.so.6(abort-0x173084)[0xfffaa7713c4]
/home/buildbot/maria-slave/p8-rhel6-bintar-debug/build/sql/mysqld(+0x108d3b4)[0x3486d3b4]
/home/buildbot/maria-slave/p8-rhel6-bintar-debug/build/sql/mysqld(+0x1121038)[0x34901038]
/home/buildbot/maria-slave/p8-rhel6-bintar-debug/build/sql/mysqld(+0x1101fdc)[0x348e1fdc]
/home/buildbot/maria-slave/p8-rhel6-bintar-debug/build/sql/mysqld(+0x10d71fc)[0x348b71fc]
/home/buildbot/maria-slave/p8-rhel6-bintar-debug/build/sql/mysqld(+0xf2d030)[0x3470d030]
/home/buildbot/maria-slave/p8-rhel6-bintar-debug/build/sql/mysqld(+0xf330d4)[0x347130d4]
/home/buildbot/maria-slave/p8-rhel6-bintar-debug/build/sql/mysqld(+0xf35bec)[0x34715bec]
/home/buildbot/maria-slave/p8-rhel6-bintar-debug/build/sql/mysqld(+0xf36228)[0x34716228]
/home/buildbot/maria-slave/p8-rhel6-bintar-debug/build/sql/mysqld(+0xf36964)[0x34716964]
/home/buildbot/maria-slave/p8-rhel6-bintar-debug/build/sql/mysqld(+0xf36e44)[0x34716e44]
/home/buildbot/maria-slave/p8-rhel6-bintar-debug/build/sql/mysqld(+0xf37610)[0x34717610]
/home/buildbot/maria-slave/p8-rhel6-bintar-debug/build/sql/mysqld(+0xf62238)[0x34742238]
/home/buildbot/maria-slave/p8-rhel6-bintar-debug/build/sql/mysqld(+0xf62888)[0x34742888]
/home/buildbot/maria-slave/p8-rhel6-bintar-debug/build/sql/mysqld(+0xda449c)[0x3458449c]
/home/buildbot/maria-slave/p8-rhel6-bintar-debug/build/sql/mysqld(_ZN7handler12ha_write_rowEPh-0x13cb550)[0x342d2bc0]
/home/buildbot/maria-slave/p8-rhel6-bintar-debug/build/sql/mysqld(_Z12write_recordP3THDP5TABLEP12st_copy_info-0x16f9934)[0x33f704a4]
/home/buildbot/maria-slave/p8-rhel6-bintar-debug/build/sql/mysqld(_Z12mysql_insertP3THDP10TABLE_LISTR4ListI4ItemERS3_IS5_ES6_S6_15enum_duplicatesb-0x16fc2f8)[0x33f6da50]
/home/buildbot/maria-slave/p8-rhel6-bintar-debug/build/sql/mysqld(_Z21mysql_execute_commandP3THD-0x16cdd48)[0x33f9f558]
/home/buildbot/maria-slave/p8-rhel6-bintar-debug/build/sql/mysqld(_ZN13sp_instr_stmt9exec_coreEP3THDPj-0x11f5170)[0x344d7e78]
/home/buildbot/maria-slave/p8-rhel6-bintar-debug/build/sql/mysqld(_ZN13sp_lex_keeper23reset_lex_and_exec_coreEP3THDPjbP8sp_instr-0x11f5d8c)[0x344d71cc]
/home/buildbot/maria-slave/p8-rhel6-bintar-debug/build/sql/mysqld(_ZN13sp_instr_stmt7executeEP3THDPj-0x11f559c)[0x344d7a1c]
/home/buildbot/maria-slave/p8-rhel6-bintar-debug/build/sql/mysqld(_ZN7sp_head7executeEP3THDb-0x11fad70)[0x344d1f60]
/home/buildbot/maria-slave/p8-rhel6-bintar-debug/build/sql/mysqld(_ZN7sp_head17execute_procedureEP3THDP4ListI4ItemE-0x11f8cc4)[0x344d406c]
/home/buildbot/maria-slave/p8-rhel6-bintar-debug/build/sql/mysqld(+0x7bac6c)[0x33f9ac6c]
/home/buildbot/maria-slave/p8-rhel6-bintar-debug/build/sql/mysqld(_Z21mysql_execute_commandP3THD-0x16c8958)[0x33fa4948]
/home/buildbot/maria-slave/p8-rhel6-bintar-debug/build/sql/mysqld(_Z11mysql_parseP3THDPcjP12Parser_statebb-0x16c1bd0)[0x33fab8e0]
/home/buildbot/maria-slave/p8-rhel6-bintar-debug/build/sql/mysqld(_Z16dispatch_command19enum_server_commandP3THDPcjbb-0x16d5620)[0x33f97b78]
/home/buildbot/maria-slave/p8-rhel6-bintar-debug/build/sql/mysqld(_Z10do_commandP3THD-0x16d6da0)[0x33f963b0]
/home/buildbot/maria-slave/p8-rhel6-bintar-debug/build/sql/mysqld(_Z24do_handle_one_connectionP7CONNECT-0x154e398)[0x34130d88]
/home/buildbot/maria-slave/p8-rhel6-bintar-debug/build/sql/mysqld(handle_one_connection-0x154e6fc)[0x341309dc]
/home/buildbot/maria-slave/p8-rhel6-bintar-debug/build/sql/mysqld(+0x148b250)[0x34c6b250]
/opt/at7.0/lib64/power7/libpthread.so.0(+0xc548)[0xfffab01c548]
/opt/at7.0/lib64/power7/libc.so.6(clone-0xa4184)[0xfffaa848454]
 
Trying to get some variables.
Some pointers may be invalid and cause the dump to abort.
Query (0xfff7f255088): insert into t3 set data= repeat('a', @act_size)
Connection ID (thread ID): 49
Status: NOT_KILLED

Failing tests:
rpl.rpl_checksum_cache
encryption.innodb_encryption_tables
encryption.innodb_onlinealter_encryption
innodb.innochecksum
funcs_2.innodb_charset-xtradb
main.stat_tables_par_innodb
rpl.rpl_temporary_error2
encryption.innodb-page_encryption_compression
funcs_2.innodb_charset



 Comments   
Comment by Jan Lindström (Inactive) [ 2016-09-26 ]

Assigning to svoj as this most likely is mutex/rw-lock implementation problem.

Comment by Sergey Vojtovich [ 2016-10-13 ]

jplindst, please review fix for this bug: https://github.com/MariaDB/server/commit/1750d541712861c7bfbbc874dd559088832221c9

I didn't look into this patch myself, but there're no assertion failures like this anymore.

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