| Bug #40796 | Crash due to heap corruption in rpl.rpl_extraColmaster_myisam | ||
|---|---|---|---|
| Submitted: | 17 Nov 2008 19:02 | Modified: | 27 Aug 18:48 |
| Reporter: | Vladislav Vaintroub | ||
| Status: | Patch queued | ||
| Category: | Server: Replication | Severity: | S2 (Serious) |
| Version: | 5.1.30 | OS: | Microsoft Windows |
| Assigned to: | Davi Arnaut | Target Version: | 5.1+ |
| Tags: | disabled | ||
| Triage: | Triaged: D1 (Critical) | ||
[17 Nov 2008 19:02]
Vladislav Vaintroub
[17 Nov 2008 19:08]
Vladislav Vaintroub
Running test gives different crashes, but always something around malloc/free. Here is an example of crash from the same test that prevents signal handler to work properly. mysqld.exe!__C_specific_handler(_EXCEPTION_RECORD * ExceptionRecord=0x000000000304ff00, void * EstablisherFrame=0x000000000304ff00, _CONTEXT * ContextRecord=0x0000000003050000, _DISPATCHER_CONTEXT * DispatcherContext=0x00000001403cac37) + 0x96 bytes C ntdll.dll!RtlpExecuteHandlerForException() + 0xd bytes ntdll.dll!RtlDispatchException() + 0x1d7 bytes ntdll.dll!KiUserExceptionDispatcher() + 0x2e bytes ntdll.dll!RtlpFreeHeap() + 0x5e9 bytes ntdll.dll!RtlFreeHeap() + 0x1967 bytes kernel32.dll!HeapFree() + 0xa bytes mysqld.exe!free(void * pBlock=0x0000000002813230) Line 110 C mysqld.exe!_freefls(void * data=0x0000000000297cb0) Line 754 C mysqld.exe!_freeptd(_tiddata * ptd=0x0000000002068820) Line 807 C mysqld.exe!_endthread() Line 364 C mysqld.exe!handle_slave_io(void * arg=0x0000000002068820) Line 2555 C++
[19 Nov 2008 0:14]
Trudy Pelzer
Per Vlad, bug#35319 is probably related: "After searching a bit in the bugdb, heap corruption with rpl involved appears to be reported on MacOSX http://bugs.mysql.com/bug.php?id=35319 Stack looks similar to what I've seen in http://bugs.mysql.com/bug.php?id=40796"
[25 Nov 2008 13:51]
Giuseppe Maxia
Also verified on Mac OSX 10.5
[22 Apr 12:16]
Alfranio Correia
Apparently the failures related to the following test cases are the same:: rpl_extraColmaster_myisam rpl_extraColmaster_falcon rpl_extraCol_myisam rpl_extraCol_falcon rpl_extraColmaster_innodb rpl_extraCol_innodb rpl_extraColmaster_myisam rpl_extraCol_myisam rpl_extraColmaster_innodb rpl_extraCol_innodb Look also at BUG#40930.
[7 Jul 16:42]
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/78150 3011 Georgi Kodinov 2009-07-07 Bug #40796 : adding the tests to the experimental pb2 set.
[8 Jul 15:30]
Bugs System
Pushed into 5.1.37 (revid:joro@sun.com-20090708131116-kyz8iotbum8w9yic) (version source revid:joro@sun.com-20090707144134-58cwiaz4qzy6n35c) (merge vers: 5.1.37) (pib:11)
[9 Jul 9:36]
Bugs System
Pushed into 5.1.37 (revid:joro@sun.com-20090708131116-kyz8iotbum8w9yic) (version source revid:joro@sun.com-20090707144134-58cwiaz4qzy6n35c) (merge vers: 5.1.37) (pib:11)
[10 Jul 13:20]
Bugs System
Pushed into 5.4.4-alpha (revid:anozdrin@bk-internal.mysql.com-20090710111017-bnh2cau84ug1hvei) (version source revid:joro@sun.com-20090708121727-rekm6n1iu4vmvcfa) (merge vers: 5.4.4-alpha) (pib:11)
[14 Aug 13:15]
Davi Arnaut
Queued to 5.0-bugteam: http://lists.mysql.com/commits/80781
[26 Aug 15:45]
Bugs System
Pushed into 5.1.37-ndb-7.0.8 (revid:jonas@mysql.com-20090826132541-yablppc59e3yb54l) (version source revid:jonas@mysql.com-20090826132541-yablppc59e3yb54l) (merge vers: 5.1.37-ndb-7.0.8) (pib:11)
[26 Aug 15:46]
Bugs System
Pushed into 5.1.37-ndb-6.3.27 (revid:jonas@mysql.com-20090826105955-bkj027t47gfbamnc) (version source revid:jonas@mysql.com-20090826105955-bkj027t47gfbamnc) (merge vers: 5.1.37-ndb-6.3.27) (pib:11)
[26 Aug 15:48]
Bugs System
Pushed into 5.1.37-ndb-6.2.19 (revid:jonas@mysql.com-20090825194404-37rtosk049t9koc4) (version source revid:jonas@mysql.com-20090825194404-37rtosk049t9koc4) (merge vers: 5.1.37-ndb-6.2.19) (pib:11)
[27 Aug 18:07]
Jon Stephens
Documented bugfix in the 5.1.37 changelog as follows:
A memory allocation error in the internal vio_new() function
could cause stack corruption leading to a crash of the slave.
This issue was observed when replicating from tables having
extra columns on the master as compared to the slave.
Set status to Patch Queued, waiting for push to 5.0 tree.
(Will this also be pushed to 5.4?)
[27 Aug 18:32]
Bugs System
Pushed into 5.1.35-ndb-7.1.0 (revid:magnus.blaudd@sun.com-20090827163030-6o3kk6r2oua159hr) (version source revid:jonas@mysql.com-20090826132541-yablppc59e3yb54l) (merge vers: 5.1.37-ndb-7.0.8) (pib:11)
[28 Aug 10:37]
Jon Stephens
Removed this changelog entry, combined with Bug#45242 changelog entry (qv.) per Davi's email. Left status unchanged.
