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

innodb.innodb_bulk_create_index fails in buildbot with ASAN unknown-crash in trx_undo_rec_get_pars

    XMLWordPrintable

Details

    Description

      http://buildbot.askmonty.org/buildbot/builders/kvm-fulltest-big/builds/2459

      innodb.innodb_bulk_create_index '16k,innodb' w1 [ fail ]
              Test ended at 2019-02-18 08:22:12
       
      CURRENT_TEST: innodb.innodb_bulk_create_index
      mysqltest: In included file "./suite/innodb/include/innodb_bulk_create_index.inc": 
      included from /mnt/buildbot/build/mariadb-10.3.13/mysql-test/suite/innodb/t/innodb_bulk_create_index.test at line 23:
      At line 118: query '/* Drop column. */
      ALTER TABLE t1 DROP COLUMN content' failed: 2013: Lost connection to MySQL server during query
       
      The result from queries just before the failure was:
      < snip >
      class	id	title	content
      10	10	a10	NULL
      SELECT * FROM t1 WHERE id = 5000;
      class	id	title	content
      5000	5000	a5000	NULL
      SELECT * FROM t1 WHERE title = 'a5000';
      class	id	title	content
      5000	5000	a5000	NULL
      SELECT * FROM t1 WHERE id = 10000;
      class	id	title	content
      10000	10000	a10000	NULL
      SELECT * FROM t1 WHERE title = 'a10000';
      class	id	title	content
      10000	10000	a10000	NULL
      SELECT * FROM t1 WHERE id = 10010;
      class	id	title	content
      SELECT * FROM t1 WHERE title = 'a10010';
      class	id	title	content
      /* Drop column. */
      ALTER TABLE t1 DROP COLUMN content;
       
      More results from queries before failure can be found in /mnt/buildbot/build/mariadb-10.3.13/mysql-test/var/1/log/innodb_bulk_create_index.log
       
       
      Server [mysqld.1 - pid: 13031, winpid: 13031, exit: 256] failed during test run
      Server log from this test:
      ----------SERVER LOG START-----------
      ...
      =================================================================
      ==13032==ERROR: AddressSanitizer: unknown-crash on address 0x61300000bf84 at pc 0x55a9e14bda2f bp 0x7f6d2a03b370 sp 0x7f6d2a03b360
      READ of size 4 at 0x61300000bf84 thread T19
          #0 0x55a9e14bda2e in trx_undo_rec_get_pars(unsigned char*, unsigned long*, unsigned long*, bool*, unsigned long*, unsigned long*) /home/buildbot/buildbot/build/mariadb-10.3.13/storage/innobase/trx/trx0rec.cc:577
          #1 0x55a9e13f6557 in row_purge_parse_undo_rec /home/buildbot/buildbot/build/mariadb-10.3.13/storage/innobase/row/row0purge.cc:1046
          #2 0x55a9e13f6557 in row_purge /home/buildbot/buildbot/build/mariadb-10.3.13/storage/innobase/row/row0purge.cc:1254
          #3 0x55a9e13f6557 in row_purge_step(que_thr_t*) /home/buildbot/buildbot/build/mariadb-10.3.13/storage/innobase/row/row0purge.cc:1343
          #4 0x55a9e134ad9a in que_thr_step /home/buildbot/buildbot/build/mariadb-10.3.13/storage/innobase/que/que0que.cc:1042
          #5 0x55a9e134ad9a in que_run_threads_low /home/buildbot/buildbot/build/mariadb-10.3.13/storage/innobase/que/que0que.cc:1104
          #6 0x55a9e134ad9a in que_run_threads(que_thr_t*) /home/buildbot/buildbot/build/mariadb-10.3.13/storage/innobase/que/que0que.cc:1144
          #7 0x55a9e1464998 in srv_task_execute /home/buildbot/buildbot/build/mariadb-10.3.13/storage/innobase/srv/srv0srv.cc:2449
          #8 0x55a9e1464998 in srv_worker_thread /home/buildbot/buildbot/build/mariadb-10.3.13/storage/innobase/srv/srv0srv.cc:2497
          #9 0x7f6d3cf306b9 in start_thread (/lib/x86_64-linux-gnu/libpthread.so.0+0x76b9)
          #10 0x7f6d3c5db82c in clone (/lib/x86_64-linux-gnu/libc.so.6+0x10682c)
       
      0x61300000bf84 is located 132 bytes inside of 368-byte region [0x61300000bf00,0x61300000c070)
      allocated by thread T0 here:
          #0 0x7f6d3e2ec602 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98602)
          #1 0x55a9e12c03de in mem_heap_create_block_func(mem_block_info_t*, unsigned long, unsigned long) /home/buildbot/buildbot/build/mariadb-10.3.13/storage/innobase/mem/mem0mem.cc:269
          #2 0x55a9e13ef7a5 in mem_heap_create_func /home/buildbot/buildbot/build/mariadb-10.3.13/storage/innobase/include/mem0mem.ic:484
          #3 0x55a9e13ef7a5 in row_purge_node_create(que_thr_t*, mem_block_info_t*) /home/buildbot/buildbot/build/mariadb-10.3.13/storage/innobase/row/row0purge.cc:80
          #4 0x55a9e14a34e6 in purge_graph_build /home/buildbot/buildbot/build/mariadb-10.3.13/storage/innobase/trx/trx0purge.cc:151
          #5 0x55a9e14a34e6 in purge_sys_t::create() /home/buildbot/buildbot/build/mariadb-10.3.13/storage/innobase/trx/trx0purge.cc:166
          #6 0x55a9e1503a9b in trx_lists_init_at_db_start() /home/buildbot/buildbot/build/mariadb-10.3.13/storage/innobase/trx/trx0trx.cc:705
          #7 0x55a9e147494a in srv_start(bool) /home/buildbot/buildbot/build/mariadb-10.3.13/storage/innobase/srv/srv0start.cc:1973
          #8 0x55a9e11ac571 in innodb_init /home/buildbot/buildbot/build/mariadb-10.3.13/storage/innobase/handler/ha_innodb.cc:4266
          #9 0x55a9e0acbd3c in ha_initialize_handlerton(st_plugin_int*) /home/buildbot/buildbot/build/mariadb-10.3.13/sql/handler.cc:523
          #10 0x55a9e05a1be5 in plugin_initialize /home/buildbot/buildbot/build/mariadb-10.3.13/sql/sql_plugin.cc:1432
          #11 0x55a9e05a310c in plugin_init(int*, char**, int) /home/buildbot/buildbot/build/mariadb-10.3.13/sql/sql_plugin.cc:1714
          #12 0x55a9e035912c in init_server_components /home/buildbot/buildbot/build/mariadb-10.3.13/sql/mysqld.cc:5385
          #13 0x55a9e0364919 in mysqld_main(int, char**) /home/buildbot/buildbot/build/mariadb-10.3.13/sql/mysqld.cc:5998
          #14 0x7f6d3c4f582f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
       
      Thread T19 created by T0 here:
          #0 0x7f6d3e28a253 in pthread_create (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x36253)
          #1 0x55a9e12ef2b7 in os_thread_create_func(void* (*)(void*), void*, unsigned long*) /home/buildbot/buildbot/build/mariadb-10.3.13/storage/innobase/os/os0thread.cc:132
          #2 0x55a9e1473de3 in srv_start(bool) /home/buildbot/buildbot/build/mariadb-10.3.13/storage/innobase/srv/srv0start.cc:2418
          #3 0x55a9e11ac571 in innodb_init /home/buildbot/buildbot/build/mariadb-10.3.13/storage/innobase/handler/ha_innodb.cc:4266
          #4 0x55a9e0acbd3c in ha_initialize_handlerton(st_plugin_int*) /home/buildbot/buildbot/build/mariadb-10.3.13/sql/handler.cc:523
          #5 0x55a9e05a1be5 in plugin_initialize /home/buildbot/buildbot/build/mariadb-10.3.13/sql/sql_plugin.cc:1432
          #6 0x55a9e05a310c in plugin_init(int*, char**, int) /home/buildbot/buildbot/build/mariadb-10.3.13/sql/sql_plugin.cc:1714
          #7 0x55a9e035912c in init_server_components /home/buildbot/buildbot/build/mariadb-10.3.13/sql/mysqld.cc:5385
          #8 0x55a9e0364919 in mysqld_main(int, char**) /home/buildbot/buildbot/build/mariadb-10.3.13/sql/mysqld.cc:5998
          #9 0x7f6d3c4f582f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
       
      SUMMARY: AddressSanitizer: unknown-crash /home/buildbot/buildbot/build/mariadb-10.3.13/storage/innobase/trx/trx0rec.cc:577 trx_undo_rec_get_pars(unsigned char*, unsigned long*, unsigned long*, bool*, unsigned long*, unsigned long*)
      Shadow bytes around the buggy address:
        0x0c267fff97a0: fa fa fa fa fa fa fa fa 00 00 00 00 00 00 00 00
        0x0c267fff97b0: 00 00 00 00 00 00 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7
        0x0c267fff97c0: f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7
        0x0c267fff97d0: f7 f7 f7 f7 f7 f7 fa fa fa fa fa fa fa fa fa fa
        0x0c267fff97e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
      =>0x0c267fff97f0:[07]00 00 00 00 00 00 00 00 00 f7 f7 f7 f7 f7 f7
        0x0c267fff9800: f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 fa fa
        0x0c267fff9810: fa fa fa fa fa fa fa fa 00 00 00 00 00 00 00 00
        0x0c267fff9820: 00 00 00 00 00 00 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7
        0x0c267fff9830: f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7 f7
        0x0c267fff9840: f7 f7 f7 f7 f7 f7 fa fa fa fa fa fa fa fa fa fa
      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
      ==13032==ABORTING
      ----------SERVER LOG END-------------
      

      Attachments

        Issue Links

          Activity

            People

              marko Marko Mäkelä
              elenst Elena Stepanova
              Votes:
              0 Vote for this issue
              Watchers:
              2 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.