Bug #39452 Test falcon_bug_22165 fails intermittently (crash)
Submitted: 15 Sep 2008 11:38 Modified: 1 Oct 2008 9:56
Reporter: John Embretsen Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Server: Falcon storage engine Severity:S1 (Critical)
Version:6.0-falcon-team OS:Any
Assigned to: CPU Architecture:Any
Tags: F_PAGE IO, pushbuild, sporadic, test failure

[15 Sep 2008 11:38] John Embretsen
Description:
The test falcon_bug_22165 in the falcon test suite fails every now and then, though not very often.

--- --- signature start --- ---
falcon.falcon_bug_22165        [ fail ]

mysqltest: At line 65: query 'reap' failed: 2013: Lost connection to MySQL server during query

The result from queries just before the failure was:
< snip >
CREATE PROCEDURE p1 ()
begin
declare v int default 0;
declare continue handler for sqlexception
begin
declare continue handler for sqlexception begin end;
ALTER TABLE t1 MODIFY COLUMN c timestamp;
end;
SET TRANSACTION ISOLATION LEVEL READ COMMITTED;
while v < 10 do
START TRANSACTION;
INSERT INTO t1 (a, b) VALUES (v, 'a');
UPDATE t1 SET c = current_timestamp WHERE a = v;
IF (v < 5)  
THEN COMMIT;
ELSE ROLLBACK; 
END IF;
SET v = v + 1;
end while;
end//
--- --- signature end --- ---

This could be related to Bug#35255 - 'falcon_bug_22165.test fails with debug builds', although the failure signature is not the same as reported in that bug report.

Pushbuild (PB) failures matching the above signature include:

Push date (PB timezone)    Branch
-----------------------    -------------------------
2008-09-10 21:42:00        bzr_mysql-6.0-falcon-kevin
2008-08-14 04:31:00        bzr_mysql-6.0-falcon-chris
2008-08-13 10:39:00        bzr_mysql-6.0-falcon-team
2008-08-07 18:22:00        bzr_mysql-6.0-falcon-team

How to repeat:
Run the falcon suite repeatedly until the test fails:

perl mysql-test-run.pl --suite=falcon

Hopefully it should be enough to run that singe test only, repeatedly:

perl mysql-test-run.pl --suite=falcon falcon_bug_22165 falcon_bug_22165 ...
[15 Sep 2008 11:50] John Embretsen
The test fails due to an assertion in Section.cpp:

Server log (master.err) from Push into mysql-6.0-falcon-kevin on Wed Sep 10 21:42:28 2008:

CURRENT_TEST: falcon.falcon_bug_22165
[Falcon] Error: assertion (page->pageType == PAGE_sections || page->pageType == 0) failed at line 198 in file Section.cpp

080914  6:48:47 - 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.
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.

key_buffer_size=1048576
read_buffer_size=131072
max_used_connections=3
max_threads=151
thread_count=3
connection_count=3
It is possible that mysqld could use up to 
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 60622 K
bytes of memory
Hope that's ok; if not, decrease some variables in the equation.

Writing a core file
[1 Oct 2008 9:38] John Embretsen
Duplicate of Bug #35255	"falcon_bug_22165.test fails with debug builds"?
[1 Oct 2008 9:56] John Embretsen
Closing this bug as Duplicate of Bug #35255: falcon_bug_22165.test fails with debug builds