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

[Draft] Server crash in TABLE_LIST::get_tablenr

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 10.4
    • Fix Version/s: None
    • Component/s: Prepared Statements
    • Labels:
      None

      Description

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

      10.4 5abc79dd7ab2fccb4b05ca38a512ec816d2f8e52

      #3  <signal handler called>
      #4  0x000055ee656a6458 in TABLE_LIST::get_tablenr (this=0xffffffffffffffff) at /home/travis/src/sql/table.h:2071
      #5  0x000055ee656964f9 in st_select_lex::save_leaf_tables (this=0x7f94080896b0, thd=0x7f9408225710) at /home/travis/src/sql/sql_lex.cc:4824
      #6  0x000055ee6567e48e in mysql_insert (thd=0x7f9408225710, table_list=0x7f9408088f38, fields=..., values_list=..., update_fields=..., update_values=..., duplic=DUP_UPDATE, ignore=false) at /home/travis/src/sql/sql_insert.cc:1247
      #7  0x000055ee656c33f3 in mysql_execute_command (thd=0x7f9408225710) at /home/travis/src/sql/sql_parse.cc:4729
      #8  0x000055ee656ebc71 in Prepared_statement::execute (this=0x7f94084f0b00, expanded_query=0x7f93e1885360, open_cursor=false) at /home/travis/src/sql/sql_prepare.cc:4765
      #9  0x000055ee656ea07c in Prepared_statement::execute_loop (this=0x7f94084f0b00, expanded_query=0x7f93e1885360, open_cursor=false, packet=0x7f94082d8f5a "", packet_end=0x7f94082d8f5a "") at /home/travis/src/sql/sql_prepare.cc:4193
      #10 0x000055ee656e78bb in mysql_stmt_execute_common (thd=0x7f9408225710, stmt_id=1234, packet=0x7f94082d8f5a "", packet_end=0x7f94082d8f5a "", cursor_flags=0, bulk_op=false, read_types=false) at /home/travis/src/sql/sql_prepare.cc:3193
      #11 0x000055ee656e745e in mysqld_stmt_execute (thd=0x7f9408225710, packet_arg=0x7f94082d8f51 "\322\004", packet_length=9) at /home/travis/src/sql/sql_prepare.cc:3091
      #12 0x000055ee656baf28 in dispatch_command (command=COM_STMT_EXECUTE, thd=0x7f9408225710, packet=0x7f94082d8f51 "\322\004", packet_length=9, is_com_multi=false, is_next_command=false) at /home/travis/src/sql/sql_parse.cc:1792
      #13 0x000055ee656b9d06 in do_command (thd=0x7f9408225710) at /home/travis/src/sql/sql_parse.cc:1395
      #14 0x000055ee65821df1 in do_handle_one_connection (connect=0x55ee69939e00) at /home/travis/src/sql/sql_connect.cc:1402
      #15 0x000055ee65821b75 in handle_one_connection (arg=0x55ee69939e00) at /home/travis/src/sql/sql_connect.cc:1308
      #16 0x00007f940efc1184 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
      #17 0x00007f940e4cdffd in clone () from /lib/x86_64-linux-gnu/libc.so.6
      

      https://github.com/elenst/rqg 539d817245163ef1be726695ffc5851e5879e959

      perl ./runall-new.pl --basedir=/home/travis/server --vardir=/home/travis/logs/vardir --duration=350 --threads=6 --seed=1535218326 --reporters=Backtrace,ErrorLog,Deadlock --validators=TransformerNoComparator --views --redefine=conf/mariadb/alter_table.yy --redefine=conf/mariadb/sp.yy --redefine=conf/mariadb/bulk_insert.yy --redefine=conf/mariadb/versioning.yy --redefine=conf/mariadb/sequences.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 --mysqld=--default-storage-engine=MyISAM --grammar=conf/runtime/connect_kill_sql.yy --gendata=conf/runtime/connect_kill_data.zz --ps-protocol --transformers=ExecuteAsIntersect,ExecuteAsExcept,ExecuteAsCTE,ExecuteAsExecuteImmediate,ExecuteAsDeleteReturning,ExecuteAsInsertSelect,ExecuteAsUnion,ExecuteAsUpdateDelete,ExecuteAsView
      

      I haven't yet checked whether the command line reproduces the problem. Logs etc. are not available.

        Attachments

          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: