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

innodb.innodb_simulate_comp_failures fails in buildbot with AddressSanitizer: unknown-crash

    Details

      Description

      http://buildbot.askmonty.org/buildbot/builders/kvm-fulltest-big/builds/2403/steps/mtr_nm/logs/stdio

      bb-10.0-release c4f97d3cfa46a7f1

      ==11190==ERROR: AddressSanitizer: unknown-crash on address 0x6250001c2319 at pc 0x00000140ad32 bp 0x7f3e062fa6e0 sp 0x7f3e062fa6d0
      READ of size 4 at 0x6250001c2319 thread T15
          #0 0x140ad31 in mach_read_from_4 /home/buildbot/buildbot/build/mariadb-10.0.38/storage/xtradb/include/mach0data.ic:185
          #1 0x140ad31 in mach_read_compressed /home/buildbot/buildbot/build/mariadb-10.0.38/storage/xtradb/include/mach0data.ic:274
          #2 0x140ad31 in trx_undo_rec_get_col_val /home/buildbot/buildbot/build/mariadb-10.0.38/storage/xtradb/trx/trx0rec.cc:332
          #3 0x140ad31 in trx_undo_rec_get_partial_row(unsigned char*, dict_index_t*, upd_t const*, dtuple_t**, unsigned long, mem_block_info_t*) /home/buildbot/buildbot/build/mariadb-10.0.38/storage/xtradb/trx/trx0rec.cc:1131
          #4 0x139bcf2 in row_purge_parse_undo_rec /home/buildbot/buildbot/build/mariadb-10.0.38/storage/xtradb/row/row0purge.cc:828
          #5 0x139bcf2 in row_purge /home/buildbot/buildbot/build/mariadb-10.0.38/storage/xtradb/row/row0purge.cc:913
          #6 0x139bcf2 in row_purge_step(que_thr_t*) /home/buildbot/buildbot/build/mariadb-10.0.38/storage/xtradb/row/row0purge.cc:996
          #7 0x130c25f in que_thr_step /home/buildbot/buildbot/build/mariadb-10.0.38/storage/xtradb/que/que0que.cc:1089
          #8 0x130c25f in que_run_threads_low /home/buildbot/buildbot/build/mariadb-10.0.38/storage/xtradb/que/que0que.cc:1151
          #9 0x130c25f in que_run_threads(que_thr_t*) /home/buildbot/buildbot/build/mariadb-10.0.38/storage/xtradb/que/que0que.cc:1192
          #10 0x14009e4 in trx_purge(unsigned long, unsigned long, bool) /home/buildbot/buildbot/build/mariadb-10.0.38/storage/xtradb/trx/trx0purge.cc:1233
          #11 0x13dec74 in srv_do_purge /home/buildbot/buildbot/build/mariadb-10.0.38/storage/xtradb/srv/srv0srv.cc:3326
          #12 0x13dec74 in srv_purge_coordinator_thread /home/buildbot/buildbot/build/mariadb-10.0.38/storage/xtradb/srv/srv0srv.cc:3476
          #13 0x7f3e13d156b9 in start_thread (/lib/x86_64-linux-gnu/libpthread.so.0+0x76b9)
          #14 0x7f3e12b0f82c in clone (/lib/x86_64-linux-gnu/libc.so.6+0x10682c)
       
      0x6250001c2319 is located 537 bytes inside of 8104-byte region [0x6250001c2100,0x6250001c40a8)
      allocated by thread T15 here:
          #0 0x7f3e143fd602 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98602)
          #1 0x1293f8f in mem_area_alloc(unsigned long*, mem_pool_t*) /home/buildbot/buildbot/build/mariadb-10.0.38/storage/xtradb/mem/mem0pool.cc:382
          #2 0x12911de in mem_heap_create_block_func(mem_block_info_t*, unsigned long, unsigned long) /home/buildbot/buildbot/build/mariadb-10.0.38/storage/xtradb/mem/mem0mem.cc:337
          #3 0x12915d3 in mem_heap_add_block(mem_block_info_t*, unsigned long) /home/buildbot/buildbot/build/mariadb-10.0.38/storage/xtradb/mem/mem0mem.cc:461
          #4 0x12915d3 in mem_heap_alloc /home/buildbot/buildbot/build/mariadb-10.0.38/storage/xtradb/include/mem0mem.ic:199
          #5 0x12915d3 in mem_heap_dup(mem_block_info_t*, void const*, unsigned long) /home/buildbot/buildbot/build/mariadb-10.0.38/storage/xtradb/mem/mem0mem.cc:126
          #6 0x13fb71b in trx_undo_rec_copy /home/buildbot/buildbot/build/mariadb-10.0.38/storage/xtradb/include/trx0rec.ic:111
          #7 0x13fb71b in trx_purge_get_next_rec /home/buildbot/buildbot/build/mariadb-10.0.38/storage/xtradb/trx/trx0purge.cc:890
          #8 0x13ff904 in trx_purge_fetch_next_rec /home/buildbot/buildbot/build/mariadb-10.0.38/storage/xtradb/trx/trx0purge.cc:941
          #9 0x13ff904 in trx_purge_attach_undo_recs /home/buildbot/buildbot/build/mariadb-10.0.38/storage/xtradb/trx/trx0purge.cc:1019
          #10 0x13ff904 in trx_purge(unsigned long, unsigned long, bool) /home/buildbot/buildbot/build/mariadb-10.0.38/storage/xtradb/trx/trx0purge.cc:1202
          #11 0x13dec74 in srv_do_purge /home/buildbot/buildbot/build/mariadb-10.0.38/storage/xtradb/srv/srv0srv.cc:3326
          #12 0x13dec74 in srv_purge_coordinator_thread /home/buildbot/buildbot/build/mariadb-10.0.38/storage/xtradb/srv/srv0srv.cc:3476
          #13 0x7f3e13d156b9 in start_thread (/lib/x86_64-linux-gnu/libpthread.so.0+0x76b9)
       
      Thread T15 created by T0 here:
          #0 0x7f3e1439b253 in pthread_create (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x36253)
          #1 0x12b69da in os_thread_create_func(void* (*)(void*), void*, unsigned long*) /home/buildbot/buildbot/build/mariadb-10.0.38/storage/xtradb/os/os0thread.cc:193
          #2 0x13e7034 in innobase_start_or_create_for_mysql() /home/buildbot/buildbot/build/mariadb-10.0.38/storage/xtradb/srv/srv0start.cc:2929
          #3 0x119d54a in innobase_init /home/buildbot/buildbot/build/mariadb-10.0.38/storage/xtradb/handler/ha_innodb.cc:4086
          #4 0xb38bcb in ha_initialize_handlerton(st_plugin_int*) /home/buildbot/buildbot/build/mariadb-10.0.38/sql/handler.cc:509
          #5 0x72d2f4 in plugin_initialize /home/buildbot/buildbot/build/mariadb-10.0.38/sql/sql_plugin.cc:1388
          #6 0x72e47f in plugin_init(int*, char**, int) /home/buildbot/buildbot/build/mariadb-10.0.38/sql/sql_plugin.cc:1610
          #7 0x567e45 in init_server_components /home/buildbot/buildbot/build/mariadb-10.0.38/sql/mysqld.cc:4778
          #8 0x571235 in mysqld_main(int, char**) /home/buildbot/buildbot/build/mariadb-10.0.38/sql/mysqld.cc:5386
          #9 0x7f3e12a2982f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
       
      SUMMARY: AddressSanitizer: unknown-crash /home/buildbot/buildbot/build/mariadb-10.0.38/storage/xtradb/include/mach0data.ic:185 mach_read_from_4
      Shadow bytes around the buggy address:
        0x0c4a80030410: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
        0x0c4a80030420: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
        0x0c4a80030430: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 04 00
        0x0c4a80030440: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
        0x0c4a80030450: 00 00 00 00 00 00 00 00 00 00 00 00 03 00 00 00
      =>0x0c4a80030460: 00 00 00[04]00 00 00 00 00 00 00 00 00 06 00 00
        0x0c4a80030470: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
        0x0c4a80030480: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
        0x0c4a80030490: 00 07 00 00 00 00 00 00 00 00 00 06 00 00 00 00
        0x0c4a800304a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
        0x0c4a800304b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 07
      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
        Heap right redzone:      fb
        Freed heap region:       fd
        Stack left redzone:      f1
        Stack mid redzone:       f2
        Stack right redzone:     f3
        Stack partial redzone:   f4
        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
      ==11190==ABORTING
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                marko Marko Mäkelä
                Reporter:
                elenst Elena Stepanova
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: