[MDEV-5321] Calling mysql_library_end accesses freed memory; dumps memory to display Created: 2013-11-20 Updated: 2014-01-29 Due: 2013-12-04 Resolved: 2013-11-25 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 5.5.35 |
| Type: | Bug | Priority: | Major |
| Reporter: | Vilho Raatikka | Assignee: | Alexey Botchkov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Linux linux-yxkl.site 3.7.10-1.16-desktop #1 SMP PREEMPT Fri May 31 20:21:23 UTC 2013 (97c14ba) x86_64 x86_64 x86_64 GNU/Linux OpenSuse 12.3 |
||
| Description |
|
Valgrid reports:
end_embedded_server calls clean_up_mutexes, which frees memory of mutexes. The next call in mysql_server_end calls vio_end under which one of the freed mutexes is accessed. |
| Comments |
| Comment by Alexey Botchkov [ 2013-11-24 ] |
|
Patch proposal: Should also fix https://mariadb.atlassian.net/browse/MDEV-5311. |
| Comment by Daniel Bartholomew [ 2014-01-29 ] |
|
http://bazaar.launchpad.net/~maria-captains/maria/5.5/revision/3987 |