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

MariaDB crashed when using thread pool

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

          louis hust Louis Hust created issue -
          serg Sergei Golubchik made changes -
          Field Original Value New Value
          Assignee Vladislav Vaintroub [ wlad ]
          serg Sergei Golubchik made changes -
          Fix Version/s 10.0.3 [ 12900 ]
          wlad Vladislav Vaintroub made changes -
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Closed [ 6 ]
          serg Sergei Golubchik made changes -
          Workflow defaullt [ 27523 ] MariaDB v2 [ 45265 ]
          ratzpo Rasmus Johansson (Inactive) made changes -
          Workflow MariaDB v2 [ 45265 ] MariaDB v3 [ 65929 ]
          serg Sergei Golubchik made changes -
          Workflow MariaDB v3 [ 65929 ] MariaDB v4 [ 146728 ]

          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.