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

Valgrind warnings (Invalid read) or crash on server shutdown with TokuDB

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Won't Fix
    • 5.5, 10.0, 10.1
    • N/A
    • OTHER
    • Debian Wheezy 64bit libjemalloc 3.0.0-3 cmake . -DCMAKE_BUILD_TYPE=Debug

    Description

      perl ./mtr 1st --mysqld=--plugin-load=ha_tokudb --valgrind-mysqld

      Stack trace from 5.5 revno 4380

      ==23122== Thread 19:
      ==23122== Invalid read of size 8
      ==23122==    at 0x5673851: free (in /usr/lib/x86_64-linux-gnu/libjemalloc.so.1)
      ==23122==    by 0x4010D38: _dl_deallocate_tls (dl-tls.c:481)
      ==23122==    by 0x4E3792C: __free_stacks (allocatestack.c:278)
      ==23122==    by 0x4E37A38: queue_stack (allocatestack.c:306)
      ==23122==    by 0x4E37A38: __deallocate_stack (allocatestack.c:765)
      ==23122==    by 0x4E38E3C: pthread_join (pthread_join.c:110)
      ==23122==    by 0xB54EB9F: toku_pthread_join(unsigned long, void**) (toku_pthread.h:397)
      ==23122==    by 0xB54F05B: toku_kibbutz_destroy(kibbutz*) (kibbutz.cc:235)
      ==23122==    by 0xB4C03BE: toku_cachetable_close(cachetable**) (cachetable.cc:2534)
      ==23122==    by 0xB498A9D: env_close(__toku_db_env*, unsigned int) (ydb.cc:1166)
      ==23122==    by 0xB48AD84: tokudb_end(handlerton*, ha_panic_function) (hatoku_hton.cc:663)
      ==23122==    by 0x7E8EEE: ha_finalize_handlerton(st_plugin_int*) (handler.cc:417)
      ==23122==    by 0x6468FF: plugin_deinitialize(st_plugin_int*, bool) (sql_plugin.cc:1165)
      ==23122==    by 0x646D03: reap_plugins() (sql_plugin.cc:1242)
      ==23122==    by 0x648904: plugin_shutdown() (sql_plugin.cc:1918)
      ==23122==    by 0x586833: clean_up(bool) (mysqld.cc:1823)
      ==23122==    by 0x58661D: unireg_end() (mysqld.cc:1735)
      ==23122==  Address 0xc000000 is not stack'd, malloc'd or (recently) free'd
      ==23122== Invalid read of size 8
      ==23122==    at 0x5691320: ??? (in /usr/lib/x86_64-linux-gnu/libjemalloc.so.1)
      ==23122==    by 0x569193B: ??? (in /usr/lib/x86_64-linux-gnu/libjemalloc.so.1)
      ==23122==    by 0x5691D42: ??? (in /usr/lib/x86_64-linux-gnu/libjemalloc.so.1)
      ==23122==    by 0x4E37138: __nptl_deallocate_tsd (pthread_create.c:155)
      ==23122==    by 0x4E37B5D: start_thread (pthread_create.c:311)
      ==23122==    by 0x6BBD20C: clone (clone.S:112)
      ==23122==  Address 0xc000000 is not stack'd, malloc'd or (recently) free'd
      ==23122== Invalid read of size 8
      ==23122==    at 0x5691292: ??? (in /usr/lib/x86_64-linux-gnu/libjemalloc.so.1)
      ==23122==    by 0x569193B: ??? (in /usr/lib/x86_64-linux-gnu/libjemalloc.so.1)
      ==23122==    by 0x5691D42: ??? (in /usr/lib/x86_64-linux-gnu/libjemalloc.so.1)
      ==23122==    by 0x4E37138: __nptl_deallocate_tsd (pthread_create.c:155)
      ==23122==    by 0x4E37B5D: start_thread (pthread_create.c:311)
      ==23122==    by 0x6BBD20C: clone (clone.S:112)

      Attachments

        Activity

          People

            serg Sergei Golubchik
            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.