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

MariaDB 10.1 crash on `mysqld --verbose --help`

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 10.1(EOL)
    • 10.1.10
    • Plugins
    • None
    • Debian Jessie, Ubuntu Trusty, Ubuntu 15.10, Ubuntu 16.04
      x64 versions of above OSs are affected at least.
      Happens on host system and under Docker image
    • 10.1.10

    Description

      Initially discovered in Docker image: https://github.com/docker-library/mariadb/issues/29#issuecomment-152766835
      But now it happens to me on Ubuntu 16.04 x64 while MariaDB 10.1 server itself works fine, problem is only with `mysqld --verbose --help`.
      Output sample:

      root@45cb88e4727e:/# mysqld --verbose --help
      2015-10-31 19:57:51 140581341714368 [Note] Using unique option prefix 'myisam_recover' is error-prone and can break in the future. Please use the full name 'myisam-recover-options' instead.
      2015-10-31 19:57:51 140581341714368 [Note] Plugin 'FEEDBACK' is disabled.
      2015-10-31 19:57:51 140581341714368 [Warning] Could not open mysql.plugin table. Some options may be missing from the help text
      151031 19:57:51 [ERROR] mysqld got signal 11 ;
      This could be because you hit a bug. It is also possible that this binary
      or one of the libraries it was linked against is corrupt, improperly built,
      or misconfigured. This error can also be caused by malfunctioning hardware.
       
      To report this bug, see http://kb.askmonty.org/en/reporting-bugs
       
      We will try our best to scrape up some info that will hopefully help
      diagnose the problem, but since we have already crashed, 
      something is definitely wrong and this may fail.
       
      Server version: 10.1.8-MariaDB-1~jessie
      key_buffer_size=134217728
      read_buffer_size=2097152
      max_used_connections=0
      max_threads=102
      thread_count=0
      It is possible that mysqld could use up to 
      key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 759822 K  bytes of memory
      Hope that's ok; if not, decrease some variables in the equation.
       
      Thread pointer: 0x0x0
      Attempting backtrace. You can use the following information to find out
      where mysqld died. If you see no messages after this, something went
      terribly wrong...
      stack_bottom = 0x0 thread_stack 0x48000
      mysqld(my_print_stacktrace+0x2e)[0x562964b8ed0e]
      mysqld(handle_fatal_signal+0x34d)[0x5629646d46ad]
      /lib/x86_64-linux-gnu/libpthread.so.0(+0xf8d0)[0x7fdba4ad08d0]
      mysqld(_ZN7sys_varC2EP13sys_var_chainPKcS3_ili16get_opt_arg_type20enum_mysql_show_typexP8PolyLockNS_18binlog_status_enumEPFbPS_P3THDP7set_varEPFbS9_SB_13enum_var_typeES3_+0x10d)[0x5629644d0f2d]
      mysqld(_ZN17sys_var_pluginvarC1EP13sys_var_chainPKcP13st_plugin_intP16st_mysql_sys_var+0xa3)[0x562964561eb3]
      mysqld(+0x425162)[0x562964562162]
      mysqld(+0x425577)[0x562964562577]
      mysqld(_Z11plugin_initPiPPci+0x92a)[0x562964563d8a]
      mysqld(+0x3824af)[0x5629644bf4af]
      mysqld(_Z11mysqld_mainiPPc+0x95f)[0x5629644c477f]
      /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5)[0x7fdba2b82b45]
      mysqld(+0x37b2cd)[0x5629644b82cd]
      The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains
      information that should help you find out what is causing the crash.

      Attachments

        Activity

          I'm using packages from your repo

          nazar-pc Nazar Mokrynskyi added a comment - I'm using packages from your repo
          elenst Elena Stepanova added a comment - - edited

          Assertion failure on a debug build:

          Stack trace from 10.1 commit 3c0e9d31b3e6494931deb09f5c93b05a96df8471

          2015-11-27 16:39:10 140258871916384 [Warning] Could not open mysql.plugin table. Some options may be missing from the help text
          mysqld: 10.1/sql/sql_plugin.cc:3999: int test_plugin_options(MEM_ROOT*, st_plugin_int*, int*, char**): Assertion `tmp->nbackups == 0' failed.
           
          #3  <signal handler called>
          #4  0x00007f908dd9d165 in *__GI_raise (sig=<optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
          #5  0x00007f908dda03e0 in *__GI_abort () at abort.c:92
          #6  0x00007f908dd96311 in *__GI___assert_fail (assertion=0x7f909126631c "tmp->nbackups == 0", file=<optimized out>, line=3999, function=0x7f9091267160 "int test_plugin_options(MEM_ROOT*, st_plugin_int*, int*, char**)") at assert.c:81
          #7  0x00007f9090919c7a in test_plugin_options (tmp_root=0x7fff66e819d0, tmp=0x7f908d64e088, argc=0x7f9091c54870, argv=0x7f908d41e6a0) at 10.1/sql/sql_plugin.cc:3999
          #8  0x00007f9090912348 in plugin_initialize (tmp_root=0x7fff66e819d0, plugin=0x7f908d64e088, argc=0x7f9091c54870, argv=0x7f908d41e6a0, options_only=true) at 10.1/sql/sql_plugin.cc:1395
          #9  0x00007f9090912fda in plugin_init (argc=0x7f9091c54870, argv=0x7f908d41e6a0, flags=6) at 10.1/sql/sql_plugin.cc:1685
          #10 0x00007f9090832877 in init_server_components () at 10.1/sql/mysqld.cc:5207
          #11 0x00007f90908339bd in mysqld_main (argc=6, argv=0x7f908d41e6a0) at 10.1/sql/mysqld.cc:5807
          #12 0x00007f9090828e80 in main (argc=5, argv=0x7fff66e82758) at 10.1/sql/main.cc:25

          Docker or Ubuntu 16.04 are not needed.
          The problem is reproducible in a regular environment when two conditions are met together:

          • mysql.plugin table could not be opened (doesn't matter whether the datadir does not exists, of it exists but is empty, or only mysql.plugin is absent, or it has wrong permissions, etc.);
          • lc-messages-dir is provided to mysqld binary either via a cnf file or on a command line (otherwise execution terminates before it reaches the crash point).

          10.0 is not affected.
          The problem appeared in 10.1 some time between 10.1.2 and 10.1.4.

          elenst Elena Stepanova added a comment - - edited Assertion failure on a debug build: Stack trace from 10.1 commit 3c0e9d31b3e6494931deb09f5c93b05a96df8471 2015-11-27 16:39:10 140258871916384 [Warning] Could not open mysql.plugin table. Some options may be missing from the help text mysqld: 10.1/sql/sql_plugin.cc:3999: int test_plugin_options(MEM_ROOT*, st_plugin_int*, int*, char**): Assertion `tmp->nbackups == 0' failed.   #3 <signal handler called> #4 0x00007f908dd9d165 in *__GI_raise (sig=<optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 #5 0x00007f908dda03e0 in *__GI_abort () at abort.c:92 #6 0x00007f908dd96311 in *__GI___assert_fail (assertion=0x7f909126631c "tmp->nbackups == 0", file=<optimized out>, line=3999, function=0x7f9091267160 "int test_plugin_options(MEM_ROOT*, st_plugin_int*, int*, char**)") at assert.c:81 #7 0x00007f9090919c7a in test_plugin_options (tmp_root=0x7fff66e819d0, tmp=0x7f908d64e088, argc=0x7f9091c54870, argv=0x7f908d41e6a0) at 10.1/sql/sql_plugin.cc:3999 #8 0x00007f9090912348 in plugin_initialize (tmp_root=0x7fff66e819d0, plugin=0x7f908d64e088, argc=0x7f9091c54870, argv=0x7f908d41e6a0, options_only=true) at 10.1/sql/sql_plugin.cc:1395 #9 0x00007f9090912fda in plugin_init (argc=0x7f9091c54870, argv=0x7f908d41e6a0, flags=6) at 10.1/sql/sql_plugin.cc:1685 #10 0x00007f9090832877 in init_server_components () at 10.1/sql/mysqld.cc:5207 #11 0x00007f90908339bd in mysqld_main (argc=6, argv=0x7f908d41e6a0) at 10.1/sql/mysqld.cc:5807 #12 0x00007f9090828e80 in main (argc=5, argv=0x7fff66e82758) at 10.1/sql/main.cc:25 Docker or Ubuntu 16.04 are not needed. The problem is reproducible in a regular environment when two conditions are met together: mysql.plugin table could not be opened (doesn't matter whether the datadir does not exists, of it exists but is empty, or only mysql.plugin is absent, or it has wrong permissions, etc.); lc-messages-dir is provided to mysqld binary either via a cnf file or on a command line (otherwise execution terminates before it reaches the crash point). 10.0 is not affected. The problem appeared in 10.1 some time between 10.1.2 and 10.1.4.
          vipconsult Krasimir added a comment - - edited

          Is there any progress with this ?

          I am on hold for deploy few servers because of this bug. I hope it gets some attention soon.

          Thanks for your hard work!

          vipconsult Krasimir added a comment - - edited Is there any progress with this ? I am on hold for deploy few servers because of this bug. I hope it gets some attention soon. Thanks for your hard work!

          No progress yet, sorry. But you shouldn't expect any progress yet. As 10.1.9 is already out, this bug can not be fixed earlier than 10.1.10. Nobody is going to look at this bug until closer to the 10.1.10 release date. See http://mariadb.org/jira for the release schedule.

          serg Sergei Golubchik added a comment - No progress yet, sorry. But you shouldn't expect any progress yet. As 10.1.9 is already out, this bug can not be fixed earlier than 10.1.10. Nobody is going to look at this bug until closer to the 10.1.10 release date. See http://mariadb.org/jira for the release schedule.
          Trupti trupti mali added a comment -

          Hi,
          I too faced the similar crashing problem today. I was trying out mariadb asynchronous replication with latest mariadb 10.1.9 version. The moment I start the slave , i get it crashed.

          Trupti trupti mali added a comment - Hi, I too faced the similar crashing problem today. I was trying out mariadb asynchronous replication with latest mariadb 10.1.9 version. The moment I start the slave , i get it crashed.

          People

            serg Sergei Golubchik
            nazar-pc Nazar Mokrynskyi
            Votes:
            2 Vote for this issue
            Watchers:
            7 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.