Date: | Mon, 19 Oct 2015 13:48:24 -0700 |
---|---|
From: | Victor van der Veen <vvdveen@xxxxxxxxx> |
Subject: | [DynInst_API:] LD_PRELOAD |
Hi,
We found that using LD_PRELOAD with Dyninst 8.x/9.x does not work correctly. The following patch fixes the issue. With kind regards, Victor van der Veen --- DyninstAPI-9.0.3.orig/dyninstAPI/src/unix.CÂÂÂ 2015-08-26 09:13:07.000000000 -0700 +++ DyninstAPI-9.0.3/dyninstAPI/src/unix.CÂÂÂ 2015-10-18 21:01:12.558274744 -0700 @@ -375,7 +375,7 @@ ÂÂÂÂÂÂÂÂ while( environ[i] != NULL ) { ÂÂÂÂÂÂÂÂÂÂÂÂ std::string envVar(environ[i]); ÂÂÂÂÂÂÂÂÂÂÂÂ if( envVar.find("LD_PRELOAD=") == 0 ) { -ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ ld_preload_orig = environ[i]; +ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ ld_preload_orig = environ[i] + 11; ÂÂÂÂÂÂÂÂÂÂÂÂ }else{ ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ envp.push_back(envVar); ÂÂÂÂÂÂÂÂÂÂÂÂ } |
[← Prev in Thread] | Current Thread | [Next in Thread→] |
---|---|---|
|
Previous by Date: | [DynInst_API:] Boost assertion when calling BPatch_point.isDynamic(), Victor van der Veen |
---|---|
Next by Date: | [DynInst_API:] commit: assorted fixes, pre-9.0.4, Bill Williams |
Previous by Thread: | Re: [DynInst_API:] Is there any way to get the mapping information between rewrote function and original function, Bill Williams |
Next by Thread: | [DynInst_API:] libiberty/libstdc++ demangler, Andrew Gontarek |
Indexes: | [Date] [Thread] |