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

MariaDB crashes with TokuDB and ANALYZE TABLE in background.

    XMLWordPrintable

    Details

      Description

      Hi,

      I've enabled the ANALYZE TABLE background task for TokuDB :

      SET GLOBAL tokudb_analyze_in_background=ON;
      

      Then I ran a mysqlcheck -a -A.

      And to check the ANALYZE TABLE task status, I use :

      SELECT * FROM INFORMATION_SCHEMA.TOKUDB_BACKGROUND_JOB_STATUS;
      

      This command crashes MariaDB :

      MariaDB [(none)]> SELECT * FROM INFORMATION_SCHEMA.TOKUDB_BACKGROUND_JOB_STATUS;
      *** buffer overflow detected ***: /usr/sbin/mysqld terminated
      ======= Backtrace: =========
      /lib/x86_64-linux-gnu/libc.so.6(+0x7329f)[0x7f91bb70329f]
      /lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x5c)[0x7f91bb79abbc]
      /lib/x86_64-linux-gnu/libc.so.6(+0x109a90)[0x7f91bb799a90]
      /lib/x86_64-linux-gnu/libc.so.6(+0x10ab07)[0x7f91bb79ab07]
      /usr/sbin/mysqld(my_addr_resolve+0x48)[0x7f91be41f3a8]
      /usr/sbin/mysqld(my_print_stacktrace+0x1c2)[0x7f91be40ba92]
      /usr/sbin/mysqld(handle_fatal_signal+0x2d5)[0x7f91bdf32e75]
      /lib/x86_64-linux-gnu/libpthread.so.0(+0x10330)[0x7f91bc273330]
      /lib/x86_64-linux-gnu/libc.so.6(_IO_vfprintf+0x1d03)[0x7f91bb6db943]
      /lib/x86_64-linux-gnu/libc.so.6(__vsprintf_chk+0x84)[0x7f91bb799024]
      /lib/x86_64-linux-gnu/libc.so.6(__sprintf_chk+0x7d)[0x7f91bb798f7d]
      /usr/lib/mysql/plugin/ha_tokudb.so(_ZN6tokudb7analyze10standard_t18get_analyze_statusEPc+0x124)[0x7f91b4c9fc74]
      /usr/lib/mysql/plugin/ha_tokudb.so(_ZNK6tokudb10background13job_manager_t12iterate_jobsEPFvmPKcS3_S3_S3_S3_bllPvES4_+0xfa)[0x7f91b4cc88ea]
      /usr/lib/mysql/plugin/ha_tokudb.so(_ZN6tokudb18information_schema28report_background_job_statusEP5TABLEP3THD+0x2a)[0x7f91b4ccc4ca]
      /usr/lib/mysql/plugin/ha_tokudb.so(_ZN6tokudb18information_schema32background_job_status_fill_tableEP3THDP10TABLE_LISTP4Item+0x13b)[0x7f91b4ccc60b]
      /usr/sbin/mysqld(_Z24get_schema_tables_resultP4JOIN23enum_schema_table_state+0x28e)[0x7f91bde226be]
      /usr/sbin/mysqld(_ZN4JOIN10exec_innerEv+0x6bd)[0x7f91bde08c3d]
      /usr/sbin/mysqld(_ZN4JOIN4execEv+0x54)[0x7f91bde0b0c4]
      /usr/sbin/mysqld(_Z12mysql_selectP3THDPPP4ItemP10TABLE_LISTjR4ListIS1_ES2_jP8st_orderSB_S2_SB_yP13select_resultP18st_select_lex_unitP13st_select_lex+0x112)[0x7f91bde07782]
      /usr/sbin/mysqld(_Z13handle_selectP3THDP3LEXP13select_resultm+0x245)[0x7f91bde08255]
      /usr/sbin/mysqld(+0x428291)[0x7f91bddaa291]
      /usr/sbin/mysqld(_Z21mysql_execute_commandP3THD+0x61b9)[0x7f91bddb60c9]
      /usr/sbin/mysqld(_Z11mysql_parseP3THDPcjP12Parser_state+0x26d)[0x7f91bddb973d]
      /usr/sbin/mysqld(_Z16dispatch_command19enum_server_commandP3THDPcj+0x2460)[0x7f91bddbca80]
      /usr/sbin/mysqld(_Z10do_commandP3THD+0x169)[0x7f91bddbd239]
      /usr/sbin/mysqld(_Z24do_handle_one_connectionP3THD+0x18a)[0x7f91bde8189a]
      /usr/sbin/mysqld(handle_one_connection+0x40)[0x7f91bde81a70]
      /lib/x86_64-linux-gnu/libpthread.so.0(+0x8184)[0x7f91bc26b184]
      /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d)[0x7f91bb78a37d]
      

      Thanks and regards,
      Jocelyn Fournier

        Attachments

        1. dump.sql
          309 kB
        2. my.cnf
          2 kB

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            joce jocelyn fournier
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: