Hi,
I am trying to load the library using loadLibrary() API from dyninst
code.
But it is failing for some process with the following error:
pidof actmain
15458 15348 15346 15341
./poc2 15346 stpret
The attached pid is 15346
the function name is stpret
--SERIOUS-- #124: /usr/tdbms/lib/libdprintf.so: cannot open shared
object file: Permission denied
failure to load the library
I enabled debug and got the following:
DYNINSTloadLibrary: creating new proc-specific function at
0x7fffe309f500
[Parser.C] finalizing DYNINSTloadLibrary (4500)
Block has return edge
Adding block 0x451f as exit
4500 extent [4500,4523)
4500 extent [4528,4546)
4500 extent [4550,4583)
--SERIOUS-- #124: /root/shruthi/new_dynamic/shared-lib/libdprintf.so:
cannot open shared object file: Permission denied
failure to load the library
The same API is working fine for some processes.
Could you please help me on this.
Thanks,
Shruthi
|