Skip to content
This repository has been archived by the owner on Dec 3, 2019. It is now read-only.

Failed to PTRACE_PEEKDATA - in miniconda environment #165

Open
nitishgupta opened this issue Jan 18, 2019 · 4 comments
Open

Failed to PTRACE_PEEKDATA - in miniconda environment #165

nitishgupta opened this issue Jan 18, 2019 · 4 comments

Comments

@nitishgupta
Copy link

pyflame 1.6.6 linux-gnu x86_64 (ABI list: 26 34 36)
Python 3.6.7

Following error when I try to profile a code running in a miniconda environment. Any ideas?

Unexpected ptrace(2) exception: Failed to PTRACE_PEEKDATA (pid 1604, addr 0x55b68223b508): Input/output error
Unexpected ptrace(2) exception: Failed to PTRACE_PEEKDATA (pid 1604, addr 0x55b68223b508): Input/output error
Unexpected ptrace(2) exception: Failed to PTRACE_PEEKDATA (pid 1604, addr 0x55b68223b508): Input/output error
Unexpected ptrace(2) exception: Failed to PTRACE_PEEKDATA (pid 1604, addr 0x55b68223b508): Input/output error
Unexpected ptrace(2) exception: Failed to PTRACE_PEEKDATA (pid 1604, addr 0x55b68223b508): Input/output error
Unexpected ptrace(2) exception: Failed to PTRACE_PEEKDATA (pid 1604, addr 0x55b68223b508): Input/output error
Unexpected ptrace(2) exception: Failed to PTRACE_PEEKDATA (pid 1604, addr 0x55b68223b508): Input/output error
Unexpected ptrace(2) exception: Failed to PTRACE_PEEKDATA (pid 1604, addr 0x55b68223b508): Input/output error
Unexpected ptrace(2) exception: Failed to PTRACE_PEEKDATA (pid 1604, addr 0x55b68223b508): Input/output error
Unexpected ptrace(2) exception: Failed to PTRACE_PEEKDATA (pid 1604, addr 0x55b68223b508): Input/output error
Unexpected ptrace(2) exception: Failed to PTRACE_PEEKDATA (pid 1604, addr 0x55b68223b508): Input/output error
Unexpected ptrace(2) exception: Failed to PTRACE_PEEKDATA (pid 1604, addr 0x55b68223b508): Input/output error
Unexpected ptrace(2) exception: Failed to PTRACE_PEEKDATA (pid 1604, addr 0x55b68223b508): Input/output error
Unexpected ptrace(2) exception: Failed to PTRACE_PEEKDATA (pid 1604, addr 0x55b68223b508): Input/output error
@ghost
Copy link

ghost commented Jan 26, 2019

Just fixed the same issue with mine.

Although pyflame is tested with python 3.6, it only works up until version 3.6.5, I am unsure why, but from reading other tickets I think it is because of the headers maybe????

To fix the errors just downgrade your python with:
conda install python=3.6.5
The errors should be gone, but it will downgrade some incompatible libraries, so your code itself may error out if it is using dependencies that are only supported by later versions of python.

@nitishgupta
Copy link
Author

I found that I get this error when I run my code within a conda environment. Is there a fix for that?

@ghost
Copy link

ghost commented Jan 26, 2019

I found that I get this error when I run my code within a conda environment. Is there a fix for that?

You have to downgrade your python version.

pyflame is currently incompatible with python version 3.6.7, the latest version it is compatible with is python version 3.6.5

you can install it with
conda install python=3.6.5
after that your code should work

@mycpuorg
Copy link

I found that I get this error when I run my code within a conda environment. Is there a fix for that?

You have to downgrade your python version.

pyflame is currently incompatible with python version 3.6.7, the latest version it is compatible with is python version 3.6.5

you can install it with
conda install python=3.6.5
after that your code should work

@bellershaw1 This does not seem to work for me even with python=2.7
Not sure what I'm missing.

ubuntu@xxx-home:~/pyflame/pyflame/src$ ./pyflame --version
pyflame 1.6.6 linux-gnu x86_64 (ABI list: 26 34)

Can somebody please help?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants