Logging: ./mtr  --force main.bootstrap main.concurrent_insert_func
MySQL Version 6.0.9
Checking supported features...
 - using ndbcluster when necessary, mysqld supports it
 - SSL connections supported
 - binaries are debug compiled
Collecting tests...
vardir: /home/acorreia/tmp/merge/mysql-6.0-rpl/mysql-test/var
Checking leftover processes...
 - found old pid 13854 in 'mysqld.1.pid', killing it...
   process did not exist!
Removing old var directory...
Creating var directory '/home/acorreia/tmp/merge/mysql-6.0-rpl/mysql-test/var'...
Installing system database...
Using server port 52842

============================================================

TEST                                      RESULT   TIME (ms)
------------------------------------------------------------

worker[1] Using MTR_BUILD_THREAD 250, with reserved ports 12500..12509
main.bootstrap                           [ fail ]
        Test ended at 2008-12-06 00:04:19

CURRENT_TEST: main.bootstrap
mysqltest: At line 20: command "$MYSQLD_BOOTSTRAP_CMD < $MYSQLTEST_VARDIR/tmp/bootstrap_test.sql >> $MYSQLTEST_VARDIR/tmp/bootstrap.log 2>&1" failed

The result from queries just before the failure was:
drop table if exists t1;

 - saving '/home/acorreia/tmp/merge/mysql-6.0-rpl/mysql-test/var/log/main.bootstrap/' to '/home/acorreia/tmp/merge/mysql-6.0-rpl/mysql-test/var/log/main.bootstrap/'
 - found 'core.14516' (0/5)

Trying 'gdb' to get a backtrace
Core generated by '/home/acorreia/tmp/merge/mysql-6.0-rpl/sql/mysqld'
Output from gdb follows. The first stack trace is from the failing thread.
The following stack traces are from all threads (so the failing one is
duplicated).

