Bug #32771 | events_bugs.test fails randomly | ||
---|---|---|---|
Submitted: | 27 Nov 2007 13:54 | Modified: | 12 Nov 2009 18:37 |
Reporter: | Ingo Strüwing | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Tests: Server | Severity: | S7 (Test Cases) |
Version: | 6.0.4 | OS: | Linux (Debian x64) |
Assigned to: | Konstantin Osipov | CPU Architecture: | Any |
Tags: | crash |
[27 Nov 2007 13:54]
Ingo Strüwing
[28 Nov 2007 10:25]
Bugs System
Pushed into 6.0.4-alpha
[28 Nov 2007 13:40]
Georgi Kodinov
Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.mysql.com/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to 'Open'. Thank you for your interest in MySQL. Looks like the event scheduler thread is still alive after the event scheduler has gone away. But the stack trace doesn't tell what has happened. I did some code analysis but wasn't able to find a path that can lead to such behavior. I was unable to find any similar problems in the pushbuild hosts either (and several of them are 64 bit linuxes). Please try to get a dbug trace of the crash and the result of 'thread apply all where' from the core : this will hopefully reveal what causes the crash.
[28 Nov 2007 14:52]
Ingo Strüwing
What I said still holds true: This may be difficult to repeat. It happened just once to me. I tried to no avail. When closing, please do not forget to re-enable the test case.
[30 Nov 2007 15:01]
Ingo Strüwing
Backtrace all threads
Attachment: bug32771-1.txt (text/plain), 9.52 KiB.
[30 Nov 2007 15:02]
Ingo Strüwing
It happened again on my local machine. I added the requested information as a file (it is too big as a comment).
[3 Jan 2008 0:00]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".
[20 Apr 2008 7:18]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/45706 ChangeSet@1.2629, 2008-04-20 11:18:52+04:00, kostja@bodhi.(none) +2 -0 A fix for Bug#32771 "events_bugs.test fails randomly". In Event_scheduler::stop(), which may be called from destructor, wait synchronously for the parallel Event_scheduler::stop() to complete before returning. This fixes a race between MySQL shutdown thread and the scheduler thread who could call stop() in parallel.
[20 Apr 2008 13:01]
Bugs System
Pushed into 6.0.6-alpha
[21 Apr 2008 17:42]
Paul DuBois
Noted in 6.0.6 changelog. There was a race condition between the event scheduler and the server shutdown thread.
[13 Oct 2009 18:30]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/86724 2913 Konstantin Osipov 2009-10-13 Backport of the following revision from 6.0-codebase: ---------------------------------------------------------- revno: 2617.1.12 committer: kostja@bodhi.(none) timestamp: Sun 2008-04-20 11:18:52 +0400 message: A fix for Bug#32771 "events_bugs.test fails randomly". In Event_scheduler::stop(), which may be called from destructor, wait synchronously for the parallel Event_scheduler::stop() to complete before returning. This fixes a race between MySQL shutdown thread and the scheduler thread who could call stop() in parallel. @ sql/event_scheduler.cc There was a race condition between the shutdown thread and the scheduler thread: the shutdown thread could delete the scheduler mutex before the sheduler has stopped.
[3 Nov 2009 7:16]
Bugs System
Pushed into 6.0.14-alpha (revid:alik@sun.com-20091102151658-j9o4wgro47m5v84d) (version source revid:alik@sun.com-20091023064702-2f8jdmny61bdl94u) (merge vers: 6.0.14-alpha) (pib:13)
[3 Nov 2009 15:37]
Paul DuBois
Already fixed in earlier 6.0.x release.
[12 Nov 2009 8:19]
Bugs System
Pushed into 5.5.0-beta (revid:alik@sun.com-20091110093229-0bh5hix780cyeicl) (version source revid:mikael@mysql.com-20091103113702-p61dlwc6ml6fxg18) (merge vers: 5.5.0-beta) (pib:13)
[12 Nov 2009 18:37]
Paul DuBois
Noted in 5.5.0 changelog.