Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-17181

rocksdb.allow_to_start_after_corruption fails on current 10.2

    XMLWordPrintable

    Details

      Description

      10.2 build with

       cmake ./ -GNinja -DCMAKE_BUILD_TYPE=Debug  -DWITH_VALGRIND=NO -DWITH_ASAN:BOOL=OFF -DWITH_EMBEDDED_SERVER:BOOL=ON -DWITH_SSL=bundled && ninja 
      

      crashes with 100% repeatability

      --- /home/sanja/maria/git/server/storage/rocksdb/mysql-test/rocksdb/r/allow_to_start_after_corruption.result	2018-09-12 18:05:44.010442697 +0200
      +++ /home/sanja/maria/git/server/storage/rocksdb/mysql-test/rocksdb/r/allow_to_start_after_corruption.reject	2018-09-12 18:42:25.099464143 +0200
      @@ -21,9 +21,6 @@
       #
       select * from t1;
       pk	col1
      -1	1
      -2	2
      -3	3
       set session debug_dbug= "+d,rocksdb_return_status_corrupted";
       select * from t1;
       ERROR HY000: Lost connection to MySQL server during query
       
      mysqltest: Result length mismatch
       
       - found 'core' (0/5)
       
      Trying 'dbx' to get a backtrace
       
      Trying 'gdb' to get a backtrace from coredump /home/sanja/maria/git/server/mysql-test/var/log/rocksdb.allow_to_start_after_corruption-write_prepared/mysqld.1/data/core
      Core generated by '/home/sanja/maria/git/server/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).
      --------------------------
      [New LWP 7687]
      [New LWP 7680]
      [New LWP 7686]
      [New LWP 7683]
      [New LWP 7682]
      [New LWP 7674]
      [New LWP 7679]
      [New LWP 7678]
      [New LWP 7681]
      [New LWP 7677]
      [New LWP 7684]
      [New LWP 7685]
      [Thread debugging using libthread_db enabled]
      Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
      Core was generated by `/home/sanja/maria/git/server/sql/mysqld --defaults-group-suffix=.1 --defaults-f'.
      Program terminated with signal SIGABRT, Aborted.
      #0  __pthread_kill (threadid=<optimized out>, signo=6) at ../sysdeps/unix/sysv/linux/pthread_kill.c:57
      57	../sysdeps/unix/sysv/linux/pthread_kill.c: No such file or directory.
      [Current thread is 1 (Thread 0x7f15d42f4700 (LWP 7687))]
      #0  __pthread_kill (threadid=<optimized out>, signo=6) at ../sysdeps/unix/sysv/linux/pthread_kill.c:57
      #1  0x000055e068314c43 in my_write_core (sig=6) at mysys/stacktrace.c:477
      #2  0x000055e067bb209f in handle_fatal_signal (sig=6) at sql/signal_handler.cc:305
      #3  <signal handler called>
      #4  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
      #5  0x00007f15dad5e801 in __GI_abort () at abort.c:79
      #6  0x00007f15d5884bd8 in myrocks::rdb_handle_io_error (status=..., err_type=myrocks::RDB_IO_ERROR_GENERAL) at storage/rocksdb/ha_rocksdb.cc:13616
      #7  0x00007f15d5893960 in myrocks::Rdb_transaction::set_status_error (this=0x7f159813bb90, thd=0x7f1598000d60, s=..., kd=..., tbl_def=0x7f159814a940, table_handler=0x7f159813ea50) at storage/rocksdb/ha_rocksdb.cc:2229
      #8  0x00007f15d5874f39 in myrocks::ha_rocksdb::get_row_by_rowid (this=0x7f1598136888, buf=0x7f159814b6d8 "\377\001", rowid=0x7f159814a7c0 "", rowid_size=8, skip_lookup=false, skip_ttl_check=false) at storage/rocksdb/ha_rocksdb.cc:9016
      #9  0x00007f15d58901bd in myrocks::ha_rocksdb::get_row_by_rowid (this=0x7f1598136888, buf=0x7f159814b6d8 "\377\001", rowid=0x7f159814a7c0 "", rowid_size=8, skip_lookup=false, skip_ttl_check=false) at storage/rocksdb/./ha_rocksdb.h:696
      #10 0x00007f15d58731a4 in myrocks::ha_rocksdb::index_read_map_impl (this=0x7f1598136888, buf=0x7f159814b6d8 "\377\001", key=0x7f1598015080 "\001", keypart_map=1, find_flag=HA_READ_KEY_EXACT, end_key=0x0) at storage/rocksdb/ha_rocksdb.cc:8499
      #11 0x00007f15d5872fb3 in myrocks::ha_rocksdb::index_read_map (this=0x7f1598136888, buf=0x7f159814b6d8 "\377\001", key=0x7f1598015080 "\001", keypart_map=1, find_flag=HA_READ_KEY_EXACT) at storage/rocksdb/ha_rocksdb.cc:8449
      #12 0x000055e067bbfeb4 in handler::index_read_idx_map (this=0x7f1598136888, buf=0x7f159814b6d8 "\377\001", index=0, key=0x7f1598015080 "\001", keypart_map=1, find_flag=HA_READ_KEY_EXACT) at sql/handler.cc:5485
      #13 0x000055e067bb91b3 in handler::ha_index_read_idx_map (this=0x7f1598136888, buf=0x7f159814b6d8 "\377\001", index=0, key=0x7f1598015080 "\001", keypart_map=1, find_flag=HA_READ_KEY_EXACT) at sql/handler.cc:2656
      #14 0x000055e0679b0c48 in join_read_const (tab=0x7f1598013f50) at sql/sql_select.cc:19314
      #15 0x000055e0679b0754 in join_read_const_table (thd=0x7f1598000d60, tab=0x7f1598013f50, pos=0x7f1598014508) at sql/sql_select.cc:19194
      #16 0x000055e06798bab9 in make_join_statistics (join=0x7f1598013388, tables_list=..., keyuse_array=0x7f1598013678) at sql/sql_select.cc:4297
      #17 0x000055e067982592 in JOIN::optimize_inner (this=0x7f1598013388) at sql/sql_select.cc:1580
      #18 0x000055e067980acb in JOIN::optimize (this=0x7f1598013388) at sql/sql_select.cc:1115
      #19 0x000055e067989eb2 in mysql_select (thd=0x7f1598000d60, tables=0x7f1598012978, wild_num=1, fields=..., conds=0x7f1598013138, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2147748608, result=0x7f1598013368, unit=0x7f1598004940, select_lex=0x7f1598005078) at sql/sql_select.cc:3790
      #20 0x000055e06797e279 in handle_select (thd=0x7f1598000d60, lex=0x7f1598004878, result=0x7f1598013368, setup_tables_done_option=0) at sql/sql_select.cc:364
      #21 0x000055e067949b6d in execute_sqlcom_select (thd=0x7f1598000d60, all_tables=0x7f1598012978) at sql/sql_parse.cc:6477
      #22 0x000055e06793f8a5 in mysql_execute_command (thd=0x7f1598000d60) at sql/sql_parse.cc:3484
      #23 0x000055e06794d9bf in mysql_parse (thd=0x7f1598000d60, rawbuf=0x7f1598012788 "select * from t1 where pk=1", length=27, parser_state=0x7f15d42f31e0, is_com_multi=false, is_next_command=false) at sql/sql_parse.cc:8009
      #24 0x000055e06793b186 in dispatch_command (command=COM_QUERY, thd=0x7f1598000d60, packet=0x7f1598008b41 "select * from t1 where pk=1", packet_length=27, is_com_multi=false, is_next_command=false) at sql/sql_parse.cc:1823
      #25 0x000055e067939b24 in do_command (thd=0x7f1598000d60) at sql/sql_parse.cc:1377
      #26 0x000055e067a89f58 in do_handle_one_connection (connect=0x55e06b273400) at sql/sql_connect.cc:1335
      #27 0x000055e067a89cd8 in handle_one_connection (arg=0x55e06b273400) at sql/sql_connect.cc:1241
      #28 0x000055e0682bab81 in pfs_spawn_thread (arg=0x55e06b1c9d20) at storage/perfschema/pfs.cc:1862
      #29 0x00007f15dba5a6db in start_thread (arg=0x7f15d42f4700) at pthread_create.c:463
      #30 0x00007f15dae3f88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
       
      Thread 12 (Thread 0x7f15d438a700 (LWP 7685)):
      #0  0x00007f15dad5e26c in __GI___sigtimedwait (set=<optimized out>, set@entry=0x7f15d4389e10, info=info@entry=0x7f15d4389d20, timeout=timeout@entry=0x0) at ../sysdeps/unix/sysv/linux/sigtimedwait.c:42
      #1  0x00007f15dba6545c in __sigwait (set=0x7f15d4389e10, sig=0x7f15d4389de0) at ../sysdeps/unix/sysv/linux/sigwait.c:28
      #2  0x000055e06785ed86 in signal_hand (arg=0x0) at sql/mysqld.cc:3510
      #3  0x000055e0682bab81 in pfs_spawn_thread (arg=0x55e06b1bf880) at storage/perfschema/pfs.cc:1862
      #4  0x00007f15dba5a6db in start_thread (arg=0x7f15d438a700) at pthread_create.c:463
      #5  0x00007f15dae3f88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
       
      Thread 11 (Thread 0x7f15cd055700 (LWP 7684)):
      #0  0x00007f15dba60f85 in futex_abstimed_wait_cancelable (private=<optimized out>, abstime=0x7f15cd054de0, expected=0, futex_word=0x55e0696d42c8 <COND_checkpoint+40>) at ../sysdeps/unix/sysv/linux/futex-internal.h:205
      #1  __pthread_cond_wait_common (abstime=0x7f15cd054de0, mutex=0x55e0696d4208 <LOCK_checkpoint+40>, cond=0x55e0696d42a0 <COND_checkpoint>) at pthread_cond_wait.c:539
      #2  __pthread_cond_timedwait (cond=0x55e0696d42a0 <COND_checkpoint>, mutex=0x55e0696d4208 <LOCK_checkpoint+40>, abstime=0x7f15cd054de0) at pthread_cond_wait.c:667
      #3  0x000055e06831a643 in safe_cond_timedwait (cond=0x55e0696d42a0 <COND_checkpoint>, mp=0x55e0696d41e0 <LOCK_checkpoint>, abstime=0x7f15cd054de0, file=0x55e068605040 "include/mysql/psi/mysql_thread.h", line=1175) at mysys/thr_mutex.c:545
      #4  0x000055e068199dff in inline_mysql_cond_timedwait (that=0x55e0696d42a0 <COND_checkpoint>, mutex=0x55e0696d41e0 <LOCK_checkpoint>, abstime=0x7f15cd054de0, src_file=0x55e068605068 "storage/maria/ma_servicethread.c", src_line=116) at include/mysql/psi/mysql_thread.h:1175
      #5  0x000055e06819a301 in my_service_thread_sleep (control=0x55e068c91a00 <checkpoint_control>, sleep_time=29000000000) at storage/maria/ma_servicethread.c:115
      #6  0x000055e06818edf9 in ma_checkpoint_background (arg=0x1e) at storage/maria/ma_checkpoint.c:709
      #7  0x000055e0682bab81 in pfs_spawn_thread (arg=0x55e06b0e54c0) at storage/perfschema/pfs.cc:1862
      #8  0x00007f15dba5a6db in start_thread (arg=0x7f15cd055700) at pthread_create.c:463
      #9  0x00007f15dae3f88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
       
      Thread 10 (Thread 0x7f15d6c25700 (LWP 7677)):
      #0  0x00007f15dba60f85 in futex_abstimed_wait_cancelable (private=<optimized out>, abstime=0x7f15d6c24e90, expected=0, futex_word=0x55e0696e59c8 <COND_timer+40>) at ../sysdeps/unix/sysv/linux/futex-internal.h:205
      #1  __pthread_cond_wait_common (abstime=0x7f15d6c24e90, mutex=0x55e0696e5908 <LOCK_timer+40>, cond=0x55e0696e59a0 <COND_timer>) at pthread_cond_wait.c:539
      #2  __pthread_cond_timedwait (cond=0x55e0696e59a0 <COND_timer>, mutex=0x55e0696e5908 <LOCK_timer+40>, abstime=0x7f15d6c24e90) at pthread_cond_wait.c:667
      #3  0x000055e06831a643 in safe_cond_timedwait (cond=0x55e0696e59a0 <COND_timer>, mp=0x55e0696e58e0 <LOCK_timer>, abstime=0x7f15d6c24e90, file=0x55e068640090 "include/mysql/psi/mysql_thread.h", line=1175) at mysys/thr_mutex.c:545
      #4  0x000055e06831b5b8 in inline_mysql_cond_timedwait (that=0x55e0696e59a0 <COND_timer>, mutex=0x55e0696e58e0 <LOCK_timer>, abstime=0x7f15d6c24e90, src_file=0x55e0686400b1 "mysys/thr_timer.c", src_line=292) at include/mysql/psi/mysql_thread.h:1175
      #5  0x000055e06831c0c5 in timer_handler (arg=0x0) at mysys/thr_timer.c:292
      #6  0x000055e0682bab81 in pfs_spawn_thread (arg=0x55e06addef60) at storage/perfschema/pfs.cc:1862
      #7  0x00007f15dba5a6db in start_thread (arg=0x7f15d6c25700) at pthread_create.c:463
      #8  0x00007f15dae3f88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
       
      Thread 9 (Thread 0x7f15ceffd700 (LWP 7681)):
      #0  0x00007f15dba60f85 in futex_abstimed_wait_cancelable (private=<optimized out>, abstime=0x7f15ceffcde0, expected=0, futex_word=0x7f15d630ee10 <myrocks::rdb_bg_thread+272>) at ../sysdeps/unix/sysv/linux/futex-internal.h:205
      #1  __pthread_cond_wait_common (abstime=0x7f15ceffcde0, mutex=0x7f15d630ed60 <myrocks::rdb_bg_thread+96>, cond=0x7f15d630ede8 <myrocks::rdb_bg_thread+232>) at pthread_cond_wait.c:539
      #2  __pthread_cond_timedwait (cond=0x7f15d630ede8 <myrocks::rdb_bg_thread+232>, mutex=0x7f15d630ed60 <myrocks::rdb_bg_thread+96>, abstime=0x7f15ceffcde0) at pthread_cond_wait.c:667
      #3  0x000055e06831a643 in safe_cond_timedwait (cond=0x7f15d630ede8 <myrocks::rdb_bg_thread+232>, mp=0x7f15d630ed38 <myrocks::rdb_bg_thread+56>, abstime=0x7f15ceffcde0, file=0x7f15d5d87960 "include/mysql/psi/mysql_thread.h", line=1186) at mysys/thr_mutex.c:545
      #4  0x00007f15d5861067 in inline_mysql_cond_timedwait (that=0x7f15d630ede8 <myrocks::rdb_bg_thread+232>, mutex=0x7f15d630ed38 <myrocks::rdb_bg_thread+56>, abstime=0x7f15ceffcde0, src_file=0x7f15d5d88260 "storage/rocksdb/ha_rocksdb.cc", src_line=13207) at include/mysql/psi/mysql_thread.h:1186
      #5  0x00007f15d58837ed in myrocks::Rdb_background_thread::run (this=0x7f15d630ed00 <myrocks::rdb_bg_thread>) at storage/rocksdb/ha_rocksdb.cc:13207
      #6  0x00007f15d59263ca in myrocks::Rdb_thread::thread_func (thread_ptr=0x7f15d630ed00 <myrocks::rdb_bg_thread>) at storage/rocksdb/rdb_threads.cc:34
      #7  0x000055e0682bab81 in pfs_spawn_thread (arg=0x55e06b0dbb40) at storage/perfschema/pfs.cc:1862
      #8  0x00007f15dba5a6db in start_thread (arg=0x7f15ceffd700) at pthread_create.c:463
      #9  0x00007f15dae3f88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
       
      Thread 8 (Thread 0x7f15d4e4e700 (LWP 7678)):
      #0  0x00007f15dba609f3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55e06b06d6a8) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
      #1  __pthread_cond_wait_common (abstime=0x0, mutex=0x55e06b06d5a0, cond=0x55e06b06d680) at pthread_cond_wait.c:502
      #2  __pthread_cond_wait (cond=0x55e06b06d680, mutex=0x55e06b06d5a0) at pthread_cond_wait.c:655
      #3  0x00007f15d5c955f6 in rocksdb::port::CondVar::Wait (this=0x55e06b06d680) at storage/rocksdb/rocksdb/port/port_posix.cc:91
      #4  0x00007f15d5ae8020 in rocksdb::InstrumentedCondVar::WaitInternal (this=0x55e06b06d680) at storage/rocksdb/rocksdb/monitoring/instrumented_mutex.cc:48
      #5  0x00007f15d5ae7fcd in rocksdb::InstrumentedCondVar::Wait (this=0x55e06b06d680) at storage/rocksdb/rocksdb/monitoring/instrumented_mutex.cc:41
      #6  0x00007f15d5be1cff in rocksdb::DeleteScheduler::BackgroundEmptyTrash (this=0x55e06b06d588) at storage/rocksdb/rocksdb/util/delete_scheduler.cc:193
      #7  0x00007f15d5be5f80 in std::__invoke_impl<void, void (rocksdb::DeleteScheduler::*)(), rocksdb::DeleteScheduler*> (__f=@0x55e06b0170b0: (void (rocksdb::DeleteScheduler::*)(rocksdb::DeleteScheduler * const)) 0x7f15d5be1c18 <rocksdb::DeleteScheduler::BackgroundEmptyTrash()>, __t=@0x55e06b0170a8: 0x55e06b06d588) at /usr/include/c++/7/bits/invoke.h:73
      #8  0x00007f15d5be56d2 in std::__invoke<void (rocksdb::DeleteScheduler::*)(), rocksdb::DeleteScheduler*> (__fn=@0x55e06b0170b0: (void (rocksdb::DeleteScheduler::*)(rocksdb::DeleteScheduler * const)) 0x7f15d5be1c18 <rocksdb::DeleteScheduler::BackgroundEmptyTrash()>, __args#0=@0x55e06b0170a8: 0x55e06b06d588) at /usr/include/c++/7/bits/invoke.h:95
      #9  0x00007f15d5be902f in std::thread::_Invoker<std::tuple<void (rocksdb::DeleteScheduler::*)(), rocksdb::DeleteScheduler*> >::_M_invoke<0ul, 1ul> (this=0x55e06b0170a8) at /usr/include/c++/7/thread:234
      #10 0x00007f15d5be8fe5 in std::thread::_Invoker<std::tuple<void (rocksdb::DeleteScheduler::*)(), rocksdb::DeleteScheduler*> >::operator() (this=0x55e06b0170a8) at /usr/include/c++/7/thread:243
      #11 0x00007f15d5be8fc4 in std::thread::_State_impl<std::thread::_Invoker<std::tuple<void (rocksdb::DeleteScheduler::*)(), rocksdb::DeleteScheduler*> > >::_M_run (this=0x55e06b0170a0) at /usr/include/c++/7/thread:186
      #12 0x00007f15db783733 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
      #13 0x00007f15dba5a6db in start_thread (arg=0x7f15d4e4e700) at pthread_create.c:463
      #14 0x00007f15dae3f88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
       
      Thread 7 (Thread 0x7f15cffff700 (LWP 7679)):
      #0  0x00007f15dba609f3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55e06adf46b0) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
      #1  __pthread_cond_wait_common (abstime=0x0, mutex=0x55e06adf4660, cond=0x55e06adf4688) at pthread_cond_wait.c:502
      #2  __pthread_cond_wait (cond=0x55e06adf4688, mutex=0x55e06adf4660) at pthread_cond_wait.c:655
      #3  0x00007f15db77d620 in std::condition_variable::wait(std::unique_lock<std::mutex>&) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
      #4  0x00007f15d5d5cf4d in rocksdb::ThreadPoolImpl::Impl::BGThread (this=0x55e06adf45f0, thread_id=0) at storage/rocksdb/rocksdb/util/threadpool_imp.cc:196
      #5  0x00007f15d5d5d26e in rocksdb::ThreadPoolImpl::Impl::BGThreadWrapper (arg=0x55e06b092fa0) at storage/rocksdb/rocksdb/util/threadpool_imp.cc:303
      #6  0x00007f15d5d62d47 in std::__invoke_impl<void*, void* (*)(void*), rocksdb::BGThreadMetadata*> (__f=@0x55e06b094470: 0x7f15d5d5d17a <rocksdb::ThreadPoolImpl::Impl::BGThreadWrapper(void*)>, __args#0=@0x55e06b094468: 0x55e06b092fa0) at /usr/include/c++/7/bits/invoke.h:60
      #7  0x00007f15d5d622d8 in std::__invoke<void* (*)(void*), rocksdb::BGThreadMetadata*> (__fn=@0x55e06b094470: 0x7f15d5d5d17a <rocksdb::ThreadPoolImpl::Impl::BGThreadWrapper(void*)>, __args#0=@0x55e06b094468: 0x55e06b092fa0) at /usr/include/c++/7/bits/invoke.h:96
      #8  0x00007f15d5d65ceb in std::thread::_Invoker<std::tuple<void* (*)(void*), rocksdb::BGThreadMetadata*> >::_M_invoke<0ul, 1ul> (this=0x55e06b094468) at /usr/include/c++/7/thread:234
      #9  0x00007f15d5d65ca1 in std::thread::_Invoker<std::tuple<void* (*)(void*), rocksdb::BGThreadMetadata*> >::operator() (this=0x55e06b094468) at /usr/include/c++/7/thread:243
      #10 0x00007f15d5d65c80 in std::thread::_State_impl<std::thread::_Invoker<std::tuple<void* (*)(void*), rocksdb::BGThreadMetadata*> > >::_M_run (this=0x55e06b094460) at /usr/include/c++/7/thread:186
      #11 0x00007f15db783733 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
      #12 0x00007f15dba5a6db in start_thread (arg=0x7f15cffff700) at pthread_create.c:463
      #13 0x00007f15dae3f88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
       
      Thread 6 (Thread 0x7f15dd3ff740 (LWP 7674)):
      #0  0x00007f15dae32bf9 in __GI___poll (fds=0x7fff9beec190, nfds=2, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
      #1  0x000055e067864c4e in handle_connections_sockets () at sql/mysqld.cc:6609
      #2  0x000055e067863f2b in mysqld_main (argc=155, argv=0x55e06ac99440) at sql/mysqld.cc:6075
      #3  0x000055e06785842a in main (argc=24, argv=0x7fff9beec808) at sql/main.cc:25
       
      Thread 5 (Thread 0x7f15ce7fc700 (LWP 7682)):
      #0  0x00007f15dba60f85 in futex_abstimed_wait_cancelable (private=<optimized out>, abstime=0x7f15ce7fbd00, expected=0, futex_word=0x7f15d630f530 <myrocks::rdb_drop_idx_thread+272>) at ../sysdeps/unix/sysv/linux/futex-internal.h:205
      #1  __pthread_cond_wait_common (abstime=0x7f15ce7fbd00, mutex=0x7f15d630f480 <myrocks::rdb_drop_idx_thread+96>, cond=0x7f15d630f508 <myrocks::rdb_drop_idx_thread+232>) at pthread_cond_wait.c:539
      #2  __pthread_cond_timedwait (cond=0x7f15d630f508 <myrocks::rdb_drop_idx_thread+232>, mutex=0x7f15d630f480 <myrocks::rdb_drop_idx_thread+96>, abstime=0x7f15ce7fbd00) at pthread_cond_wait.c:667
      #3  0x000055e06831a643 in safe_cond_timedwait (cond=0x7f15d630f508 <myrocks::rdb_drop_idx_thread+232>, mp=0x7f15d630f458 <myrocks::rdb_drop_idx_thread+56>, abstime=0x7f15ce7fbd00, file=0x7f15d5d87960 "include/mysql/psi/mysql_thread.h", line=1186) at mysys/thr_mutex.c:545
      #4  0x00007f15d5861067 in inline_mysql_cond_timedwait (that=0x7f15d630f508 <myrocks::rdb_drop_idx_thread+232>, mutex=0x7f15d630f458 <myrocks::rdb_drop_idx_thread+56>, abstime=0x7f15ce7fbd00, src_file=0x7f15d5d88260 "storage/rocksdb/ha_rocksdb.cc", src_line=11306) at include/mysql/psi/mysql_thread.h:1186
      #5  0x00007f15d587bb21 in myrocks::Rdb_drop_index_thread::run (this=0x7f15d630f420 <myrocks::rdb_drop_idx_thread>) at storage/rocksdb/ha_rocksdb.cc:11306
      #6  0x00007f15d59263ca in myrocks::Rdb_thread::thread_func (thread_ptr=0x7f15d630f420 <myrocks::rdb_drop_idx_thread>) at storage/rocksdb/rdb_threads.cc:34
      #7  0x000055e0682bab81 in pfs_spawn_thread (arg=0x55e06b0e6d90) at storage/perfschema/pfs.cc:1862
      #8  0x00007f15dba5a6db in start_thread (arg=0x7f15ce7fc700) at pthread_create.c:463
      #9  0x00007f15dae3f88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
       
      Thread 4 (Thread 0x7f15cdffb700 (LWP 7683)):
      #0  0x00007f15dba60f85 in futex_abstimed_wait_cancelable (private=<optimized out>, abstime=0x7f15cdffae00, expected=0, futex_word=0x7f15d630ef50 <myrocks::rdb_mc_thread+272>) at ../sysdeps/unix/sysv/linux/futex-internal.h:205
      #1  __pthread_cond_wait_common (abstime=0x7f15cdffae00, mutex=0x7f15d630eea0 <myrocks::rdb_mc_thread+96>, cond=0x7f15d630ef28 <myrocks::rdb_mc_thread+232>) at pthread_cond_wait.c:539
      #2  __pthread_cond_timedwait (cond=0x7f15d630ef28 <myrocks::rdb_mc_thread+232>, mutex=0x7f15d630eea0 <myrocks::rdb_mc_thread+96>, abstime=0x7f15cdffae00) at pthread_cond_wait.c:667
      #3  0x000055e06831a643 in safe_cond_timedwait (cond=0x7f15d630ef28 <myrocks::rdb_mc_thread+232>, mp=0x7f15d630ee78 <myrocks::rdb_mc_thread+56>, abstime=0x7f15cdffae00, file=0x7f15d5d87960 "include/mysql/psi/mysql_thread.h", line=1186) at mysys/thr_mutex.c:545
      #4  0x00007f15d5861067 in inline_mysql_cond_timedwait (that=0x7f15d630ef28 <myrocks::rdb_mc_thread+232>, mutex=0x7f15d630ee78 <myrocks::rdb_mc_thread+56>, abstime=0x7f15cdffae00, src_file=0x7f15d5d88260 "storage/rocksdb/ha_rocksdb.cc", src_line=13303) at include/mysql/psi/mysql_thread.h:1186
      #5  0x00007f15d5883d70 in myrocks::Rdb_manual_compaction_thread::run (this=0x7f15d630ee40 <myrocks::rdb_mc_thread>) at storage/rocksdb/ha_rocksdb.cc:13303
      #6  0x00007f15d59263ca in myrocks::Rdb_thread::thread_func (thread_ptr=0x7f15d630ee40 <myrocks::rdb_mc_thread>) at storage/rocksdb/rdb_threads.cc:34
      #7  0x000055e0682bab81 in pfs_spawn_thread (arg=0x55e06b0e6300) at storage/perfschema/pfs.cc:1862
      #8  0x00007f15dba5a6db in start_thread (arg=0x7f15cdffb700) at pthread_create.c:463
      #9  0x00007f15dae3f88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
       
      Thread 3 (Thread 0x7f15d433f700 (LWP 7686)):
      #0  0x00007f15dba609f3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55e068e4fcec <COND_slave_background+44>) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
      #1  __pthread_cond_wait_common (abstime=0x0, mutex=0x55e068e52ee8 <LOCK_slave_background+40>, cond=0x55e068e4fcc0 <COND_slave_background>) at pthread_cond_wait.c:502
      #2  __pthread_cond_wait (cond=0x55e068e4fcc0 <COND_slave_background>, mutex=0x55e068e52ee8 <LOCK_slave_background+40>) at pthread_cond_wait.c:655
      #3  0x000055e06831a283 in safe_cond_wait (cond=0x55e068e4fcc0 <COND_slave_background>, mp=0x55e068e52ec0 <LOCK_slave_background>, file=0x55e06838c820 "include/mysql/psi/mysql_thread.h", line=1138) at mysys/thr_mutex.c:491
      #4  0x000055e067887cbe in inline_mysql_cond_wait (that=0x55e068e4fcc0 <COND_slave_background>, mutex=0x55e068e52ec0 <LOCK_slave_background>, src_file=0x55e06838d005 "sql/slave.cc", src_line=334) at include/mysql/psi/mysql_thread.h:1138
      #5  0x000055e0678888fe in handle_slave_background (arg=0x0) at sql/slave.cc:334
      #6  0x000055e0682bab81 in pfs_spawn_thread (arg=0x55e06b221270) at storage/perfschema/pfs.cc:1862
      #7  0x00007f15dba5a6db in start_thread (arg=0x7f15d433f700) at pthread_create.c:463
      #8  0x00007f15dae3f88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
       
      Thread 2 (Thread 0x7f15cf7fe700 (LWP 7680)):
      #0  0x00007f15dba609f3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55e06adf49a0) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
      #1  __pthread_cond_wait_common (abstime=0x0, mutex=0x55e06adf4950, cond=0x55e06adf4978) at pthread_cond_wait.c:502
      #2  __pthread_cond_wait (cond=0x55e06adf4978, mutex=0x55e06adf4950) at pthread_cond_wait.c:655
      #3  0x00007f15db77d620 in std::condition_variable::wait(std::unique_lock<std::mutex>&) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
      #4  0x00007f15d5d5cf4d in rocksdb::ThreadPoolImpl::Impl::BGThread (this=0x55e06adf48e0, thread_id=0) at storage/rocksdb/rocksdb/util/threadpool_imp.cc:196
      #5  0x00007f15d5d5d26e in rocksdb::ThreadPoolImpl::Impl::BGThreadWrapper (arg=0x55e06b0334f0) at storage/rocksdb/rocksdb/util/threadpool_imp.cc:303
      #6  0x00007f15d5d62d47 in std::__invoke_impl<void*, void* (*)(void*), rocksdb::BGThreadMetadata*> (__f=@0x55e06b0990d0: 0x7f15d5d5d17a <rocksdb::ThreadPoolImpl::Impl::BGThreadWrapper(void*)>, __args#0=@0x55e06b0990c8: 0x55e06b0334f0) at /usr/include/c++/7/bits/invoke.h:60
      #7  0x00007f15d5d622d8 in std::__invoke<void* (*)(void*), rocksdb::BGThreadMetadata*> (__fn=@0x55e06b0990d0: 0x7f15d5d5d17a <rocksdb::ThreadPoolImpl::Impl::BGThreadWrapper(void*)>, __args#0=@0x55e06b0990c8: 0x55e06b0334f0) at /usr/include/c++/7/bits/invoke.h:96
      #8  0x00007f15d5d65ceb in std::thread::_Invoker<std::tuple<void* (*)(void*), rocksdb::BGThreadMetadata*> >::_M_invoke<0ul, 1ul> (this=0x55e06b0990c8) at /usr/include/c++/7/thread:234
      #9  0x00007f15d5d65ca1 in std::thread::_Invoker<std::tuple<void* (*)(void*), rocksdb::BGThreadMetadata*> >::operator() (this=0x55e06b0990c8) at /usr/include/c++/7/thread:243
      #10 0x00007f15d5d65c80 in std::thread::_State_impl<std::thread::_Invoker<std::tuple<void* (*)(void*), rocksdb::BGThreadMetadata*> > >::_M_run (this=0x55e06b0990c0) at /usr/include/c++/7/thread:186
      #11 0x00007f15db783733 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
      #12 0x00007f15dba5a6db in start_thread (arg=0x7f15cf7fe700) at pthread_create.c:463
      #13 0x00007f15dae3f88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
       
      Thread 1 (Thread 0x7f15d42f4700 (LWP 7687)):
      #0  __pthread_kill (threadid=<optimized out>, signo=6) at ../sysdeps/unix/sysv/linux/pthread_kill.c:57
      #1  0x000055e068314c43 in my_write_core (sig=6) at mysys/stacktrace.c:477
      #2  0x000055e067bb209f in handle_fatal_signal (sig=6) at sql/signal_handler.cc:305
      #3  <signal handler called>
      #4  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
      #5  0x00007f15dad5e801 in __GI_abort () at abort.c:79
      #6  0x00007f15d5884bd8 in myrocks::rdb_handle_io_error (status=..., err_type=myrocks::RDB_IO_ERROR_GENERAL) at storage/rocksdb/ha_rocksdb.cc:13616
      #7  0x00007f15d5893960 in myrocks::Rdb_transaction::set_status_error (this=0x7f159813bb90, thd=0x7f1598000d60, s=..., kd=..., tbl_def=0x7f159814a940, table_handler=0x7f159813ea50) at storage/rocksdb/ha_rocksdb.cc:2229
      #8  0x00007f15d5874f39 in myrocks::ha_rocksdb::get_row_by_rowid (this=0x7f1598136888, buf=0x7f159814b6d8 "\377\001", rowid=0x7f159814a7c0 "", rowid_size=8, skip_lookup=false, skip_ttl_check=false) at storage/rocksdb/ha_rocksdb.cc:9016
      #9  0x00007f15d58901bd in myrocks::ha_rocksdb::get_row_by_rowid (this=0x7f1598136888, buf=0x7f159814b6d8 "\377\001", rowid=0x7f159814a7c0 "", rowid_size=8, skip_lookup=false, skip_ttl_check=false) at storage/rocksdb/./ha_rocksdb.h:696
      #10 0x00007f15d58731a4 in myrocks::ha_rocksdb::index_read_map_impl (this=0x7f1598136888, buf=0x7f159814b6d8 "\377\001", key=0x7f1598015080 "\001", keypart_map=1, find_flag=HA_READ_KEY_EXACT, end_key=0x0) at storage/rocksdb/ha_rocksdb.cc:8499
      #11 0x00007f15d5872fb3 in myrocks::ha_rocksdb::index_read_map (this=0x7f1598136888, buf=0x7f159814b6d8 "\377\001", key=0x7f1598015080 "\001", keypart_map=1, find_flag=HA_READ_KEY_EXACT) at storage/rocksdb/ha_rocksdb.cc:8449
      #12 0x000055e067bbfeb4 in handler::index_read_idx_map (this=0x7f1598136888, buf=0x7f159814b6d8 "\377\001", index=0, key=0x7f1598015080 "\001", keypart_map=1, find_flag=HA_READ_KEY_EXACT) at sql/handler.cc:5485
      #13 0x000055e067bb91b3 in handler::ha_index_read_idx_map (this=0x7f1598136888, buf=0x7f159814b6d8 "\377\001", index=0, key=0x7f1598015080 "\001", keypart_map=1, find_flag=HA_READ_KEY_EXACT) at sql/handler.cc:2656
      #14 0x000055e0679b0c48 in join_read_const (tab=0x7f1598013f50) at sql/sql_select.cc:19314
      #15 0x000055e0679b0754 in join_read_const_table (thd=0x7f1598000d60, tab=0x7f1598013f50, pos=0x7f1598014508) at sql/sql_select.cc:19194
      #16 0x000055e06798bab9 in make_join_statistics (join=0x7f1598013388, tables_list=..., keyuse_array=0x7f1598013678) at sql/sql_select.cc:4297
      #17 0x000055e067982592 in JOIN::optimize_inner (this=0x7f1598013388) at sql/sql_select.cc:1580
      #18 0x000055e067980acb in JOIN::optimize (this=0x7f1598013388) at sql/sql_select.cc:1115
      #19 0x000055e067989eb2 in mysql_select (thd=0x7f1598000d60, tables=0x7f1598012978, wild_num=1, fields=..., conds=0x7f1598013138, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2147748608, result=0x7f1598013368, unit=0x7f1598004940, select_lex=0x7f1598005078) at sql/sql_select.cc:3790
      #20 0x000055e06797e279 in handle_select (thd=0x7f1598000d60, lex=0x7f1598004878, result=0x7f1598013368, setup_tables_done_option=0) at sql/sql_select.cc:364
      #21 0x000055e067949b6d in execute_sqlcom_select (thd=0x7f1598000d60, all_tables=0x7f1598012978) at sql/sql_parse.cc:6477
      #22 0x000055e06793f8a5 in mysql_execute_command (thd=0x7f1598000d60) at sql/sql_parse.cc:3484
      #23 0x000055e06794d9bf in mysql_parse (thd=0x7f1598000d60, rawbuf=0x7f1598012788 "select * from t1 where pk=1", length=27, parser_state=0x7f15d42f31e0, is_com_multi=false, is_next_command=false) at sql/sql_parse.cc:8009
      #24 0x000055e06793b186 in dispatch_command (command=COM_QUERY, thd=0x7f1598000d60, packet=0x7f1598008b41 "select * from t1 where pk=1", packet_length=27, is_com_multi=false, is_next_command=false) at sql/sql_parse.cc:1823
      #25 0x000055e067939b24 in do_command (thd=0x7f1598000d60) at sql/sql_parse.cc:1377
      #26 0x000055e067a89f58 in do_handle_one_connection (connect=0x55e06b273400) at sql/sql_connect.cc:1335
      #27 0x000055e067a89cd8 in handle_one_connection (arg=0x55e06b273400) at sql/sql_connect.cc:1241
      #28 0x000055e0682bab81 in pfs_spawn_thread (arg=0x55e06b1c9d20) at storage/perfschema/pfs.cc:1862
      #29 0x00007f15dba5a6db in start_thread (arg=0x7f15d42f4700) at pthread_create.c:463
      #30 0x00007f15dae3f88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
       
       - saving '/home/sanja/maria/git/server/mysql-test/var/log/rocksdb.allow_to_start_after_corruption-write_prepared/' to '/home/sanja/maria/git/server/mysql-test/var/log/rocksdb.allow_to_start_after_corruption-write_prepared/'
      
      

        Attachments

          Activity

            People

            Assignee:
            psergey Sergei Petrunia
            Reporter:
            sanja Oleksandr Byelkin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: