Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

proot warning: ptrace(PEEKDATA): I/O error #70

Closed
sxdqx opened this issue Aug 5, 2019 · 8 comments
Closed

proot warning: ptrace(PEEKDATA): I/O error #70

sxdqx opened this issue Aug 5, 2019 · 8 comments

Comments

@sxdqx
Copy link

sxdqx commented Aug 5, 2019

proot warning: ptrace(PEEKDATA): I/O error
proot warning: ptrace(PEEKDATA): I/O error
proot warning: ptrace(PEEKDATA): I/O error
proot warning: ptrace(PEEKDATA): I/O error
proot warning: ptrace(PEEKDATA): I/O error
proot warning: ptrace(PEEKDATA): I/O error
proot warning: ptrace(PEEKDATA): I/O error
gpg: can't connect to the agent: IPC connect call failed
gpg: Total number processed: 1
gpg: imported: 1

@ghost ghost transferred this issue from termux/termux-app Aug 5, 2019
@michalbednarski
Copy link
Collaborator

What distro (and how it was installed) and commands you are running inside proot and whats you host system (uname -a)?


Not sure if related (as far as I see gpg (unlike ssh-agent) doesn't use PR_SET_DUMPABLE) but possibly related to #62 (Which has workaround described)

@sxdqx
Copy link
Author

sxdqx commented Aug 6, 2019

Ubuntu 18.04
Run "sudo apt-key add xx .key" Error that occurred

@ghost
Copy link

ghost commented Sep 1, 2019

got same problem with arch linux, seems to be breaking sudo:

[kalmari@localhost ~]$ sudo
proot warning: ptrace(PEEKDATA): I/O error
sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"
sudo: /usr/lib/sudo/sudoers.so: Bad address
sudo: fatal error, unable to load plugins
[kalmari@localhost ~]$

Samsung Galaxy S10+
Linux localhost 4.14.85-16668332 #1 SMP PREEMPT Thu Aug 22 16:31:52 KST 2019 aarch64 Android
Android Pie

@ZZZXXX0110
Copy link

Same problem here, seems to be breaking sudo in Ubuntu.

Samsung Galaxy Note 9

@michalbednarski
Copy link
Collaborator

Filtering of PR_SET_DUMPABLE prctl has been added to proot, hopefully it fixes sudo (although sudo on my arm64 device didn't have problem, but I've seen versions of sudo which use above prctl and symptoms match, so hopefully this will fix it)

Please comment if still doesn't work after proot update (to 5.1.107-22 in Termux apt)

@12702j
Copy link

12702j commented Feb 8, 2020

proot warning: ptrace(POKEDATA): I/O error
proot warning: ptrace(POKEDATA): I/O error
proot warning: ptrace(POKEDATA): I/O error
proot warning: ptrace(POKEDATA): I/O error
proot warning: ptrace(POKEDATA): I/O error
proot warning: ptrace(POKEDATA): I/O error
proot warning: ptrace(POKEDATA): I/O error
proot warning: ptrace(POKEDATA): I/O error

Where is the problem

@RyanHARRIS18
Copy link

RyanHARRIS18 commented Feb 16, 2020

I have the exact same error with a Samsung J727a my kali will boot but then when in it does not allow web browsing what is the solution?

@michalbednarski
Copy link
Collaborator

ptrace(POKEDATA): I/O error is generic error indicating that proot was unable write guest memory (either because address specified by guest process cannot be written to or some other problem).

There's ongoing issue related to similar error in #96 (which may or may not be same other commenters experience, however original issue with sudo (and ssh-agent) this thread was originally about was already resolved)

There's no solution in #96 yet, however it shows similar error message, so I'd suggest following situation there.

I'm closing this thread; If you have similar issue please first check if #96 (if it's still open) reproduction steps also trigger bug on your device and if so then wait for it to be resolved. If that also wasn't issue you've stumbled upon then please open new one. Please note that any comments that have no reproduction steps nor traces are unlikely to lead to solution.

@termux termux locked and limited conversation to collaborators Feb 16, 2020
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

5 participants