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

mysqltest crashes upon --enable_reconnect without an active connection

    XMLWordPrintable

Details

    Description

      --connect (con1,localhost,root,,)
      --disconnect con1
      --enable_reconnect
      

      main ce7ab467dbdfb5fc83a22bd53d923f7d0d1c6a3e

      mysqltest got signal 11
      read_command_buf (0x55623da15338): --enable_reconnect
       
      conn->name (0x55623da3f0a8): -closed_connection-
       
      Attempting backtrace...
      stack_bottom = 0x0 thread_stack 0x3c000
      mysys/stacktrace.c:216(my_print_stacktrace)[0x5562163e8f5e]
      bits/stdio2.h:79(signal_handler)[0x55621639c4fc]
      libc_sigaction.c:0(__restore_rt)[0x7f6aa585b050]
      libmariadb/mariadb_lib.c:3523(mysql_optionsv)[0x5562163b2584]
      client/mysqltest.cc:10761(main)[0x55621639b93b]
      x86/libc-start.c:74(__libc_start_call_main)[0x7f6aa584624a]
      csu/libc-start.c:128(call_init)[0x7f6aa5846305]
      /share8t/bld/main-rel/client//mariadb-test(_start+0x21)[0x55621639c221]
      Writing a core file...
      

      With ubsan:

      /data/bld/main-asan-ubsan/libmariadb/libmariadb/mariadb_lib.c:3523:29: runtime error: member access within null pointer of type 'struct MYSQL'
      mysqltest got signal 11
      read_command_buf (0x631000014818): --enable_reconnect
       
      conn->name (0x604000000ea8): -closed_connection-
       
      Attempting backtrace...
      stack_bottom = 0x0 thread_stack 0x3c000
      sanitizer_common/sanitizer_common_interceptors.inc:4277(__interceptor_backtrace.part.0)[0x7f0bc7e51f31]
      mysys/stacktrace.c:215(my_print_stacktrace)[0x556d9d9f66f1]
      client/mysqltest.cc:10086(dump_backtrace())[0x556d9d8acc34]
      client/mysqltest.cc:10102(signal_handler)[0x556d9d8acd96]
      libc_sigaction.c:0(__restore_rt)[0x7f0bc6a5b050]
      libmariadb/mariadb_lib.c:3523(mysql_optionsv)[0x556d9d908190]
      libmariadb/mariadb_lib.c:4149(mysql_options)[0x556d9d90f8f9]
      client/mysqltest.cc:10759(main)[0x556d9d8ed1cd]
      x86/libc-start.c:74(__libc_start_call_main)[0x7f0bc6a4624a]
      csu/libc-start.c:128(call_init)[0x7f0bc6a46305]
      /share8t/bld/main-asan-ubsan/client//mariadb-test(_start+0x21)[0x556d9d8ab3a1]
      Writing a core file...
      

      Attachments

        Activity

          People

            sanja Oleksandr Byelkin
            elenst Elena Stepanova
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.