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

innodb.innodb-index fails sporadically: use-after-poison on Aria my_pread

    XMLWordPrintable

Details

    Description

      Fails often, 10-20 times a day. Test failure:

      ==178226==ERROR: AddressSanitizer: use-after-poison on address 0x7f9ff2bce000 at pc 0x7f9ffd58d681 bp 0x7fff3e93f2e0 sp 0x7fff3e93eaa0
      WRITE of size 8192 at 0x7f9ff2bce000 thread T0
          #0 0x7f9ffd58d680 in __interceptor_pread64 ../../../../src/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:1078
          #1 0x55cd0061909e in my_pread /home/buildbot/amd64-debian-12-asan-ubsan/build/mysys/my_pread.c:66
          #2 0x55ccff3910f0 in inline_mysql_file_pread /home/buildbot/amd64-debian-12-asan-ubsan/build/include/mysql/psi/mysql_file.h:1206
          #3 0x55ccff3910f0 in read_block /home/buildbot/amd64-debian-12-asan-ubsan/build/storage/maria/ma_pagecache.c:3094
          #4 0x55ccff3910f0 in read_block /home/buildbot/amd64-debian-12-asan-ubsan/build/storage/maria/ma_pagecache.c:3066
          #5 0x55ccff39e23a in pagecache_read /home/buildbot/amd64-debian-12-asan-ubsan/build/storage/maria/ma_pagecache.c:3786
          #6 0x55ccff36f502 in translog_get_page /home/buildbot/amd64-debian-12-asan-ubsan/build/storage/maria/ma_loghandler.c:3211
          #7 0x55ccff3877b3 in translog_init_with_table /home/buildbot/amd64-debian-12-asan-ubsan/build/storage/maria/ma_loghandler.c:3922
          #8 0x55ccff3296c8 in ha_maria_init /home/buildbot/amd64-debian-12-asan-ubsan/build/storage/maria/ha_maria.cc:3937
          #9 0x55ccfe10cbf6 in ha_initialize_handlerton(void*) /home/buildbot/amd64-debian-12-asan-ubsan/build/sql/handler.cc:737
          #10 0x55ccfcb13cf9 in plugin_do_initialize /home/buildbot/amd64-debian-12-asan-ubsan/build/sql/sql_plugin.cc:1455
          #11 0x55ccfcb30ead in plugin_initialize /home/buildbot/amd64-debian-12-asan-ubsan/build/sql/sql_plugin.cc:1509
          #12 0x55ccfcb35bad in plugin_init(int*, char**, int) /home/buildbot/amd64-debian-12-asan-ubsan/build/sql/sql_plugin.cc:1751
          #13 0x55ccfc15f651 in init_server_components /home/buildbot/amd64-debian-12-asan-ubsan/build/sql/mysqld.cc:5315
          #14 0x55ccfc172d51 in mysqld_main(int, char**) /home/buildbot/amd64-debian-12-asan-ubsan/build/sql/mysqld.cc:6011
          #15 0x7f9ffc32f249  (/lib/x86_64-linux-gnu/libc.so.6+0x27249)
          #16 0x7f9ffc32f304 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x27304)
          #17 0x55ccfc146d80 in _start (/home/buildbot/amd64-debian-12-asan-ubsan/build/sql/mariadbd+0x7990d80)
       
      Address 0x7f9ff2bce000 is a wild pointer inside of access range of size 0x000000002000.
      SUMMARY: AddressSanitizer: use-after-poison ../../../../src/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:1078 in __interceptor_pread64
      Shadow bytes around the buggy address:
        0x0ff47e571bb0: f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7
        0x0ff47e571bc0: f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7
        0x0ff47e571bd0: f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7
        0x0ff47e571be0: f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7
        0x0ff47e571bf0: f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7
      =>0x0ff47e571c00:[f7]f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7
        0x0ff47e571c10: f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7
        0x0ff47e571c20: f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7
        0x0ff47e571c30: f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7
        0x0ff47e571c40: f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7
        0x0ff47e571c50: f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7
      Shadow byte legend (one shadow byte represents 8 application bytes):
        Addressable:           00
        Partially addressable: 01 02 03 04 05 06 07 
        Heap left redzone:       fa
        Freed heap region:       fd
        Stack left redzone:      f1
        Stack mid redzone:       f2
        Stack right redzone:     f3
        Stack after return:      f5
        Stack use after scope:   f8
        Global redzone:          f9
        Global init order:       f6
        Poisoned by user:        f7
        Container overflow:      fc
        Array cookie:            ac
        Intra object redzone:    bb
        ASan internal:           fe
        Left alloca redzone:     ca
        Right alloca redzone:    cb
      ==178226==ABORTING
      

      Cross-reference.

      Attachments

        Issue Links

          Activity

            People

              svoj Sergey Vojtovich
              svoj Sergey Vojtovich
              Votes:
              0 Vote for this issue
              Watchers:
              4 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.