bcc icon indicating copy to clipboard operation
bcc copied to clipboard

memleak.py no result with jemalloc5.3.0

Open xpbob opened this issue 4 months ago • 2 comments

hi memleak.py can produce results using the jemalloc5.2 program, while the jemalloc5.3 program has no results

env: Reproduced as follows:

export LD_PRELOAD="/usr/local/lib/libjemalloc.so"
./leak_test
./memleak.py -p $(pgrep leak_test) -O /usr/local/lib/libjemalloc.so.2 

We found that it was the implementation of jemalloc that led to the changes in uprobe

https://github.com/jemalloc/jemalloc/commit/edbfe6912c1b7e8b561dfee1b058425de6c06285#diff-e84aa11907127083071fc3046183dd381618df08a67a609128f5d750874ab251%EF%BC%89

Should we consider adding a custom uprobe parameter to support this scenario

xpbob avatar Aug 19 '25 03:08 xpbob

Hi, I'd like to take a look at this issue. I believe I have a fix in mind. Is it okay for me to work on this?

gajjuu avatar Sep 15 '25 20:09 gajjuu

@gajjuu There are some discussions here https://github.com/iovisor/bcc/pull/5391

xpbob avatar Sep 26 '25 09:09 xpbob