warning: Can't read pathname for load map: Input/output error.
Core was generated by `/home/acorreia/tmp/merge/mysql-6.0-rpl/sql/mysqld --no-defaults --bootstrap --b'.
Program terminated with signal 11, Segmentation fault.
[New process 14545]
[New process 14544]
[New process 14516]
#0  0xb80cb430 in __kernel_vsyscall ()
#0  0xb80cb430 in __kernel_vsyscall ()
#1  0xb806b158 in pthread_kill () from /lib/tls/i686/cmov/libpthread.so.0
#2  0x089a03d1 in my_write_core (sig=11) at stacktrace.c:307
#3  0x08334750 in handle_segfault (sig=11) at mysqld.cc:2670
#4  <signal handler called>
#5  0x08534df9 in intern_plugin_lock (lex=0xab2a434, rc=0x8d52d20, sFile=0x8b154dc "handler.cc", uLine=169) at sql_plugin.cc:621
#6  0x08535379 in plugin_lock (thd=0xab291b0, ptr=0xb6d26fe4, sFile=0x8b154dc "handler.cc", uLine=169) at sql_plugin.cc:659
#7  0x084798d1 in ha_lock_engine (thd=0xab291b0, hton=0xab21b70) at handler.cc:169
#8  0x08479f1d in ha_resolve_by_legacy_type (thd=0xab291b0, db_type=DB_TYPE_MYISAM) at handler.cc:192
#9  0x08479f75 in ha_checktype (thd=0xab291b0, database_type=DB_TYPE_MYISAM, no_substitute=false, report_error=true) at handler.cc:208
#10 0x0848efcd in check_engine (thd=0xab291b0, table_name=0xab3a9a0 "t1", create_info=0xb6d27628) at sql_table.cc:7690
#11 0x0849a201 in mysql_create_table_no_lock (thd=0xab291b0, db=0xab3abc8 "test", table_name=0xab3a9a0 "t1", create_info=0xb6d27628, alter_info=0xb6d27910, 
    internal_tmp_table=false, select_field_count=0) at sql_table.cc:3320
#12 0x0849b831 in mysql_create_table (thd=0xab291b0, db=0xab3abc8 "test", table_name=0xab3a9a0 "t1", create_info=0xb6d27628, alter_info=0xb6d27910, 
    internal_tmp_table=false, select_field_count=0) at sql_table.cc:3793
#13 0x083487f5 in mysql_execute_command (thd=0xab291b0) at sql_parse.cc:2607
#14 0x0835013b in mysql_parse (thd=0xab291b0, inBuf=0xab3a928 "CREATE TABLE t1(a int)", length=22, found_semicolon=0xb6d27fa0) at sql_parse.cc:5744
#15 0x083527a6 in handle_bootstrap (arg=0xab291b0) at sql_parse.cc:491
#16 0xb806650f in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#17 0xb7e5e7ee in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 3 (process 14516):
#0  0xb7e5e7d8 in clone () from /lib/tls/i686/cmov/libc.so.6
#1  0x00000000 in ?? ()

Thread 2 (process 14544):
#0  0xb80cb430 in __kernel_vsyscall ()
#1  0xb806e310 in sigwait () from /lib/tls/i686/cmov/libpthread.so.0
#2  0x083336fd in signal_hand (arg=0x0) at mysqld.cc:2873
#3  0xb806650f in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#4  0xb7e5e7ee in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 1 (process 14545):
#0  0xb80cb430 in __kernel_vsyscall ()
#1  0xb806b158 in pthread_kill () from /lib/tls/i686/cmov/libpthread.so.0
#2  0x089a03d1 in my_write_core (sig=11) at stacktrace.c:307
#3  0x08334750 in handle_segfault (sig=11) at mysqld.cc:2670
#4  <signal handler called>
#5  0x08534df9 in intern_plugin_lock (lex=0xab2a434, rc=0x8d52d20, sFile=0x8b154dc "handler.cc", uLine=169) at sql_plugin.cc:621
#6  0x08535379 in plugin_lock (thd=0xab291b0, ptr=0xb6d26fe4, sFile=0x8b154dc "handler.cc", uLine=169) at sql_plugin.cc:659
#7  0x084798d1 in ha_lock_engine (thd=0xab291b0, hton=0xab21b70) at handler.cc:169
#8  0x08479f1d in ha_resolve_by_legacy_type (thd=0xab291b0, db_type=DB_TYPE_MYISAM) at handler.cc:192
#9  0x08479f75 in ha_checktype (thd=0xab291b0, database_type=DB_TYPE_MYISAM, no_substitute=false, report_error=true) at handler.cc:208
#10 0x0848efcd in check_engine (thd=0xab291b0, table_name=0xab3a9a0 "t1", create_info=0xb6d27628) at sql_table.cc:7690
#11 0x0849a201 in mysql_create_table_no_lock (thd=0xab291b0, db=0xab3abc8 "test", table_name=0xab3a9a0 "t1", create_info=0xb6d27628, alter_info=0xb6d27910, 
    internal_tmp_table=false, select_field_count=0) at sql_table.cc:3320
#12 0x0849b831 in mysql_create_table (thd=0xab291b0, db=0xab3abc8 "test", table_name=0xab3a9a0 "t1", create_info=0xb6d27628, alter_info=0xb6d27910, 
    internal_tmp_table=false, select_field_count=0) at sql_table.cc:3793
#13 0x083487f5 in mysql_execute_command (thd=0xab291b0) at sql_parse.cc:2607
#14 0x0835013b in mysql_parse (thd=0xab291b0, inBuf=0xab3a928 "CREATE TABLE t1(a int)", length=22, found_semicolon=0xb6d27fa0) at sql_parse.cc:5744
#15 0x083527a6 in handle_bootstrap (arg=0xab291b0) at sql_parse.cc:491
#16 0xb806650f in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#17 0xb7e5e7ee in clone () from /lib/tls/i686/cmov/libc.so.6


Retrying test, attempt(2/3)...

main.bootstrap                           [ fail ]
        Test ended at 2008-12-06 00:04:53

CURRENT_TEST: main.bootstrap
mysqltest: At line 20: command "$MYSQLD_BOOTSTRAP_CMD < $MYSQLTEST_VARDIR/tmp/bootstrap_test.sql >> $MYSQLTEST_VARDIR/tmp/bootstrap.log 2>&1" failed

The result from queries just before the failure was:
drop table if exists t1;

 - saving '/home/acorreia/tmp/merge/mysql-6.0-rpl/mysql-test/var/log/main.bootstrap/' to '/home/acorreia/tmp/merge/mysql-6.0-rpl/mysql-test/var/log/main.bootstrap/'
 - found 'core.14516' (1/5)

Trying 'gdb' to get a backtrace
Core generated by '/home/acorreia/tmp/merge/mysql-6.0-rpl/sql/mysqld'
Output from gdb follows. The first stack trace is from the failing thread.
The following stack traces are from all threads (so the failing one is
duplicated).

warning: Can't read pathname for load map: Input/output error.
Core was generated by `/home/acorreia/tmp/merge/mysql-6.0-rpl/sql/mysqld --no-defaults --bootstrap --b'.
Program terminated with signal 11, Segmentation fault.
[New process 14545]
[New process 14544]
[New process 14516]
#0  0xb80cb430 in __kernel_vsyscall ()
#0  0xb80cb430 in __kernel_vsyscall ()
#1  0xb806b158 in pthread_kill () from /lib/tls/i686/cmov/libpthread.so.0
#2  0x089a03d1 in my_write_core (sig=11) at stacktrace.c:307
#3  0x08334750 in handle_segfault (sig=11) at mysqld.cc:2670
#4  <signal handler called>
#5  0x08534df9 in intern_plugin_lock (lex=0xab2a434, rc=0x8d52d20, sFile=0x8b154dc "handler.cc", uLine=169) at sql_plugin.cc:621
#6  0x08535379 in plugin_lock (thd=0xab291b0, ptr=0xb6d26fe4, sFile=0x8b154dc "handler.cc", uLine=169) at sql_plugin.cc:659
#7  0x084798d1 in ha_lock_engine (thd=0xab291b0, hton=0xab21b70) at handler.cc:169
#8  0x08479f1d in ha_resolve_by_legacy_type (thd=0xab291b0, db_type=DB_TYPE_MYISAM) at handler.cc:192
#9  0x08479f75 in ha_checktype (thd=0xab291b0, database_type=DB_TYPE_MYISAM, no_substitute=false, report_error=true) at handler.cc:208
#10 0x0848efcd in check_engine (thd=0xab291b0, table_name=0xab3a9a0 "t1", create_info=0xb6d27628) at sql_table.cc:7690
#11 0x0849a201 in mysql_create_table_no_lock (thd=0xab291b0, db=0xab3abc8 "test", table_name=0xab3a9a0 "t1", create_info=0xb6d27628, alter_info=0xb6d27910, 
    internal_tmp_table=false, select_field_count=0) at sql_table.cc:3320
