Re: [DynInst_API:] Not able to load the library.


Date: Tue, 18 Nov 2014 10:31:15 -0600
From: bill <bill@xxxxxxxxxxx>
Subject: Re: [DynInst_API:] Not able to load the library.
What version of Linux is this? Either it's a straightforward path/permission problem (library doesn't exist/isn't readable and executable) or it's some sort of shenanigans with dlopen's security features that we haven't run into before. The former is far more likely, but the latter is possible.

On 2014-11-18 01:43, Shruthi wrote:
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


_______________________________________________
Dyninst-api mailing list
Dyninst-api@xxxxxxxxxxx
https://lists.cs.wisc.edu/mailman/listinfo/dyninst-api
[← Prev in Thread] Current Thread [Next in Thread→]