Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.4.4, 10.5.0
Description
InnoDB is leaking some memory for statically allocated objects. The leaks were caught by some changes to SAFEMALLOC that allow instrumenting operator new. I did not try to find out how to make AddressSanitizer report them.
The impact is small, because the few dozen bytes will be freed by the operating system when the process is terminated. But, because memory leaks can be a telltale sign of subsystems not being closed down properly, we prefer to fix them.
Attachments
Issue Links
- is caused by
-
MDEV-16264 Implement a common work queue for InnoDB background tasks
-
- Closed
-
-
MDEV-17380 innodb_flush_neighbors=ON should be ignored on SSD
-
- Closed
-
SAFEMALLOC performs it's check with std::atexit(). It really happens when destruction of static objects like fil_system_t fil_system happens. In our case sf_terminate() was called before the fil_system_t::~fil_system_t() was called. And a false positive was reported.