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

Embedded server : end_embedded_server causes SEGFAULT

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Not a Bug
    • 5.5.36, 5.5.39
    • N/A
    • OTHER
    • Linux linux-yxkl.site 3.7.10-1.40-desktop #1 SMP PREEMPT Thu Jul 10 11:22:12 UTC 2014 (9b06319) x86_64 x86_64 x86_64 GNU/Linux

    Description

      When MaxScale calls mysql_server_end it ends up segmentation fault through the call stack below. This only happens with static library.

      With dynamic library calling mysql_server_end succeeds but the following message is printed to stderr:

      Error in my_thread_global_end(): 7 threads didn't exit

      The above mentioned error is different from the crash and can be fixed by ensuring that mysql_thread_end is called for every thread which called mysql_thread_init earlier.
      –

      (gdb) bt
      #0  unlink (this=<optimized out>) at /home/buildbot/buildbot/build/sql/sql_list.h:638
      #1  get (this=0x11debe0 <key_caches>) at /home/buildbot/buildbot/build/sql/sql_list.h:699
      #2  get (this=0x11debe0 <key_caches>) at /home/buildbot/buildbot/build/sql/sql_list.h:762
      #3  NAMED_ILIST::delete_elements (this=0x11debe0 <key_caches>, free_element=0x6acac0 <free_key_cache(char const*, st_key_cache*)>) at /home/buildbot/buildbot/build/sql/keycaches.cc:73
      #4  0x000000000059e7e8 in clean_up (print_message=<optimized out>) at /home/buildbot/buildbot/build/libmysqld/../sql/mysqld.cc:1830
      #5  0x00000000005a2529 in clean_up (print_message=false) at /home/buildbot/buildbot/build/libmysqld/../sql/mysqld.cc:1780
      #6  end_embedded_server () at /home/buildbot/buildbot/build/libmysqld/lib_sql.cc:627
      #7  0x00000000005a7bfc in mysql_server_end () at /home/buildbot/buildbot/build/libmysql/libmysql.c:210
      #8  0x0000000000579b51 in libmysqld_done () at gateway.c:323
      #9  0x00007f54b48cdf61 in __run_exit_handlers () from /lib64/libc.so.6
      #10 0x00007f54b48cdfe5 in exit () from /lib64/libc.so.6
      #11 0x00007f54b48b7a1c in __libc_start_main () from /lib64/libc.so.6
      #12 0x0000000000577f0d in _start () at ../sysdeps/x86_64/start.S:123

      Attachments

        Activity

          People

            serg Sergei Golubchik
            vilho Vilho Raatikka
            Votes:
            0 Vote for this issue
            Watchers:
            3 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.