|License Type||SaaS & On-Premise|
|Main Product Category||Python Agent|
The issue is specific to python interpreters complied locally on OSX.
Python agent throws the following runtime error:
RuntimeError: failed to install assess patches: Failed to unprotect memory 0x10cd20000 (size=4096, prot=read,write,exec) <- 0x10cd202b0 (size=5, error=Permission denied)
When running on OSX, the python interpreter is a Mach-O executable, and the Python Agent relies on maxprot being set to 7. This enables funchook's call to mprotect to successfully make memory writable. However, the OSX linker ld64 sets maxprot to 5 by default and ignores command line flag attempts to modify this value!
This issue is most likely to occur when using
A script was provided that ships with Python Agent 3.3.3 and later. After the agent is installed from Pypi, the script is available in the current shell’s PATH as
This will bring up a warning, and ask the to rerun the command with the
--modify-interpreter flag to confirm