Re: [DynInst_API:] ppcle detach removes snippets


Date: Tue, 16 Jul 2019 16:35:19 -0400
From: Stan Cox <scox@xxxxxxxxxx>
Subject: Re: [DynInst_API:] ppcle detach removes snippets

I agree that detach should not remove instrumentation.

Is it a power 8 or power 9 machine? And presumably it is Dyninst 10.1?

I am currently using dyninst 10.1.0 on a:
uname -a
Linux rh-power-vm07.fit.vutbr.cz 5.0.16-100.fc28.ppc64le #1 SMP Wed May 15 08:12:10 UTC 2019 ppc64le ppc64le ppc64le GNU/Linux

(1) "app_proc->detach(true);" actually will continue the mutatee, so you donât have to call "app_proc->continueExecution();â before it. I know that this combination works on other platforms, but I just want to isolate the problem. Can you see if the same problem occurs if you delete âcontinueExecution()â?

No change with or without continueExecution. Adding waitForStatusChange before the delete will insure the snippets are not removed.
% cd /home/scox/smoke-test/dynamic
% ./mutatee -v 5 & LD_LIBRARY_PATH=/home/scox/dyninst-10.1.0/install/lib DYNINSTAPI_RT_LIB=/home/scox/dyninst-10.1.0/install/lib/libdyninstAPI_RT.so ./mutator $!
[1] 11412
FUNCTION EXECUTED. VALUE = 0
FUNCTION EXECUTED. VALUE = 1
MUTATION DONE. MUTATOR IS GOING...
rh-power-vm07:~/smoke-test/dynamic
FUNCTION EXECUTED. VALUE = 1
FUNCTION EXECUTED. VALUE = 1
FUNCTION EXECUTED. VALUE = 1


(2) Âdetach will remove instrumentations in fork, exec, and exit, which are used for controlling the mutatee. Can you go to source file dyninstAPI/src/dynProcess.C and comment out lines between 1064 and 1069? These lines should look like:

I'll give that a whirl

[← Prev in Thread] Current Thread [Next in Thread→]