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

Server crashed in strmake / tdc_create_key / THD::create_tmp_table_def_key

    XMLWordPrintable

    Details

      Description

      10.2 97930df

      190129 14:14:42 [ERROR] mysqld got signal 11 ;
       
      #3  <signal handler called>
      #4  0x0000559bb2a6efd1 in strmake (dst=0x7f9e243983b1 "\203\071$\236\177", src=0x1 <error: Cannot access memory at address 0x1>, length=191) at /home/travis/src/strings/strmake.c:36
      #5  0x0000559bb1fd2a6f in tdc_create_key (key=0x7f9e243983b0 "Ѓ9$\236\177", db=0x0, table_name=0x7f9dd8015080 "cte1") at /home/travis/src/sql/table_cache.h:122
      #6  0x0000559bb222abbd in THD::create_tmp_table_def_key (this=0x7f9dd8000cd0, key=0x7f9e243983b0 "Ѓ9$\236\177", db=0x0, table_name=0x7f9dd8015080 "cte1") at /home/travis/src/sql/temporary_tables.cc:885
      #7  0x0000559bb222b587 in THD::find_and_use_tmp_table (this=0x7f9dd8000cd0, tl=0x7f9dd80150b8, out_table=0x7f9e24398580) at /home/travis/src/sql/temporary_tables.cc:1141
      #8  0x0000559bb2229c7d in THD::open_temporary_table (this=0x7f9dd8000cd0, tl=0x7f9dd80150b8) at /home/travis/src/sql/temporary_tables.cc:361
      #9  0x0000559bb2229f16 in THD::open_temporary_tables (this=0x7f9dd8000cd0, tl=0x7f9dd80150b8) at /home/travis/src/sql/temporary_tables.cc:439
      #10 0x0000559bb2031f4c in mysql_execute_command (thd=0x7f9dd8000cd0) at /home/travis/src/sql/sql_parse.cc:3397
      #11 0x0000559bb2040589 in mysql_parse (thd=0x7f9dd8000cd0, rawbuf=0x7f9dd80134a8 "/* GenTest::Transform::ExecuteAsCTE */  /* testdb_N */ WITH cte1 AS ( SELECT * FROM information_schema.schemata WHERE schema_name = TRIM( ' testdb_N ') /* QNO 3064 CON_ID 18 */ ) SELECT * FROM cte1  /"..., length=263, parser_state=0x7f9e24399250, is_com_multi=false, is_next_command=false) at /home/travis/src/sql/sql_parse.cc:8015
      #12 0x0000559bb202dbda in dispatch_command (command=COM_QUERY, thd=0x7f9dd8000cd0, packet=0x7f9dd8008a71 "/* GenTest::Transform::ExecuteAsCTE */  /* testdb_N */ WITH cte1 AS ( SELECT * FROM information_schema.schemata WHERE schema_name = TRIM( ' testdb_N ') /* QNO 3064 CON_ID 18 */ ) SELECT * FROM cte1  /"..., packet_length=264, is_com_multi=false, is_next_command=false) at /home/travis/src/sql/sql_parse.cc:1826
      #13 0x0000559bb202c52a in do_command (thd=0x7f9dd8000cd0) at /home/travis/src/sql/sql_parse.cc:1379
      #14 0x0000559bb217f006 in do_handle_one_connection (connect=0x559bb54db290) at /home/travis/src/sql/sql_connect.cc:1335
      #15 0x0000559bb217ed86 in handle_one_connection (arg=0x559bb54db290) at /home/travis/src/sql/sql_connect.cc:1241
      #16 0x00007f9e278e36ba in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
      #17 0x00007f9e26d7841d in clone () from /lib/x86_64-linux-gnu/libc.so.6
      

      See comments for the test case.

        Attachments

          Activity

            People

            Assignee:
            sanja Oleksandr Byelkin
            Reporter:
            elenst Elena Stepanova
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: