-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
not found api: malloc #42
Comments
It seem that memleax does not find Would you like run the following commands on your system and paste the output here? Assume
|
It is a daemon process.
|
Sorry it is so long. |
How about the second command?
|
`$ readelf -s /lib64/libc.so.6 | grep malloc 444: 0000000000085800 214 FUNC GLOBAL DEFAULT 12 __libc_malloc@@GLIBC_2.2.5 551: 0000000000087dd0 271 FUNC GLOBAL DEFAULT 12 malloc_info@@GLIBC_2.10 818: 0000000000087b90 450 FUNC WEAK DEFAULT 12 malloc_stats@@GLIBC_2.2.5 990: 0000000000085a20 507 FUNC WEAK DEFAULT 12 malloc_get_state@@GLIBC_2.2.5 1087: 00000000003c6740 8 OBJECT WEAK DEFAULT 33 __malloc_hook@@GLIBC_2.2.5 1180: 0000000000085800 214 FUNC GLOBAL DEFAULT 12 malloc@@GLIBC_2.2.5 1214: 00000000000864c0 252 FUNC WEAK DEFAULT 12 malloc_usable_size@@GLIBC_2.2.5 1465: 0000000000087810 624 FUNC WEAK DEFAULT 12 malloc_trim@@GLIBC_2.2.5 1786: 00000000003c8a40 8 OBJECT WEAK DEFAULT 34 __malloc_initialize_hook@@GLIBC_2.2.5 2084: 0000000000086fe0 1286 FUNC WEAK DEFAULT 12 malloc_set_state@@GLIBC_2.2.5 130: 00000000003c7ab0 4 OBJECT LOCAL DEFAULT 34 cache_malloced 1052: 0000000000000000 0 FILE LOCAL DEFAULT ABS malloc.c 1068: 000000000007f520 248 FUNC LOCAL DEFAULT 12 malloc_printerr 1101: 0000000000080500 2396 FUNC LOCAL DEFAULT 12 malloc_consolidate 1120: 0000000000081910 2010 FUNC LOCAL DEFAULT 12 sysmalloc 1123: 00000000000820f0 3852 FUNC LOCAL DEFAULT 12 _int_malloc 1132: 0000000000083000 282 FUNC LOCAL DEFAULT 12 malloc_check 1174: 00000000003c8ad0 8 OBJECT LOCAL DEFAULT 34 save_malloc_hook 1176: 00000000000858e0 305 FUNC LOCAL DEFAULT 12 malloc_atfork 1181: 00000000003c8a70 4 OBJECT LOCAL DEFAULT 34 disallow_malloc_check 1182: 00000000003c8a80 4 OBJECT LOCAL DEFAULT 34 using_malloc_checking 1197: 0000000000086790 935 FUNC LOCAL DEFAULT 12 ptmalloc_init.part.7 1198: 0000000000086b40 21 FUNC LOCAL DEFAULT 12 ptmalloc_init 1199: 0000000000086b60 60 FUNC LOCAL DEFAULT 12 malloc_hook_ini 1220: 0000000000088c20 495 FUNC LOCAL DEFAULT 12 mallochook 1222: 00000000003c8ba0 8 OBJECT LOCAL DEFAULT 34 old_malloc_hook 1241: 00000000003c8bf0 8 OBJECT LOCAL DEFAULT 34 tr_old_malloc_hook 1242: 0000000000089c60 189 FUNC LOCAL DEFAULT 12 tr_mallochook 1254: 00000000003c8c10 8 OBJECT LOCAL DEFAULT 34 malloc_trace_buffer 3478: 0000000000085610 174 FUNC LOCAL DEFAULT 12 __malloc_fork_unlock_pare 3813: 00000000003c6170 4 OBJECT LOCAL DEFAULT 33 __libc_malloc_initialized 3876: 0000000000086fe0 1286 FUNC LOCAL DEFAULT 12 __malloc_set_state 4197: 00000000000864c0 252 FUNC LOCAL DEFAULT 12 __malloc_usable_size 4255: 0000000000087810 624 FUNC LOCAL DEFAULT 12 __malloc_trim 4498: 0000000000085800 214 FUNC LOCAL DEFAULT 12 __GI___libc_malloc 4697: 0000000000085a20 507 FUNC LOCAL DEFAULT 12 __malloc_get_state 4735: 0000000000087b90 450 FUNC LOCAL DEFAULT 12 __malloc_stats 4851: 00000000000856c0 193 FUNC LOCAL DEFAULT 12 __malloc_fork_unlock_chil 5025: 0000000000085790 107 FUNC LOCAL DEFAULT 12 __malloc_check_init 5053: 0000000000085500 267 FUNC LOCAL DEFAULT 12 __malloc_fork_lock_parent 5547: 0000000000085800 214 FUNC LOCAL DEFAULT 12 __malloc 5685: 00000000003c8a40 8 OBJECT WEAK DEFAULT 34 __malloc_initialize_hook 5767: 0000000000086fe0 1286 FUNC WEAK DEFAULT 12 malloc_set_state 6067: 0000000000085800 214 FUNC GLOBAL DEFAULT 12 malloc 6077: 0000000000087dd0 271 FUNC GLOBAL DEFAULT 12 malloc_info 6190: 0000000000087810 624 FUNC WEAK DEFAULT 12 malloc_trim 6735: 00000000003c6740 8 OBJECT WEAK DEFAULT 33 __malloc_hook 6827: 00000000000864c0 252 FUNC WEAK DEFAULT 12 malloc_usable_size 7306: 0000000000085a20 507 FUNC WEAK DEFAULT 12 malloc_get_state 7323: 0000000000085800 214 FUNC GLOBAL DEFAULT 12 __libc_malloc 7492: 0000000000087b90 450 FUNC WEAK DEFAULT 12 malloc_stats` |
There is
|
I will check probably tomorrow morning (eastern us time) but could this possibly be related to differing PATH between user and super user? |
I do not think it's related to users, but I am not sure about it. |
It was a fairly large file, so check my repo for |
It seems that memleax does not load symbols from libc.so.
|
BTW, there is another thing: memleax now has a bug that it can not work with multi-thread target program. This is no related with this issue. |
There is no difference between the issue. Yes, the target is multi-threaded |
So memleax can not be used for your program. |
I am trying to profile a init.d daemon and am having issues. Of course, trying to run:
memleax <pid>
will not work. When I run as superuser i.e.sudo memleax <pid>
, I get the following message:Is this recoverable at all?
The text was updated successfully, but these errors were encountered: