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

main.bootstrap fails with ASAN unknown-crash in mysql_rm_tmp_tables when run with --parallel

    Details

      Description

      http://buildbot.askmonty.org/buildbot/builders/kvm-asan/builds/809

      10.2 b4a7bde7

      main.bootstrap                           w2 [ fail ]
              Test ended at 2019-04-05 21:09:06
       
      CURRENT_TEST: main.bootstrap
      mysqltest: At line 18: exec of '/home/buildbot/buildbot/build/mariadb-10.2.24/sql/mysqld --no-defaults --disable-getopt-prefix-matching --bootstrap --basedir=/home/buildbot/buildbot/build/mariadb-10.2.24 --datadir=/dev/shm/var/install.db --plugin-dir=/dev/shm/var/plugins --default-storage-engine=myisam --loose-skip-plugin-aria --loose-skip-plugin-feedback --loose-skip-plugin-innodb --loose-skip-plugin-innodb-buffer-page --loose-skip-plugin-innodb-buffer-page-lru --loose-skip-plugin-innodb-buffer-pool-stats --loose-skip-plugin-innodb-cmp --loose-skip-plugin-innodb-cmp-per-index --loose-skip-plugin-innodb-cmp-per-index-reset --loose-skip-plugin-innodb-cmp-reset --loose-skip-plugin-innodb-cmpmem --loose-skip-plugin-innodb-cmpmem-reset --loose-skip-plugin-innodb-ft-being-deleted --loose-skip-plugin-innodb-ft-config --loose-skip-plugin-innodb-ft-default-stopword --loose-skip-plugin-innodb-ft-deleted --loose-skip-plugin-innodb-ft-index-cache --loose-skip-plugin-innodb-ft-index-table --loose-skip-plugin-innodb-lock-waits --loose-skip-plugin-innodb-locks --loose-skip-plugin-innodb-metrics --loose-skip-plugin-innodb-mutexes --loose-skip-plugin-innodb-sys-columns --loose-skip-plugin-innodb-sys-datafiles --loose-skip-plugin-innodb-sys-fields --loose-skip-plugin-innodb-sys-foreign --loose-skip-plugin-innodb-sys-foreign-cols --loose-skip-plugin-innodb-sys-indexes --loose-skip-plugin-innodb-sys-semaphore-waits --loose-skip-plugin-innodb-sys-tables --loose-skip-plugin-innodb-sys-tablespaces --loose-skip-plugin-innodb-sys-tablestats --loose-skip-plugin-innodb-sys-virtual --loose-skip-plugin-innodb-tablespaces-encryption --loose-skip-plugin-innodb-tablespaces-scrubbing --loose-skip-plugin-innodb-trx --loose-skip-plugin-partition --loose-skip-plugin-sequence --loose-skip-plugin-user-variables --loose-innodb --loose-innodb-log-file-size=5M --disable-sync-frm --tmpdir=/dev/shm/var/tmp/ --core-file --console --lc-messages-dir=/home/buildbot/buildbot/build/mariadb-10.2.24/sql/share/ --character-sets-dir=/home/buildbot/buildbot/build/mariadb-10.2.24/sql/share/charsets --datadir=/dev/shm/var/2/mysqld.1/data/ --default-storage-engine=MyISAM --loose-skip-innodb < /dev/shm/var/2/tmp/bootstrap_test.sql >> /dev/shm/var/2/tmp/bootstrap.log 2>&1' failed, error: 34304, status: 134, errno: 2
      Output from before failure:
      drop table if exists t1;
       
       
       
      The result from queries just before the failure was:
      drop table if exists t1;
      

      Not reproducible locally for me, but reproducible on buildbot VMs when the test is run with --parallel, even although it's the only test:

      10.4 eb872ceb

      perl ./mtr main.bootstrap --parallel=2
       
      ==841==ERROR: AddressSanitizer: unknown-crash on address 0x62d00001e48a at pc 0x7f8f2e4826ff bp 0x7ffd9aade800 sp 0x7ffd9aaddfb0
      READ of size 4 at 0x62d00001e48a thread T0
          #0 0x7f8f2e4826fe  (/usr/lib/x86_64-linux-gnu/libasan.so.3+0x8d6fe)
          #1 0x55f2bb986661 in mysql_rm_tmp_tables() /home/buildbot/10.4/sql/sql_base.cc:8793
          #2 0x55f2bb834a70 in mysqld_main(int, char**) /home/buildbot/10.4/sql/mysqld.cc:5741
          #3 0x55f2bb81f7cf in main /home/buildbot/10.4/sql/main.cc:25
          #4 0x7f8f2c2522b0 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x202b0)
          #5 0x55f2bb81f6a9 in _start (/home/buildbot/10.4/sql/mysqld+0xee86a9)
       
      0x62d00001e48a is located 138 bytes inside of 32908-byte region [0x62d00001e400,0x62d00002648c)
      allocated by thread T0 here:
          #0 0x7f8f2e4b6d28 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.3+0xc1d28)
          #1 0x55f2bd2f82f3 in sf_malloc /home/buildbot/10.4/mysys/safemalloc.c:118
          #2 0x55f2bd2ca47d in my_malloc /home/buildbot/10.4/mysys/my_malloc.c:101
          #3 0x55f2bd2a97a0 in init_alloc_root /home/buildbot/10.4/mysys/my_alloc.c:81
          #4 0x55f2bd2c8de6 in my_dir /home/buildbot/10.4/mysys/my_lib.c:135
          #5 0x55f2bb98656d in mysql_rm_tmp_tables() /home/buildbot/10.4/sql/sql_base.cc:8784
          #6 0x55f2bb834a70 in mysqld_main(int, char**) /home/buildbot/10.4/sql/mysqld.cc:5741
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                midenok Aleksey Midenkov
                Reporter:
                elenst Elena Stepanova
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: