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

Server crashes in fill_record_n_invoke_before_triggers upon insert into table with TIMESTAMP INVISIBLE

    XMLWordPrintable

Details

    Description

      CREATE TABLE t1 (c CHAR(3), t TIMESTAMP INVISIBLE);
      INSERT INTO t1 (c,t) VALUES ('foo','2000-01-01 00:00:00');
       
      CREATE TRIGGER tr BEFORE INSERT ON t1 FOR EACH ROW SET @a= 1;
      INSERT INTO t1 SELECT * FROM t1;
       
      # Cleanup
      DROP TABLE t1;
      

      10.3 69efa1343a0a047

      #3  <signal handler called>
      #4  0x0000556623cb06b8 in fill_record (thd=0x7fc5b0000b00, table=0x7fc5b00753f0, ptr=0x7fc5b0076a68, values=..., ignore_errors=true, use_value=false) at /data/src/10.3/sql/sql_base.cc:8457
      #5  0x0000556623cb0927 in fill_record_n_invoke_before_triggers (thd=0x7fc5b0000b00, table=0x7fc5b00753f0, ptr=0x7fc5b0076a58, values=..., ignore_errors=true, event=TRG_EVENT_INSERT) at /data/src/10.3/sql/sql_base.cc:8510
      #6  0x0000556623cfa8e6 in select_insert::store_values (this=0x7fc5b0016ed8, values=...) at /data/src/10.3/sql/sql_insert.cc:3904
      #7  0x0000556623cfa58e in select_insert::send_data (this=0x7fc5b0016ed8, values=...) at /data/src/10.3/sql/sql_insert.cc:3837
      #8  0x0000556623da4694 in end_send (join=0x7fc5b0016f80, join_tab=0x0, end_of_records=false) at /data/src/10.3/sql/sql_select.cc:20407
      #9  0x0000556623da0bb0 in do_select (join=0x7fc5b0016f80, procedure=0x0) at /data/src/10.3/sql/sql_select.cc:18735
      #10 0x0000556623d79e78 in JOIN::exec_inner (this=0x7fc5b0016f80) at /data/src/10.3/sql/sql_select.cc:3989
      #11 0x0000556623d79310 in JOIN::exec (this=0x7fc5b0016f80) at /data/src/10.3/sql/sql_select.cc:3783
      #12 0x0000556623d7a551 in mysql_select (thd=0x7fc5b0000b00, tables=0x7fc5b00155f0, wild_num=1, fields=..., conds=0x0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=3489925888, result=0x7fc5b0016ed8, unit=0x7fc5b0004948, select_lex=0x7fc5b00050c0) at /data/src/10.3/sql/sql_select.cc:4188
      #13 0x0000556623d6c7f5 in handle_select (thd=0x7fc5b0000b00, lex=0x7fc5b0004880, result=0x7fc5b0016ed8, setup_tables_done_option=1073741824) at /data/src/10.3/sql/sql_select.cc:382
      #14 0x0000556623d3130f in mysql_execute_command (thd=0x7fc5b0000b00) at /data/src/10.3/sql/sql_parse.cc:4833
      #15 0x0000556623d3b39c in mysql_parse (thd=0x7fc5b0000b00, rawbuf=0x7fc5b0014d58 "INSERT INTO t1 SELECT * FROM t1", length=31, parser_state=0x7fc5cc74c5d0, is_com_multi=false, is_next_command=false) at /data/src/10.3/sql/sql_parse.cc:8013
      #16 0x0000556623d28a4f in dispatch_command (command=COM_QUERY, thd=0x7fc5b0000b00, packet=0x7fc5b008fe31 "INSERT INTO t1 SELECT * FROM t1", packet_length=31, is_com_multi=false, is_next_command=false) at /data/src/10.3/sql/sql_parse.cc:1842
      #17 0x0000556623d2748e in do_command (thd=0x7fc5b0000b00) at /data/src/10.3/sql/sql_parse.cc:1387
      #18 0x0000556623e8bde5 in do_handle_one_connection (connect=0x556627b61220) at /data/src/10.3/sql/sql_connect.cc:1402
      #19 0x0000556623e8bb72 in handle_one_connection (arg=0x556627b61220) at /data/src/10.3/sql/sql_connect.cc:1308
      #20 0x0000556624312c2b in pfs_spawn_thread (arg=0x556627c236c0) at /data/src/10.3/storage/perfschema/pfs.cc:1862
      #21 0x00007fc5d3a7b494 in start_thread (arg=0x7fc5cc74d700) at pthread_create.c:333
      #22 0x00007fc5d1e6193f in clone () from /lib/x86_64-linux-gnu/libc.so.6
      

      Reproducible with at least MyISAM, InnoDB, Aria.

      Attachments

        Activity

          People

            sachin.setiya.007 Sachin Setiya (Inactive)
            elenst Elena Stepanova
            Votes:
            0 Vote for this issue
            Watchers:
            3 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.