[MDEV-201] LP:962540 - Assertion `!thd->spcont' failed in net_send_error on server shutdown Created: 2012-03-22 Updated: 2013-11-10 Resolved: 2013-11-10 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 5.5.22, 10.0.6 |
| Type: | Bug | Priority: | Major |
| Reporter: | Elena Stepanova | Assignee: | Sergei Golubchik |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
https://bugs.launchpad.net/maria/+bug/962540
bzr version-info
Could not reproduce on MySQL 5.5 or MySQL trunk. Please note that the test case requires semisync plugins, so they should be built and placed in the plugin folder. The test case works pretty reliably for me, but a couple of times (out of dozens) it didn't cause the assertion, so I needed to re-run it.
|
| Comments |
| Comment by Elena Stepanova [ 2012-03-26 ] |
|
Modified test: --source include/master-slave.inc eval INSTALL PLUGIN rpl_semi_sync_master SONAME '$SEMISYNC_MASTER_SO'; --connection slave --connection master --delimiter | --send --let $rpl_server_number= 1 |
| Comment by Elena Stepanova [ 2012-03-26 ] |
|
Re-assigning back since it seems to be reproducible on perro at the moment. |
| Comment by Sergei Golubchik [ 2013-10-12 ] |
|
The fix for this bug was removed from 10.0 (probably accidentally in 5.6 merge). Elena, could you please test this again in 10.0 tree to see whether the bug reappears? |
| Comment by Elena Stepanova [ 2013-10-14 ] |
|
I couldn't reproduce the failure on 10.0 tree so far (still trying). |
| Comment by Elena Stepanova [ 2013-10-14 ] |
|
I found when it stopped happening on 10.0 tree. The following revision did it: ------------------------------------------------------------ More particularly, this one: ------------------------------------------------------------ The slave dump thread running on the master only checked thd->killed whenever This was found by code inspection while tracking down some occasional "forcing Also increase the wait during server shutdown, 2 seconds is a bit tight in Also fix some races in test cases that restart the mysqld server. The .expect Even more particularly, this change: === modified file 'sql/mysqld.cc'
/* If I revert the change on the current 10.0 tree, the assertion failure starts happening again. I've set up the test on perro, just in case. It's under mariadb. 10.0 tree, revno 3850, with the reverted patch quoted above (it is also in mdev201/dif), built with BUILD/compile-pentium-debug-max-no-ndb. |