upvote
You can still override malloc and call __libc_malloc if you do not want to bother with dlsym/RTLD_NEXT. These function aliases are undocumented, but for a quick experiment, that shouldn't matter.
reply
If you only wanted to observe the behavior the post is discussing, it seems like `ltrace -e malloc` is a lot easier.
reply