[MDEV-10291] main.bootstrap fails sporadically in buildbot on Windows Created: 2016-06-26 Updated: 2017-02-10 Resolved: 2017-02-10 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Server |
| Affects Version/s: | 10.2 |
| Fix Version/s: | 10.2.4 |
| Type: | Bug | Priority: | Major |
| Reporter: | Elena Stepanova | Assignee: | Vladislav Vaintroub |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | 10.2-ga | ||
| Issue Links: |
|
||||||||
| Sprint: | 10.2.2-1, 10.2.4-3 | ||||||||
| Description |
|
http://buildbot.askmonty.org/buildbot/builders/winx64-packages/builds/392/steps/test/logs/stdio
It happened a few times recently. |
| Comments |
| Comment by Vladislav Vaintroub [ 2016-10-12 ] | |||||||||||||||||||||||||||||||||
|
Crash callstack (from a mysqld.dmp on buildbot)
Mostly likely, there is a memory overwrite here that corrupts critical section. callstack shows RtlpEnterCriticalSectionContended, but this critical section cannot be contended, as there is only a single active thread. | |||||||||||||||||||||||||||||||||
| Comment by Andrii Nikitin (Inactive) [ 2017-02-10 ] | |||||||||||||||||||||||||||||||||
|
I see at http://buildbot.askmonty.org/buildbot/builders/winx64-debug/builds/2542/steps/test/logs/stdio that main thread is being aborted when crash happens:
Edited: it looks that crash happens because mutex LOCK_prepared_stmt_count is referenced from ~Statement_map() of bootstrap thread is already destroyed in mysqld_exit() | |||||||||||||||||||||||||||||||||
| Comment by Andrii Nikitin (Inactive) [ 2017-02-10 ] | |||||||||||||||||||||||||||||||||
|
It looks I can repeat the crash manually by injecting few Sleep() calls as below:
In my understanding this may happen only on single (or very overloaded) CPU when do_handle_bootstrap() completes before main thread executes "while (in_bootstrap)" |