Details
-
Task
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
Description
Instrument MEM_ROOT and mem_heap_t.
Safe malloc disabled for WITH_ASAN=ON.
With this patch ASAN is able to catch eg this bug
Also remove unneeded header inclusions.
Attachments
Issue Links
- causes
-
MDEV-16136 Various ASAN failures when testing 10.2/10.3
-
- Closed
-
- relates to
-
MDEV-15029 XA COMMIT and XA ROLLBACK operate on freed transaction object
-
- Closed
-
-
MDEV-15791 XA: Server crashes in lock_release upon closing connection
-
- Closed
-
-
MDEV-17248 Improve ASAN memory pool instrumentation
-
- Closed
-
Btw, the most efficient way for catching memory bugs would be disabling memory arenas completely. That would result in the best instrumentation out of the box. But sadly it's not possible with current code which never calls dummy free()/delete for arena allocations.