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

Server crash in fil_space_t::try_to_close or Assertion `!node->is_open()' failed in fil_node_open_file_low

    XMLWordPrintable

Details

    Description

      10.6 c22e6eed debug

      mysqld: /data/src/10.6/storage/innobase/fil/fil0fil.cc:353: bool fil_node_open_file_low(fil_node_t*): Assertion `!node->is_open()' failed.
      210322  2:11:40 [ERROR] mysqld got signal 6 ;
       
      #7  0x00007fbd82ab9f36 in __GI___assert_fail (assertion=0x56418b0b4b55 "!node->is_open()", file=0x56418b0b4958 "/data/src/10.6/storage/innobase/fil/fil0fil.cc", line=353, function=0x56418b0b4b68 "bool fil_node_open_file_low(fil_node_t*)") at assert.c:101
      #8  0x000056418aa52ebf in fil_node_open_file_low (node=0x7fbd286d9de8) at /data/src/10.6/storage/innobase/fil/fil0fil.cc:353
      #9  0x000056418aa537cd in fil_node_open_file (node=0x7fbd286d9de8) at /data/src/10.6/storage/innobase/fil/fil0fil.cc:445
      #10 0x000056418aa54934 in fil_space_t::prepare (this=0x7fbd28128fe8, have_mutex=true) at /data/src/10.6/storage/innobase/fil/fil0fil.cc:654
      #11 0x000056418aa6e192 in fil_space_t::next (space=0x7fbd28128fe8, recheck=false, encrypt=true) at /data/src/10.6/storage/innobase/fil/fil0crypt.cc:1513
      #12 0x000056418aa6af47 in fil_crypt_find_space_to_rotate (key_state=0x7fbd4f7fdd54, state=0x7fbd4f7fdd60, recheck=0x7fbd4f7fdd53) at /data/src/10.6/storage/innobase/fil/fil0crypt.cc:1586
      #13 0x000056418aa6c738 in fil_crypt_thread () at /data/src/10.6/storage/innobase/fil/fil0crypt.cc:2093
      #14 0x000056418a9f2447 in std::__invoke_impl<void, void (*)()> (__f=@0x56418da145c8: 0x56418aa6c658 <fil_crypt_thread()>) at /usr/include/c++/9/bits/invoke.h:60
      #15 0x000056418a9f23f3 in std::__invoke<void (*)()> (__fn=@0x56418da145c8: 0x56418aa6c658 <fil_crypt_thread()>) at /usr/include/c++/9/bits/invoke.h:95
      #16 0x000056418a9f2394 in std::thread::_Invoker<std::tuple<void (*)()> >::_M_invoke<0ul> (this=0x56418da145c8) at /usr/include/c++/9/thread:244
      #17 0x000056418a9f2366 in std::thread::_Invoker<std::tuple<void (*)()> >::operator() (this=0x56418da145c8) at /usr/include/c++/9/thread:251
      #18 0x000056418a9f2346 in std::thread::_State_impl<std::thread::_Invoker<std::tuple<void (*)()> > >::_M_run (this=0x56418da145c0) at /usr/include/c++/9/thread:195
      #19 0x00007fbd82eb7d84 in ?? () from /lib/x86_64-linux-gnu/libstdc++.so.6
      #20 0x00007fbd82fd1609 in start_thread (arg=<optimized out>) at pthread_create.c:477
      #21 0x00007fbd82ba5293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
      

      10.6 c22e6eed non-debug

      #3  <signal handler called>
      #4  fil_space_t::try_to_close (print_info=false) at /data/src/10.6/storage/innobase/include/os0file.h:103
      #5  0x000055efe8dd8b8f in fil_node_open_file (node=0x7faba42c2138) at /data/src/10.6/storage/innobase/fil/fil0fil.cc:426
      #6  0x000055efe860c524 in fil_space_t::prepare (this=this@entry=0x7faba42bfdf8, have_mutex=have_mutex@entry=true) at /data/src/10.6/storage/innobase/fil/fil0fil.cc:658
      #7  0x000055efe860f2c1 in fil_space_t::next (encrypt=true, recheck=<optimized out>, space=0x7faba42bfdf8) at /data/src/10.6/storage/innobase/fil/fil0crypt.cc:1556
      #8  fil_crypt_find_space_to_rotate (recheck=<synthetic pointer>, state=0x7fabbfffe950, key_state=<synthetic pointer>) at /data/src/10.6/storage/innobase/fil/fil0crypt.cc:1586
      #9  fil_crypt_thread () at /data/src/10.6/storage/innobase/fil/fil0crypt.cc:2093
      #10 0x00007fabf27b2d84 in ?? () from /lib/x86_64-linux-gnu/libstdc++.so.6
      #11 0x00007fabf28ce609 in start_thread (arg=<optimized out>) at pthread_create.c:477
      #12 0x00007fabf24bd293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
      

      To reproduce:

      git clone https://github.com/MariaDB/randgen --branch mdev25214 rqg-25214
      cd rqg-25214
      . ./mdev25214.cmd <basedir>
      

      Can't reproduce on 10.5.
      Can't reproduce with rr.
      Coredump is available.

      Attachments

        Issue Links

          Activity

            People

              marko Marko Mäkelä
              elenst Elena Stepanova
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.