| Bug #43529 | Adding DBUG_SYNC_POINT cause DROP TABLE and KILL dead lock | ||
|---|---|---|---|
| Submitted: | 10 Mar 2009 8:08 | Modified: | 3 Jun 2009 6:58 |
| Reporter: | Zhenxing He | Email Updates: | |
| Status: | Won't fix | Impact on me: | |
| Category: | MySQL Server | Severity: | S3 (Non-critical) |
| Version: | 5.0 | OS: | Any |
| Assigned to: | Christoffer Hall | CPU Architecture: | Any |
| Tags: | debug | ||
[10 Mar 2009 8:08]
Zhenxing He
[10 Mar 2009 8:15]
Zhenxing He
Hmm, rewrite the example, (hope it works this time):
thd1: DROP TABLE thd2: KILL QUERY thd1
------------------------------------------------------------------------
thd->current_mutex
= &LOCK_open;
thd->current_cond
= &COND_refresh;
...
... thd->awake()
... lock(&mysys_var->mutex);
... ...
... lock(mysys_var->current_mutex);
...
DBUG_SYNC_POINT();
thd->current_mutex
= &LOCK_user_locks;
thd->current_cond
= &ull->cond;
cond_wait(&ull->cond,
&LOCK_user_locks);
unlock(&LOCK_user_locks);
lock(&thd->mysys_var->mutex);
[10 Mar 2009 9:45]
Sveta Smirnova
Thank you for the report. Verified as described.
[3 Jun 2009 7:02]
Christoffer Hall
After discussion with Davi and Zhenxing He we have agreed not to fix it in fear of breaking something unnecessarily. The tests should work anyway.