#12 0x0849b831 in mysql_create_table (thd=0xab291b0, db=0xab3abc8 "test", table_name=0xab3a9a0 "t1", create_info=0xb6d27628, alter_info=0xb6d27910, 
    internal_tmp_table=false, select_field_count=0) at sql_table.cc:3793
#13 0x083487f5 in mysql_execute_command (thd=0xab291b0) at sql_parse.cc:2607
#14 0x0835013b in mysql_parse (thd=0xab291b0, inBuf=0xab3a928 "CREATE TABLE t1(a int)", length=22, found_semicolon=0xb6d27fa0) at sql_parse.cc:5744
#15 0x083527a6 in handle_bootstrap (arg=0xab291b0) at sql_parse.cc:491
#16 0xb806650f in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#17 0xb7e5e7ee in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 3 (process 14516):
#0  0xb7e5e7d8 in clone () from /lib/tls/i686/cmov/libc.so.6
#1  0x00000000 in ?? ()

Thread 2 (process 14544):
#0  0xb80cb430 in __kernel_vsyscall ()
#1  0xb806e310 in sigwait () from /lib/tls/i686/cmov/libpthread.so.0
#2  0x083336fd in signal_hand (arg=0x0) at mysqld.cc:2873
#3  0xb806650f in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#4  0xb7e5e7ee in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 1 (process 14545):
#0  0xb80cb430 in __kernel_vsyscall ()
#1  0xb806b158 in pthread_kill () from /lib/tls/i686/cmov/libpthread.so.0
#2  0x089a03d1 in my_write_core (sig=11) at stacktrace.c:307
#3  0x08334750 in handle_segfault (sig=11) at mysqld.cc:2670
#4  <signal handler called>
#5  0x08534df9 in intern_plugin_lock (lex=0xab2a434, rc=0x8d52d20, sFile=0x8b154dc "handler.cc", uLine=169) at sql_plugin.cc:621
#6  0x08535379 in plugin_lock (thd=0xab291b0, ptr=0xb6d26fe4, sFile=0x8b154dc "handler.cc", uLine=169) at sql_plugin.cc:659
#7  0x084798d1 in ha_lock_engine (thd=0xab291b0, hton=0xab21b70) at handler.cc:169
#8  0x08479f1d in ha_resolve_by_legacy_type (thd=0xab291b0, db_type=DB_TYPE_MYISAM) at handler.cc:192
#9  0x08479f75 in ha_checktype (thd=0xab291b0, database_type=DB_TYPE_MYISAM, no_substitute=false, report_error=true) at handler.cc:208
#10 0x0848efcd in check_engine (thd=0xab291b0, table_name=0xab3a9a0 "t1", create_info=0xb6d27628) at sql_table.cc:7690
#11 0x0849a201 in mysql_create_table_no_lock (thd=0xab291b0, db=0xab3abc8 "test", table_name=0xab3a9a0 "t1", create_info=0xb6d27628, alter_info=0xb6d27910, 
    internal_tmp_table=false, select_field_count=0) at sql_table.cc:3320
