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

Assertion `anc_page->org_size == anc_page->size' failed in d_search upon query with EXCEPT and SYSTEM_TIME ALL

    XMLWordPrintable

Details

    Description

      Notes:
      The attached test case is for reproducing and debugging only, don't put it into the regression suite as is, make a better one!
      The test case inserts a lot of data into the table. Possibly the same effect can be achieved by using smaller values of max_heap_table_size and less data.

      10.3 df51dc28

      mysqld: /data/src/10.3/storage/maria/ma_delete.c:496: d_search: Assertion `anc_page->org_size == anc_page->size' failed.
      190220  7:06:44 [ERROR] mysqld got signal 6 ;
       
      #7  0x00007fe73eaf9ee2 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6
      #8  0x0000555860a0a0fd in d_search (info=0x7fe72811c640, key=0x7fe738c9ea00, comp_flag=4, anc_page=0x7fe738c9b430) at /data/src/10.3/storage/maria/ma_delete.c:496
      #9  0x0000555860a09c73 in d_search (info=0x7fe72811c640, key=0x7fe738c9ea00, comp_flag=4, anc_page=0x7fe738c9e3a0) at /data/src/10.3/storage/maria/ma_delete.c:414
      #10 0x0000555860a092ac in _ma_ck_real_delete (info=0x7fe72811c640, key=0x7fe738c9ea00, root=0x7fe738c9e428) at /data/src/10.3/storage/maria/ma_delete.c:228
      #11 0x0000555860a08fa6 in _ma_ck_delete (info=0x7fe72811c640, key=0x7fe738c9ea00) at /data/src/10.3/storage/maria/ma_delete.c:178
      #12 0x0000555860a089b4 in maria_delete (info=0x7fe72811c640, record=0x7fe728049a08 "\377") at /data/src/10.3/storage/maria/ma_delete.c:88
      #13 0x0000555860988d89 in ha_maria::delete_row (this=0x7fe72811a9e8, buf=0x7fe728049a08 "\377") at /data/src/10.3/storage/maria/ha_maria.cc:2353
      #14 0x000055586057455a in handler::ha_delete_tmp_row (this=0x7fe72811a9e8, buf=0x7fe728049a08 "\377") at /data/src/10.3/sql/sql_class.h:6427
      #15 0x000055586056d881 in select_unit::send_data (this=0x7fe7280166c0, values=...) at /data/src/10.3/sql/sql_union.cc:192
      #16 0x00005558604f468c in end_send (join=0x7fe7280172f0, join_tab=0x7fe72804be30, end_of_records=false) at /data/src/10.3/sql/sql_select.cc:20580
      #17 0x00005558604f1e9c in evaluate_join_record (join=0x7fe7280172f0, join_tab=0x7fe72804ba80, error=0) at /data/src/10.3/sql/sql_select.cc:19616
      #18 0x00005558604f1938 in sub_select (join=0x7fe7280172f0, join_tab=0x7fe72804ba80, end_of_records=false) at /data/src/10.3/sql/sql_select.cc:19435
      #19 0x00005558604f0cb6 in do_select (join=0x7fe7280172f0, procedure=0x0) at /data/src/10.3/sql/sql_select.cc:18936
      #20 0x00005558604c98ad in JOIN::exec_inner (this=0x7fe7280172f0) at /data/src/10.3/sql/sql_select.cc:4040
      #21 0x00005558604c8cee in JOIN::exec (this=0x7fe7280172f0) at /data/src/10.3/sql/sql_select.cc:3834
      #22 0x000055586057223f in st_select_lex_unit::exec (this=0x7fe7280049b8) at /data/src/10.3/sql/sql_union.cc:1470
      #23 0x000055586056d1e7 in mysql_union (thd=0x7fe728000b00, lex=0x7fe7280048f0, result=0x7fe728016698, unit=0x7fe7280049b8, setup_tables_done_option=0) at /data/src/10.3/sql/sql_union.cc:41
      #24 0x00005558604bbdce in handle_select (thd=0x7fe728000b00, lex=0x7fe7280048f0, result=0x7fe728016698, setup_tables_done_option=0) at /data/src/10.3/sql/sql_select.cc:363
      #25 0x00005558604868ec in execute_sqlcom_select (thd=0x7fe728000b00, all_tables=0x7fe728014f60) at /data/src/10.3/sql/sql_parse.cc:6551
      #26 0x000055586047cf5d in mysql_execute_command (thd=0x7fe728000b00) at /data/src/10.3/sql/sql_parse.cc:3772
      #27 0x000055586048a8a5 in mysql_parse (thd=0x7fe728000b00, rawbuf=0x7fe728014ce8 "SELECT * from oltp1 FOR system_time ALL EXCEPT SELECT * from oltp1 FOR system_time ALL", length=86, parser_state=0x7fe738ca05f0, is_com_multi=false, is_next_command=false) at /data/src/10.3/sql/sql_parse.cc:8095
      #28 0x0000555860477a59 in dispatch_command (command=COM_QUERY, thd=0x7fe728000b00, packet=0x7fe728126141 "SELECT * from oltp1 FOR system_time ALL EXCEPT SELECT * from oltp1 FOR system_time ALL", packet_length=86, is_com_multi=false, is_next_command=false) at /data/src/10.3/sql/sql_parse.cc:1854
      #29 0x0000555860476431 in do_command (thd=0x7fe728000b00) at /data/src/10.3/sql/sql_parse.cc:1396
      #30 0x00005558605de74f in do_handle_one_connection (connect=0x5558628f58a0) at /data/src/10.3/sql/sql_connect.cc:1403
      #31 0x00005558605de4d3 in handle_one_connection (arg=0x5558628f58a0) at /data/src/10.3/sql/sql_connect.cc:1309
      #32 0x0000555860a7a2e1 in pfs_spawn_thread (arg=0x5558629424c0) at /data/src/10.3/storage/perfschema/pfs.cc:1862
      #33 0x00007fe7407d0494 in start_thread (arg=0x7fe738ca1700) at pthread_create.c:333
      #34 0x00007fe73ebb693f in clone () from /lib/x86_64-linux-gnu/libc.so.6
      

      No obvious problem on a non-debug build.

      Attachments

        1. mdev16659.test
          300 kB
        2. threads
          53 kB
        3. threads_full
          135 kB

        Issue Links

          Activity

            People

              nikitamalyavin Nikita Malyavin
              elenst Elena Stepanova
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

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