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

MariaDB crashed when using thread pool

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 10.0.2
    • 10.0.3
    • None
    • ubuntu 12.04 (64bit) , 10.0.2-MariaDB-debug

    Description

      When using thread pool and execute 'select sleep(10);', the server crashed.

      [How to repeat]

      In the my.cnf, set thread_pool_handling=pool-of-threads

      Then connect to the server:
      MariaDB [(none)]> select sleep(10000);

      Then the server crashed with the information below:

      mysqld: /home/loushuai/src/mariadb/10.0/sql/threadpool_unix.cc:1283: void tp_wait_begin(THD*, int): Assertion `!connection->waiting' failed.

      Program received signal SIGABRT, Aborted.

      [Reason]
      repeat to enter the tp_wait_begin() in
      longlong Item_func_sleep::val_int() function in file sql/item_func.cc

      [How to fix]
      see the patch in attachment.

      Attachments

        Activity

          People

            wlad Vladislav Vaintroub
            louis hust Louis Hust
            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.