[MDEV-4566] MariaDB crashed when using thread pool Created: 2013-05-23 Updated: 2013-05-27 Resolved: 2013-05-23 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 10.0.2 |
| Fix Version/s: | 10.0.3 |
| Type: | Bug | Priority: | Major |
| Reporter: | Louis Hust | Assignee: | Vladislav Vaintroub |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | threadpool | ||
| Environment: |
ubuntu 12.04 (64bit) , 10.0.2-MariaDB-debug |
||
| Attachments: |
|
| 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: 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] [How to fix] |
| Comments |
| Comment by Vladislav Vaintroub [ 2013-05-23 ] |
|
Reproducible for sleeps longer than 5 seconds sql/threadpool_unix.cc:1271(tp_wait_begin(THD*, int))[0x7aeb56] |
| Comment by Louis Hust [ 2013-05-23 ] |
|
Yes, in the patch i commited, i just remove the tp_wait_begin and tp_wait_end. Although this works, but it can not affect |
| Comment by Louis Hust [ 2013-05-23 ] |
|
@Vladislav Vaintroub hi Vladislav Vaintroub, I see that you fixed the bug, i want to know the patch have been comitted to the 10.0 develop source tree? Or need be reviewed by |
| Comment by Vladislav Vaintroub [ 2013-05-23 ] |
|
It is in the 10.0 tree http://bazaar.launchpad.net/~maria-captains/maria/10.0/revision/3752 |
| Comment by Louis Hust [ 2013-05-24 ] |
|
@Vladislav Vaintroub Thanks for your reply. |