#12 0x0849b831 in mysql_create_table (thd=0xab291b0, db=0xab3abc8 "test", table_name=0xab3a9a0 "t1", create_info=0xb6d27628, alter_info=0xb6d27910, 
    internal_tmp_table=false, select_field_count=0) at sql_table.cc:3793
#13 0x083487f5 in mysql_execute_command (thd=0xab291b0) at sql_parse.cc:2607
#14 0x0835013b in mysql_parse (thd=0xab291b0, inBuf=0xab3a928 "CREATE TABLE t1(a int)", length=22, found_semicolon=0xb6d27fa0) at sql_parse.cc:5744
#15 0x083527a6 in handle_bootstrap (arg=0xab291b0) at sql_parse.cc:491
#16 0xb806650f in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#17 0xb7e5e7ee in clone () from /lib/tls/i686/cmov/libc.so.6


Test has failed 2 times, no more retries!

main.concurrent_insert_func              [ fail ]
        Test ended at 2008-12-06 00:04:55

CURRENT_TEST: main.concurrent_insert_func
--- /home/acorreia/tmp/merge/mysql-6.0-rpl/mysql-test/r/concurrent_insert_func.result	2008-12-06 00:35:28.000000000 +0300
+++ /home/acorreia/tmp/merge/mysql-6.0-rpl/mysql-test/r/concurrent_insert_func.reject	2008-12-06 03:04:55.000000000 +0300
@@ -62,7 +62,6 @@
 Record_7
 Record_3
 Record_4
-Record_6
 connection default;
 '#--------------------FN_DYNVARS_018_03-------------------------#'
 ## lock table and connect with connection1 ##

mysqltest: Result content mismatch

 - saving '/home/acorreia/tmp/merge/mysql-6.0-rpl/mysql-test/var/log/main.concurrent_insert_func/' to '/home/acorreia/tmp/merge/mysql-6.0-rpl/mysql-test/var/log/main.concurrent_insert_func/'

Retrying test, attempt(2/3)...

main.concurrent_insert_func              [ pass ]    144

Retrying test, attempt(3/3)...

main.concurrent_insert_func              [ pass ]     35
------------------------------------------------------------
The servers were restarted 2 times
Spent 0.179 of 73 seconds executing testcases

Failed 2/2 tests, 0.00% were successful.

Failing test(s): main.bootstrap main.concurrent_insert_func

The log files in var/log may give you some hint of what went wrong.

If you want to report this error, please read first the documentation
at http://dev.mysql.com/doc/mysql/en/mysql-test-suite.html

mysql-test-run: *** ERROR: there were failing test cases
