Compatiblity with Python Application

9 views
Skip to first unread message

Yash Singhal

unread,
May 23, 2024, 8:58:44 AMMay 23
to DynamoRIO Users
I know Dynamo Rio really isnt compatible with the Python Application to generate memory traces as python has his form of execution , just messaging this to ensure that I hadnt miss anything.

As far as I can recall only way to do it is to convert the python application into equivalent C/C++ Binary and to work from there through Dynamo Rio to generate traces. Is it the only way ?

Derek Bruening

unread,
May 26, 2024, 4:17:21 PMMay 26
to Yash Singhal, DynamoRIO Users
The DR core should work on python applications.  If there's a JIT (e.g. PyPy), drmemtrace support is in place if any generated code is in its own memory (https://github.com/DynamoRIO/dynamorio/issues/2062) by writing non-library encodings out at tracing time as they cannot be determined in -offline post-processing. Overhead may be high with generated code as both the DR core and tracer have to do extra work.  It is quite possible that nobody has spent much time testing python.  Any stability issues found should be filed as bugs.  If your question is more about whether a drmemtrace trace will help you analyze the top-level python app itself, maybe not as it will be low level and show you the interpreter/JIT level.

On Thu, May 23, 2024 at 8:58 AM Yash Singhal <yas...@gmail.com> wrote:
I know Dynamo Rio really isnt compatible with the Python Application to generate memory traces as python has his form of execution , just messaging this to ensure that I hadnt miss anything.

As far as I can recall only way to do it is to convert the python application into equivalent C/C++ Binary and to work from there through Dynamo Rio to generate traces. Is it the only way ?

--
You received this message because you are subscribed to the Google Groups "DynamoRIO Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dynamorio-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dynamorio-users/75c16b1c-8fe4-46ed-8ed7-d3fd1544b1e9n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages