[MDEV-3207] LP:612600 - Lost memory reported in valgrind in os_aio_simulated_handle Created: 2010-08-02 Updated: 2012-10-04 Resolved: 2012-10-04 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Michael Widenius | Assignee: | Unassigned |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | Launchpad | ||
| Attachments: |
|
| Description |
|
When running the test innodb_plugin.innodb-use-sys-malloc (not support test), xtradb doesn't properly free memory when test is aborted. How to repeat: mysql-test-run --valgrind innodb_plugin.innodb-use-sys-malloc Error output: innodb_plugin.innodb_mysql w3 [ skipped ] Test requires: 'true' ==8801== 1,310,720 bytes in 3 blocks are still reachable in loss record 7 of 7 This affects MariaDB 5.1. MySQL 5.1 doesn't have this issue |
| Comments |
| Comment by Christoffer Hall (Inactive) [ 2010-08-04 ] |
|
Re: Lost memory reported in valgrind in os_aio_simulated_handle |
| Comment by Christoffer Hall (Inactive) [ 2010-08-04 ] |
|
It seems the os_aio_thread_buffer for read/write combining gets allocated on the fly but never deallocated at the end. This simple patch fixes it. Free buffers in os_aio_thread_buffer at cleanup |
| Comment by Christoffer Hall (Inactive) [ 2010-08-04 ] |
|
Re: Lost memory reported in valgrind in os_aio_simulated_handle |
| Comment by Rasmus Johansson (Inactive) [ 2010-08-04 ] |
|
Launchpad bug id: 612600 |