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

[Draft] Assertion `lock->magic_n == 22643' failed in rw_lock_validate

    Details

      Description

      https://travis-ci.org/elenst/travis-tests/jobs/466147463

      10.3 ac31ff6275cfb5de74c0069a53e5575dac317225

      mysqld: /home/travis/src/storage/innobase/sync/sync0rw.cc:865: bool rw_lock_validate(const rw_lock_t*): Assertion `lock->magic_n == 22643' failed.
      181211 11:51:03 [ERROR] mysqld got signal 6 ;
       
      #3  0x00007f1aace07ca2 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6
      #4  0x0000564ecf16ca70 in rw_lock_validate (lock=0x7f1a48134bf0) at /home/travis/src/storage/innobase/sync/sync0rw.cc:865
      #5  0x0000564ecf16cf72 in rw_lock_own_flagged (lock=0x7f1a48134bf0, flags=3) at /home/travis/src/storage/innobase/sync/sync0rw.cc:1036
      #6  0x0000564ecf0bf52d in rw_lock_s_lock_func (lock=0x7f1a48134bf0, pass=0, file_name=0x564ecf8838c8 "/home/travis/src/storage/innobase/btr/btr0cur.cc", line=1332) at /home/travis/src/storage/innobase/include/sync0rw.ic:282
      #7  0x0000564ecf0bf653 in pfs_rw_lock_s_lock_func (lock=0x7f1a48134bf0, pass=0, file_name=0x564ecf8838c8 "/home/travis/src/storage/innobase/btr/btr0cur.cc", line=1332) at /home/travis/src/storage/innobase/include/sync0rw.ic:660
      #8  0x0000564ecf0ce3a9 in mtr_t::s_lock (this=0x7f1a727faaa0, lock=0x7f1a48134bf0, file=0x564ecf8838c8 "/home/travis/src/storage/innobase/btr/btr0cur.cc", line=1332) at /home/travis/src/storage/innobase/include/mtr0mtr.ic:238
      #9  0x0000564ecf1eae8b in btr_cur_search_to_nth_level_func (index=0x7f1a48134a28, level=0, tuple=0x7f1a5c049d48, mode=PAGE_CUR_LE, latch_mode=1, cursor=0x564ed2462308, ahi_latch=0x0, file=0x564ecf834ab0 "/home/travis/src/storage/innobase/row/row0purge.cc", line=100, mtr=0x7f1a727faaa0, autoinc=0) at /home/travis/src/storage/innobase/btr/btr0cur.cc:1332
      #10 0x0000564ecf202416 in btr_pcur_open_with_no_init_func (index=0x7f1a48134a28, tuple=0x7f1a5c049d48, mode=PAGE_CUR_LE, latch_mode=1, cursor=0x564ed2462308, ahi_latch=0x0, file=0x564ecf834ab0 "/home/travis/src/storage/innobase/row/row0purge.cc", line=100, mtr=0x7f1a727faaa0) at /home/travis/src/storage/innobase/include/btr0pcur.ic:527
      #11 0x0000564ecf2033fb in btr_pcur_restore_position_func (latch_mode=1, cursor=0x564ed2462308, file=0x564ecf834ab0 "/home/travis/src/storage/innobase/row/row0purge.cc", line=100, mtr=0x7f1a727faaa0) at /home/travis/src/storage/innobase/btr/btr0pcur.cc:362
      #12 0x0000564ecf10f345 in row_purge_reposition_pcur (mode=1, node=0x564ed2462270, mtr=0x7f1a727faaa0) at /home/travis/src/storage/innobase/row/row0purge.cc:100
      #13 0x0000564ecf10fc3b in row_purge_poss_sec (node=0x564ed2462270, index=0x7f1a48151578, entry=0x7f1a5c112b98, sec_pcur=0x7f1a727fb030, sec_mtr=0x7f1a727fb290, is_tree=false) at /home/travis/src/storage/innobase/row/row0purge.cc:341
      #14 0x0000564ecf1109c3 in row_purge_remove_sec_if_poss_leaf (node=0x564ed2462270, index=0x7f1a48151578, entry=0x7f1a5c112b98) at /home/travis/src/storage/innobase/row/row0purge.cc:604
      #15 0x0000564ecf110ea8 in row_purge_remove_sec_if_poss (node=0x564ed2462270, index=0x7f1a48151578, entry=0x7f1a5c112b98) at /home/travis/src/storage/innobase/row/row0purge.cc:717
      #16 0x0000564ecf1110af in row_purge_del_mark (node=0x564ed2462270) at /home/travis/src/storage/innobase/row/row0purge.cc:791
      #17 0x0000564ecf112665 in row_purge_record_func (node=0x564ed2462270, undo_rec=0x7f1a640fc478 "\002E\016\210\t\032", thr=0x564ed24621b8, updated_extern=false) at /home/travis/src/storage/innobase/row/row0purge.cc:1190
      #18 0x0000564ecf1129a2 in row_purge (node=0x564ed2462270, undo_rec=0x7f1a640fc478 "\002E\016\210\t\032", thr=0x564ed24621b8) at /home/travis/src/storage/innobase/row/row0purge.cc:1257
      #19 0x0000564ecf112d4d in row_purge_step (thr=0x564ed24621b8) at /home/travis/src/storage/innobase/row/row0purge.cc:1343
      #20 0x0000564ecf095f7a in que_thr_step (thr=0x564ed24621b8) at /home/travis/src/storage/innobase/que/que0que.cc:1042
      #21 0x0000564ecf0961aa in que_run_threads_low (thr=0x564ed24621b8) at /home/travis/src/storage/innobase/que/que0que.cc:1104
      #22 0x0000564ecf09639a in que_run_threads (thr=0x564ed24621b8) at /home/travis/src/storage/innobase/que/que0que.cc:1144
      #23 0x0000564ecf15d615 in srv_task_execute () at /home/travis/src/storage/innobase/srv/srv0srv.cc:2451
      #24 0x0000564ecf15d7b7 in srv_worker_thread (arg=0x0) at /home/travis/src/storage/innobase/srv/srv0srv.cc:2499
      #25 0x00007f1aad9c9184 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
      #26 0x00007f1aaced5ffd in clone () from /lib/x86_64-linux-gnu/libc.so.6
      

      elenst-dev d73323d1fb32464a1ad9137f07becaa638791fdd

      perl ./runall-new.pl --basedir=/home/travis/server --vardir=/home/travis/logs/vardir --duration=350 --threads=6 --seed=1544529043 --reporters=Backtrace,ErrorLog,Deadlock --validators=TransformerNoComparator --views --redefine=conf/mariadb/alter_table.yy --redefine=conf/mariadb/instant_add.yy --redefine=conf/mariadb/sp.yy --redefine=conf/mariadb/bulk_insert.yy --redefine=conf/mariadb/sequences.yy --redefine=conf/mariadb/modules/sql_mode.yy --redefine=conf/mariadb/modules/acl.yy --mysqld=--log_output=FILE --mysqld=--max-statement-time=30 --mysqld=--lock-wait-timeout=10 --mysqld=--loose-innodb-lock-wait-timeout=5 --mysqld=--loose-debug_assert_on_not_freed_memory=0 --grammar=conf/mariadb/optimizer.yy --skip-gendata --gendata-advanced --vcols --transformers=ExecuteAsIntersect,ExecuteAsExcept,ExecuteAsCTE,ExecuteAsExecuteImmediate,ExecuteAsDeleteReturning,ExecuteAsInsertSelect,ExecuteAsUnion,ExecuteAsUpdateDelete,ExecuteAsView,ExecuteAsPreparedTwice --redefine=conf/mariadb/versioning.yy
      

      Not reproducible via MTR yet, but the first attempt to re-run the initial test failed in a similar fashion, with an extra assertion (see the beginning and the end of the code block):

      10.3 ac31ff6275

      mysqld: /data/src/10.3-travis/storage/innobase/rem/rem0rec.cc:785: ulint* rec_get_offsets_func(const rec_t*, const dict_index_t*, ulint*, bool, ulint, const char*, unsigned int, mem_heap_t**): Assertion `index' failed.
      181211 22:28:20 [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.3.12-MariaDB-debug-log
      key_buffer_size=134217728
      read_buffer_size=131072
      max_used_connections=8
      max_threads=153
      thread_count=14
      It is possible that mysqld could use up to 
      key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 467474 K  bytes of memory
      Hope that's ok; if not, decrease some variables in the equation.
       
      Thread pointer: 0x7f9498000b00
      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 = 0x7f94b27fbe98 thread_stack 0x49000
      mysqld: /data/src/10.3-travis/storage/innobase/sync/sync0rw.cc:865: bool rw_lock_validate(const rw_lock_t*): Assertion `lock->magic_n == 22643' failed.
      Aborted (core dumped)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                elenst Elena Stepanova
                Reporter:
                elenst Elena Stepanova
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: