Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MINOR: activity/memprofile: always return "other" bin on NULL return …
…address It was found in a large "show profiling memory" output that a few entries have a NULL return address, which causes confusion because this address will be reused by the next new allocation caller, possibly resulting in inconsistencies such as "free() ... pool=trash" which makes no sense. The cause is in fact that the first caller had an entry->info pointing to the trash pool from a p_alloc/p_free with a NULL return address, and the second had a different type and reused that entry. Let's make sure undecodable stacks causing an apparent NULL return address all lead to the "other" bin. While this is not exactly a bug, it would make sense to backport it to the recent branches where the feature is used (probably at least as far as 2.8). (cherry picked from commit 5091f90) Signed-off-by: Christopher Faulet <[email protected]> (cherry picked from commit 27ade1e) Signed-off-by: Christopher Faulet <[email protected]> (cherry picked from commit be90a54) Signed-off-by: Christopher Faulet <[email protected]>
- Loading branch information