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

[Draft] [ERROR] InnoDB: Apparent corruption and ASAN row_sel_field_store_in_mysql_format_func

Details

    Description

      Later note: Looks similar to MDEV-18366 which was filed later, but MDEV-18366 logs (including full server logs still available as of this moment) don't have the "Apparent corruption in space" error record, so maybe it's not quite the same.

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

      10.4 301bd62b2536 ASAN build

      2019-01-12  6:40:27 8 [ERROR] InnoDB: Summed data size 512, returned by func 389
      2019-01-12  6:40:27 8 [ERROR] InnoDB: Apparent corruption in space 11 page 3 index `PRIMARY`
      2019-01-12  6:40:27 8 [ERROR] InnoDB: In page 3 of index `PRIMARY` of table `test`.`t007`
      =================================================================
      ==24029==ERROR: AddressSanitizer: unknown-crash on address 0x6190001af559 at pc 0x7fb808206904 bp 0x7fb74f74b930 sp 0x7fb74f74b0d8
      WRITE of size 255 at 0x6190001af559 thread T36
          #0 0x7fb808206903 in __asan_memcpy (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x8c903)
          #1 0x55f1640e39ec in row_sel_field_store_in_mysql_format_func(unsigned char*, mysql_row_templ_t const*, dict_index_t const*, unsigned long, unsigned char const*, unsigned long) /home/travis/src/storage/innobase/row/row0sel.cc:2760
          #2 0x55f1640e59f1 in row_sel_store_mysql_field_func /home/travis/src/storage/innobase/row/row0sel.cc:3030
          #3 0x55f1640e68e5 in row_sel_store_mysql_rec /home/travis/src/storage/innobase/row/row0sel.cc:3160
          #4 0x55f1640f0f0d in row_search_mvcc(unsigned char*, page_cur_mode_t, row_prebuilt_t*, unsigned long, unsigned long) /home/travis/src/storage/innobase/row/row0sel.cc:5440
          #5 0x55f163dd5e06 in ha_innobase::index_read(unsigned char*, unsigned char const*, unsigned int, ha_rkey_function) /home/travis/src/storage/innobase/handler/ha_innodb.cc:9266
          #6 0x55f163dd88ae in ha_innobase::index_first(unsigned char*) /home/travis/src/storage/innobase/handler/ha_innodb.cc:9643
          #7 0x55f163dd8e8d in ha_innobase::rnd_next(unsigned char*) /home/travis/src/storage/innobase/handler/ha_innodb.cc:9736
          #8 0x55f1638d55b9 in handler::ha_rnd_next(unsigned char*) /home/travis/src/sql/handler.cc:2800
          #9 0x55f163c741c4 in rr_sequential(READ_RECORD*) /home/travis/src/sql/records.cc:481
          #10 0x55f16304fc71 in READ_RECORD::read_record() /home/travis/src/sql/records.h:73
          #11 0x55f1633dee6d in copy_data_between_tables /home/travis/src/sql/sql_table.cc:10380
          #12 0x55f1633dba93 in mysql_alter_table(THD*, st_mysql_const_lex_string const*, st_mysql_const_lex_string const*, HA_CREATE_INFO*, TABLE_LIST*, Alter_info*, unsigned int, st_order*, bool) /home/travis/src/sql/sql_table.cc:9871
          #13 0x55f16351b671 in Sql_cmd_alter_table::execute(THD*) /home/travis/src/sql/sql_alter.cc:497
          #14 0x55f1631d23d9 in mysql_execute_command(THD*) /home/travis/src/sql/sql_parse.cc:6302
          #15 0x55f1631dcc21 in mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool) /home/travis/src/sql/sql_parse.cc:8104
          #16 0x55f1631b7a43 in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool) /home/travis/src/sql/sql_parse.cc:1851
          #17 0x55f1631b4bdb in do_command(THD*) /home/travis/src/sql/sql_parse.cc:1396
          #18 0x55f16350c7b6 in do_handle_one_connection(CONNECT*) /home/travis/src/sql/sql_connect.cc:1402
          #19 0x55f16350c193 in handle_one_connection /home/travis/src/sql/sql_connect.cc:1308
          #20 0x7fb806c2d6b9 in start_thread (/lib/x86_64-linux-gnu/libpthread.so.0+0x76b9)
          #21 0x7fb8060c241c in clone (/lib/x86_64-linux-gnu/libc.so.6+0x10741c)
      ASAN:SIGSEGV
      

      elenst-dev 662a6c5cf Toolbox: 72830f51da6

      perl ./runall-new.pl --basedir=/home/travis/server --vardir=/home/travis/logs/vardir --duration=350 --threads=6 --seed=1547275035 --short-column-names --reporters=Backtrace,ErrorLog,Deadlock --validators=TransformerNoComparator --transformers=ExecuteAsExecuteImmediate,ExecuteAsInsertSelect,ExecuteAsUpdateDelete --redefine=conf/mariadb/alter_table.yy --redefine=conf/mariadb/instant_add.yy --redefine=conf/mariadb/modules/alter_table_columns.yy --redefine=conf/mariadb/sp.yy --redefine=conf/mariadb/bulk_insert.yy --redefine=conf/mariadb/modules/admin.yy --redefine=conf/mariadb/modules/foreign_keys.yy -redefine=conf/mariadb/modules/locks.yy --redefine=conf/mariadb/modules/sql_mode.yy --redefine=conf/mariadb/redefine_temporary_tables.yy --redefine=conf/mariadb/versioning.yy --redefine=conf/mariadb/sequences.yy --filter=/home/travis/mariadb-toolbox/travis/10.4-combo-filter.ff --mysqld=--log_output=FILE --mysqld=--max-statement-time=15 --mysqld=--lock-wait-timeout=10 --mysqld=--loose-innodb-lock-wait-timeout=5 --mysqld=--loose-debug_assert_on_not_freed_memory=0 --mysqld=--innodb-buffer-pool-size=2G --grammar=conf/runtime/information_schema.yy --gendata=conf/mariadb/innodb.zz --scenario=Restart
      

      Not reproducible right away, either by converting the test to MTR, or by re-running the original concurrent test.
      Note that the problem occurred after several server restarts, which might be either relevant or not.

      Attachments

        Issue Links

          Activity

            elenst Elena Stepanova added a comment - - edited

            Will for now consider it a duplicate of MDEV-19304 or MDEV-18366, we have too many of the same kind

            elenst Elena Stepanova added a comment - - edited Will for now consider it a duplicate of MDEV-19304 or MDEV-18366 , we have too many of the same kind

            People

              elenst Elena Stepanova
              elenst Elena Stepanova
              Votes:
              0 Vote for this issue
              Watchers:
              1 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.