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

termux-chroot segfaults on aarch64 #378

Closed
Neo-Oli opened this issue Aug 2, 2016 · 21 comments · Fixed by #390
Closed

termux-chroot segfaults on aarch64 #378

Neo-Oli opened this issue Aug 2, 2016 · 21 comments · Fixed by #390
Labels
bug report Something is not working properly

Comments

@Neo-Oli
Copy link
Member

Neo-Oli commented Aug 2, 2016

This happens on my aarch64 phone, but it works on my arm phone.

$ termux-chroot
[3]    16579 segmentation fault (core dumped)
$ termux-chroot
proot warning: ptrace request 'PTRACE_???' not supported yet
proot warning: signal 11 received from process -40
You have stopped jobs.
@Neo-Oli Neo-Oli added the bug report Something is not working properly label Aug 2, 2016
@fornwall
Copy link
Member

fornwall commented Aug 2, 2016

What is the model, Android version and Linux kernel version (output of uname -a) of the aarch64 device where this does not work?

Related: #258 (the Nexus 9 kernel does not have the necessary suport compiled in, could it be the same thing here)?

@Neo-Oli
Copy link
Member Author

Neo-Oli commented Aug 2, 2016

Model: Sony Xperia X
Version 6.0.1

$ uname -a
Linux localhost 3.10.84-perf-gfc8e9bb #1 SMP PREEMPT Thu May 5 20:48:38 2016 aarch64 Android
$ export PROOT_NO_SECCOMP=1
$ termux-chroot
proot info: vpid 1: terminated with signal 7
 255  $ proot ls
Downloads  bundle     drive       internal  remote   sdcard1sync
bin        downloads  hack.exe.c  notes     scripts  storage
$

@Neo-Oli
Copy link
Member Author

Neo-Oli commented Aug 14, 2016

It doesn't actually crash completely. I am still in some kind of non-working proot shell

$ termux-chroot
[3]    13201 segmentation fault (core dumped)
$ cd /bin
proot info: vpid 1: terminated with signal 11

@michalbednarski
Copy link
Contributor

What shell do you use (As chosen with chsh)? Do You have anything special in .bash_profile or something similar. If You use bash, do You have bash-completion installed?

Looks like Your shell has started something else on startup before crashing, so it doesn't look like "pure" bash.

@Neo-Oli
Copy link
Member Author

Neo-Oli commented Aug 14, 2016

I am running zsh. I figured out that the segfault was tmux, for which I run a command from in my .zshrc,. Running termux-chroot from bash seems to work running with zsh (even without .zshrc) still gives me the same error.

bash-4.3$ termux-chroot
bash-4.3$ cd /bin
bash: cd: /bin: Success
bash-4.3$ exit
logout
bash-4.3$ chsh -s zsh
bash-4.3$ termux-chroot
localhost% cd /bin
proot info: vpid 1: terminated with signal 11
bash-4.3$

Also many programms don't work under termux-chroot, including python, make, tmux. They crash with the following errors:

bash-4.3$ make
Segmentation fault (core dumped)
bash-4.3$ python
Python 3.5.2 (default, Jul 19 2016, 10:11:21)
[GCC 4.9.x 20150123 (prerelease)] on linux
Type "help", "copyright", "credits" or "license" for more information.
Illegal instruction (core dumped)

@michalbednarski
Copy link
Contributor

Still couldn't reproduce; possibly something specific to device's libc or linker. Could I ask for result of proot strace -f -o trace.txt make (using my patched proot from #390, at least it fixes strace inside proot), maybe that could help

@Neo-Oli
Copy link
Member Author

Neo-Oli commented Aug 14, 2016

$ proot strace -f -o trace.txt
strace: must have PROG [ARGS] or -p PID
Try 'strace -h' for more information.

Seems something is missing from that command

@michalbednarski
Copy link
Contributor

proot strace -f -o trace.txt make

You missed make (perhaps due to word-wrap, because it is in my comment)

@Neo-Oli
Copy link
Member Author

Neo-Oli commented Aug 14, 2016

Oh, sorry. Alright, I ran this command, but it doesn't halt. It's not supposed to run for more than 2 minutes right?

$ proot strace -f -o trace.txt make
^Cproot info: vpid 1: terminated with signal 2

@michalbednarski
Copy link
Contributor

No, it shouldn't on fixed version (though it does on official Termux version from apt, providing trace with just execve and it's arguments, does it match yours trace.txt?, if that matches try reinstalling my fixed proot)

wget https://github.com/termux/termux-packages/files/416004/proot-aarch64.zip
unzip proot-aarch64.zip
dpkg -i proot-aarch64/proot_5.1.100_aarch64.deb

(doesn't work with busybox version of wget; or download using other tool)

Or does it hang still on "fixed" version?

@Neo-Oli
Copy link
Member Author

Neo-Oli commented Aug 14, 2016

Yes it's still hangs on the fixed version. No trace.txt is generated.

@michalbednarski
Copy link
Contributor

So it looks like I cannot debug remotely further, so I'd ask for uname -a and following files from device on which this fails.

/system/bin/linker64
/system/lib64/liblog.so
/system/lib64/libm.so
/system/lib64/libc.so
/system/lib64/libnetd_client.so
/system/lib64/libc++.so

@Neo-Oli
Copy link
Member Author

Neo-Oli commented Aug 14, 2016

$ uname -a
Linux localhost 3.10.84-perf-gfc8e9bb #1 SMP PREEMPT Thu May 5 20:48:38 2016 aarch64 Android

debug.zip

@michalbednarski
Copy link
Contributor

Still wasn't able to reproduce, even with these libraries, I think there's something in kernel, I think that following trace would be helpful (this time running strace on proot)

strace -vs50000 -o trace.txt proot make

@Neo-Oli
Copy link
Member Author

Neo-Oli commented Aug 15, 2016

trace.txt

michalbednarski added a commit to michalbednarski/termux-packages that referenced this issue Aug 17, 2016
@michalbednarski
Copy link
Contributor

Looks like proot behaved like before I fixed it, so either installation (silently?) failed or due to something in proot chained syscalls weren't executed. I've made build with additional verbose logging to help me diagnose it:
proot-aarch64-debug.zip (Just ELF, I suspect there can be something wrong with installation of deb; sources here), so please test it and if it still doesn't work please provide trace.txt from following command

strace -vs50000 -o trace.txt ./proot2 -v 6 make

@Neo-Oli
Copy link
Member Author

Neo-Oli commented Aug 17, 2016

Still doesn't work, but I think it's something else that broke.

~/proot-aarch64-debug 1 $ strace -vs50000 -o trace.txt ./proot2 -v 6 make
CANNOT LINK EXECUTABLE: cannot locate symbol "talloc_reparent" referenced by "./proot2"...
page record for 0x7f7f1c6010 was not found (block_size=64)

trace.txt

@Neo-Oli
Copy link
Member Author

Neo-Oli commented Aug 17, 2016

It also seems to install the first version fine. To test this I uninstalled proot and then just installed your version, rather than updating from the apt one.

$ wget https://github.com/termux/termux-packages/files/416004/proot-aarch64.zip
unzip proot-aarch64.zip
dpkg -i proot-aarch64/proot_5.1.100_aarch64.deb
--2016-08-17 11:50:52--  https://github.com/termux/termux-packages/files/416004/proot-aarch64.zip
Resolving github.com... 192.30.253.112
Connecting to github.com|192.30.253.112|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github-cloud.s3.amazonaws.com/assets/repositories/37346186/416004?X-Amz-Algorithm=
AWS4-HMAC-SHA256&X-Amz-Credential=AKIAISTNZFOVBIJMK3TQ%2F20160817%2Fus-east-1%2Fs3%2Faws4_request&X-
Amz-Date=20160817T095050Z&X-Amz-Expires=300&X-Amz-Signature=2ccf2f6f244a66c1f0b754f47b3bf132523271bf
348319d189ec41f674ce3189&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment
%3Bfilename%3Dproot-aarch64.zip&response-content-type=application%2Fzip [following]
--2016-08-17 11:50:52--  https://github-cloud.s3.amazonaws.com/assets/repositories/37346186/416004?X
-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAISTNZFOVBIJMK3TQ%2F20160817%2Fus-east-1%2Fs3%2F
aws4_request&X-Amz-Date=20160817T095050Z&X-Amz-Expires=300&X-Amz-Signature=2ccf2f6f244a66c1f0b754f47
b3bf132523271bf348319d189ec41f674ce3189&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposi
tion=attachment%3Bfilename%3Dproot-aarch64.zip&response-content-type=application%2Fzip
Resolving github-cloud.s3.amazonaws.com... 54.231.8.169
Connecting to github-cloud.s3.amazonaws.com|54.231.8.169|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 53173 (52K) [application/zip]
Saving to: ‘proot-aarch64.zip’

proot-aarch64.zip        100%[==================================>]  51.93K  65.4KB/s    in 0.8s

2016-08-17 11:50:54 (65.4 KB/s) - ‘proot-aarch64.zip’ saved [53173/53173]

Archive:  proot-aarch64.zip
   creating: proot-aarch64/
  inflating: proot-aarch64/proot_5.1.100_aarch64.deb
(Reading database ... 38680 files and directories currently installed.)
Preparing to unpack .../proot_5.1.100_aarch64.deb ...
Unpacking proot (5.1.100) over (5.1.100) ...
Setting up proot (5.1.100) ...
Processing triggers for man (1.13.4-2) ...

@michalbednarski
Copy link
Contributor

The "CANNOT LINK EXECUTABLE" above means I accidentaly uploaded version requiring debug build of libtalloc, I'll soon upload normal one

@michalbednarski
Copy link
Contributor

proot-aarch64-debug2.zip

Turns out that ELFs in /data/.../bin on build host are not ones ready to be executed

@Neo-Oli
Copy link
Member Author

Neo-Oli commented Aug 17, 2016

Alright, here's the trace.txt and the output

trace.txt

 ~/proot-aarch64-debug2  $ strace -vs50000 -o trace.txt ./proot3 -v 6 make
proot info: binding = /
proot info: vpid 1: translate("/data/data/com.termux/files/home/proot-aarch64-debug2" + "make")
proot info: vpid 1:          -> "/data/data/com.termux/files/home/proot-aarch64-debug2/make"
proot info: vpid 1: translate("/" + "/data/data/com.termux/files/home/bin/3rdpartybinaries/droid/make")
proot info: vpid 1:          -> "/data/data/com.termux/files/home/bin/3rdpartybinaries/droid/make"
proot info: vpid 1: translate("/" + "/data/data/com.termux/files/home/bin/droid/make")
proot info: vpid 1:          -> "/data/data/com.termux/files/home/bin/droid/make"
proot info: vpid 1: translate("/" + "/data/data/com.termux/files/home/bin/3rdpartybinaries/make")
proot info: vpid 1:          -> "/data/data/com.termux/files/home/bin/3rdpartybinaries/make"
proot info: vpid 1: translate("/" + "/data/data/com.termux/files/home/bin/make")
proot info: vpid 1:          -> "/data/data/com.termux/files/home/bin/make"
proot info: vpid 1: translate("/" + "/data/data/com.termux/files/home/.go/bin/make")
proot info: vpid 1: translate("/" + "/data/data/com.termux/files/usr/bin/make")
proot info: vpid 1:          -> "/data/data/com.termux/files/usr/bin/make"
proot info: vpid 1: translate("/" + "/data/data/com.termux/files/usr/bin/make")
proot info: vpid 1:          -> "/data/data/com.termux/files/usr/bin/make"
proot info: exe = /data/data/com.termux/files/usr/bin/make
proot info: argv = make
proot info: initial cwd = /data/data/com.termux/files/home/proot-aarch64-debug2
proot info: verbose level = 6
proot info: Build for testing termux-packages#378
proot info: pid 21253: access to "/dev/pts/5" (fd 0) won't be translated until closed
proot info: pid 21253: access to "/dev/pts/5" (fd 1) won't be translated until closed
proot info: pid 21253: access to "/dev/pts/5" (fd 2) won't be translated until closed
proot info: pid 21253: access to "/proc/21253/fd" (fd 3) won't be translated until closed
proot info: vpid 1: sysenter start: mmap(0x0, 0x40000, 0x3, 0x22, 0xffffffff, 0x0) = 0x0 [0x7ff22f8ed0, 0]
proot info: vpid 1: sysenter end: mmap(0x0, 0x40000, 0x3, 0x22, 0xffffffff, 0x0) = 0x0 [0x7ff22f8ed0, 0]
proot info: vpid 1: sysexit start: mmap(0x7fb2680000, 0x40000, 0x3, 0x22, 0xffffffff, 0x0) = 0x7fb2680000 [0x7ff22f8ed0, 0]
proot info: vpid 1: sysexit end: mmap(0x7fb2680000, 0x40000, 0x3, 0x22, 0xffffffff, 0x0) = 0x7fb2680000 [0x7ff22f8ed0, 0]
proot info: vpid 1: sysenter start: prctl(0x53564d41, 0x0, 0x7fb2680000, 0x40000, 0x7fb2b2f8d8, 0x0) = 0x53564d41 [0x7ff22f8ed0, 0]
proot info: vpid 1: sysenter end: prctl(0x53564d41, 0x0, 0x7fb2680000, 0x40000, 0x7fb2b2f8d8, 0x0) = 0x53564d41 [0x7ff22f8ed0, 0]
proot info: vpid 1: sysexit start: prctl(0x0, 0x0, 0x7fb2680000, 0x40000, 0x7fb2b2f8d8, 0x0) = 0x0 [0x7ff22f8ed0, 0]
proot info: vpid 1: sysexit end: prctl(0x0, 0x0, 0x7fb2680000, 0x40000, 0x7fb2b2f8d8, 0x0) = 0x0 [0x7ff22f8ed0, 0]
proot info: vpid 1: sysenter start: prctl(0x26, 0x1, 0x0, 0x0, 0x0, 0x66) = 0x26 [0x7ff22f9470, 0]
proot info: vpid 1: sysenter end: prctl(0x26, 0x1, 0x0, 0x0, 0x0, 0x66) = 0x26 [0x7ff22f9470, 0]
proot info: vpid 1: sysexit start: prctl(0x0, 0x1, 0x0, 0x0, 0x0, 0x66) = 0x0 [0x7ff22f9470, 0]
proot info: vpid 1: sysexit end: prctl(0x0, 0x1, 0x0, 0x0, 0x0, 0x66) = 0x0 [0x7ff22f9470, 0]
proot info: vpid 1: sysenter start: prctl(0x16, 0x2, 0x7ff22f94e0, 0x0, 0x0, 0x66) = 0x16 [0x7ff22f9470, 0]
proot info: vpid 1: sysenter end: prctl(0x16, 0x2, 0x7ff22f94e0, 0x0, 0x0, 0x66) = 0x16 [0x7ff22f9470, 0]
proot info: vpid 1: sysexit start: prctl(0x0, 0x2, 0x7ff22f94e0, 0x0, 0x0, 0x66) = 0x0 [0x7ff22f9470, 0]
proot info: vpid 1: sysexit end: prctl(0x0, 0x2, 0x7ff22f94e0, 0x0, 0x0, 0x66) = 0x0 [0x7ff22f9470, 0]
proot info: ptrace acceleration (seccomp mode 2) enabled
proot info: vpid 1: sysenter start: execve(0x7fb28b9100, 0x7ff22f9650, 0x7ff22f9660, 0x0, 0x40100401, 0x54) = 0x7fb28b9100 [0x7ff22f8430, 0]
proot info: vpid 1: translate("/" + "/data/data/com.termux/files/usr/bin/make")
proot info: vpid 1:          -> "/data/data/com.termux/files/usr/bin/make"
proot info: vpid 1: translate("/" + "/system/bin/linker64")
proot info: vpid 1:          -> "/system/bin/linker64"
proot info: loader: /data/data/com.termux/files/usr/tmp/prooted-21253-XdsOUq
proot info: vpid 1: sysenter end: execve(0x7ff22f83f7, 0x7ff22f9650, 0x7ff22f9660, 0x0, 0x40100401, 0x54) = 0x7ff22f83f7 [0x7ff22f83f7, 0]
proot info: vpid 1: sysexit start: io_setup(0x0, 0x0, 0x0, 0x0, 0x0, 0x0) = 0x0 [0x7fd89ef070, 0]
proot info: vpid 1: sysexit end: io_setup(0x7fd89eeeb0, 0x0, 0x0, 0x0, 0x0, 0x0) = 0x7fd89eeeb0 [0x7fd89eeeb0, 0]
proot info: vpid 1: sysenter start: openat(0xffffffffffffff9c, 0x7fd89ef030, 0x0, 0x0, 0x0, 0x0) = 0xffffffffffffff9c [0x7fd89eeeb0, 0]
proot info: vpid 1: translate("/" + "/data/data/com.termux/files/usr/bin/make")
proot info: vpid 1:          -> "/data/data/com.termux/files/usr/bin/make"
proot info: vpid 1: sysenter end: openat(0xffffffffffffff9c, 0x7fd89eee87, 0x0, 0x0, 0x0, 0x0) = 0xffffffffffffff9c [0x7fd89eeeb0, 0]
proot info: vpid 1: sysenter start: openat(0xffffffffffffff9c, 0x7fd89ef059, 0x0, 0x0, 0xffffffffffffffff, 0x0) = 0xffffffffffffff9c [0x7fd89eeeb0, 0]
proot info: vpid 1: translate("/" + "/system/bin/linker64")
proot info: vpid 1:          -> "/system/bin/linker64"
proot info: vpid 1: sysenter end: openat(0xffffffffffffff9c, 0x7fd89eee9b, 0x0, 0x0, 0xffffffffffffffff, 0x0) = 0xffffffffffffff9c [0x7fd89eeeb0, 0]
proot info: vpid 1: sysenter start: openat(0xffffff9c, 0x3f00042260, 0x88000, 0x0, 0x17, 0x7fd89ef2d8) = 0xffffff9c [0x7fd89eec20, 0]
proot info: vpid 1: translate("/" + "/dev/__properties__")
proot info: vpid 1:          -> "/dev/__properties__"
proot info: vpid 1: sysenter end: openat(0xffffff9c, 0x7fd89eec0c, 0x88000, 0x0, 0x17, 0x7fd89ef2d8) = 0xffffff9c [0x7fd89eec20, 0]
proot info: vpid 1: sysenter start: openat(0xffffff9c, 0x7fd89eeb90, 0x80000, 0x0, 0x0, 0x7fd89eebbc) = 0xffffff9c [0x7fd89ee960, 0]
proot info: vpid 1: translate("/" + "/data/data/com.termux/files/usr/lib/libc.so")
proot info: vpid 1:          -> "/data/data/com.termux/files/usr/lib/libc.so"
proot info: vpid 1: sysenter end: openat(0xffffff9c, 0x7fd89ee934, 0x80000, 0x0, 0x0, 0x7fd89eebbc) = 0xffffff9c [0x7fd89ee960, 0]
proot info: vpid 1: sysenter start: openat(0xffffff9c, 0x7fd89eeb90, 0x80000, 0x0, 0x72616863747570ff, 0x0) = 0xffffff9c [0x7fd89ee960, 0]
proot info: vpid 1: translate("/" + "/vendor/lib64/libc.so")
proot info: vpid 1:          -> "/system/vendor/lib64/libc.so"
proot info: vpid 1: sysenter end: openat(0xffffff9c, 0x7fd89ee943, 0x80000, 0x0, 0x72616863747570ff, 0x0) = 0xffffff9c [0x7fd89ee960, 0]
proot info: vpid 1: sysenter start: openat(0xffffff9c, 0x7fd89eeb90, 0x80000, 0x0, 0x72616863747570ff, 0x0) = 0xffffff9c [0x7fd89ee960, 0]
proot info: vpid 1: translate("/" + "/system/lib64/libc.so")
proot info: vpid 1:          -> "/system/lib64/libc.so"
proot info: vpid 1: sysenter end: openat(0xffffff9c, 0x7fd89ee94a, 0x80000, 0x0, 0x72616863747570ff, 0x0) = 0xffffff9c [0x7fd89ee960, 0]
proot info: vpid 1: sysenter start: readlinkat(0xffffff9c, 0x7fa24ac010, 0x7fa24ae010, 0x1000, 0x7fa24ae010, 0x7fa24ac010) = 0xffffff9c [0x7fd89ee840, 0]
proot info: vpid 1: translate("/" + "/proc/self/fd/3")
proot info: vpid 1:          -> "/proc/21254/fd/3"
proot info: vpid 1: sysenter end: readlinkat(0xffffff9c, 0x7fd89ee82f, 0x7fa24ae010, 0x1000, 0x7fa24ae010, 0x7fa24ac010) = 0xffffff9c [0x7fd89ee82f, 0]
proot info: vpid 1: sysexit start: readlinkat(0x15, 0x7fd89ee82f, 0x7fa24ae010, 0x1000, 0x7fa24ae010, 0x7fa24ac010) = 0x15 [0x7fd89ee82f, 0]
proot info: vpid 1: sysexit end: readlinkat(0x15, 0x7fa24ac010, 0x7fa24ae010, 0x1000, 0x7fa24ae010, 0x7fa24ac010) = 0x15 [0x7fd89ee840, 0]
proot info: vpid 1: sysenter start: openat(0xffffff9c, 0x7fa249e0b0, 0x88000, 0x0, 0x0, 0x1) = 0xffffff9c [0x7fd89eeb10, 0]
proot info: vpid 1: translate("/" + "/dev/__properties__")
proot info: vpid 1:          -> "/dev/__properties__"
proot info: vpid 1: sysenter end: openat(0xffffff9c, 0x7fd89eeafc, 0x88000, 0x0, 0x0, 0x1) = 0xffffff9c [0x7fd89eeb10, 0]
proot info: vpid 1: sysenter start: openat(0xffffff9c, 0x7fd89ee9d0, 0x80000, 0x0, 0x0, 0x7fd89eea06) = 0xffffff9c [0x7fd89ee7c0, 0]
proot info: vpid 1: translate("/" + "/data/data/com.termux/files/usr/lib/libnetd_client.so")
proot info: vpid 1:          -> "/data/data/com.termux/files/usr/lib/libnetd_client.so"
proot info: vpid 1: sysenter end: openat(0xffffff9c, 0x7fd89ee78a, 0x80000, 0x0, 0x0, 0x7fd89eea06) = 0xffffff9c [0x7fd89ee7c0, 0]
proot info: vpid 1: sysenter start: openat(0xffffff9c, 0x7fd89ee9d0, 0x80000, 0x0, 0xffffffffffffffff, 0x0) = 0xffffff9c [0x7fd89ee7c0, 0]
proot info: vpid 1: translate("/" + "/vendor/lib64/libnetd_client.so")
proot info: vpid 1:          -> "/system/vendor/lib64/libnetd_client.so"
proot info: vpid 1: sysenter end: openat(0xffffff9c, 0x7fd89ee799, 0x80000, 0x0, 0xffffffffffffffff, 0x0) = 0xffffff9c [0x7fd89ee7c0, 0]
proot info: vpid 1: sysenter start: openat(0xffffff9c, 0x7fd89ee9d0, 0x80000, 0x0, 0xffffffffffffffff, 0x0) = 0xffffff9c [0x7fd89ee7c0, 0]
proot info: vpid 1: translate("/" + "/system/lib64/libnetd_client.so")
proot info: vpid 1:          -> "/system/lib64/libnetd_client.so"
proot info: vpid 1: sysenter end: openat(0xffffff9c, 0x7fd89ee7a0, 0x80000, 0x0, 0xffffffffffffffff, 0x0) = 0xffffff9c [0x7fd89ee7c0, 0]
proot info: vpid 1: sysenter start: readlinkat(0xffffff9c, 0x7fa23a1010, 0x7fa23a3010, 0x1000, 0x7fa23a3010, 0x7fa23a1010) = 0xffffff9c [0x7fd89ee6a0, 0]
proot info: vpid 1: translate("/" + "/proc/self/fd/3")
proot info: vpid 1:          -> "/proc/21254/fd/3"
proot info: vpid 1: sysenter end: readlinkat(0xffffff9c, 0x7fd89ee68f, 0x7fa23a3010, 0x1000, 0x7fa23a3010, 0x7fa23a1010) = 0xffffff9c [0x7fd89ee68f, 0]
proot info: vpid 1: sysexit start: readlinkat(0x1f, 0x7fd89ee68f, 0x7fa23a3010, 0x1000, 0x7fa23a3010, 0x7fa23a1010) = 0x1f [0x7fd89ee68f, 0]
proot info: vpid 1: sysexit end: readlinkat(0x1f, 0x7fa23a1010, 0x7fa23a3010, 0x1000, 0x7fa23a3010, 0x7fa23a1010) = 0x1f [0x7fd89ee6a0, 0]
proot info: vpid 1: sysenter start: openat(0xffffff9c, 0x7fd89ee9d0, 0x80000, 0x0, 0x0, 0x7fd89ee9fe) = 0xffffff9c [0x7fd89ee7c0, 0]
proot info: vpid 1: translate("/" + "/data/data/com.termux/files/usr/lib/libc++.so")
proot info: vpid 1:          -> "/data/data/com.termux/files/usr/lib/libc++.so"
proot info: vpid 1: sysenter end: openat(0xffffff9c, 0x7fd89ee792, 0x80000, 0x0, 0x0, 0x7fd89ee9fe) = 0xffffff9c [0x7fd89ee7c0, 0]
proot info: vpid 1: sysenter start: openat(0xffffff9c, 0x7fd89ee9d0, 0x80000, 0x0, 0x2b6362696cffffff, 0x8000000000) = 0xffffff9c [0x7fd89ee7c0, 0]
proot info: vpid 1: translate("/" + "/vendor/lib64/libc++.so")
proot info: vpid 1:          -> "/system/vendor/lib64/libc++.so"
proot info: vpid 1: sysenter end: openat(0xffffff9c, 0x7fd89ee7a1, 0x80000, 0x0, 0x2b6362696cffffff, 0x8000000000) = 0xffffff9c [0x7fd89ee7c0, 0]
proot info: vpid 1: sysenter start: openat(0xffffff9c, 0x7fd89ee9d0, 0x80000, 0x0, 0x2b6362696cffffff, 0x8000000000) = 0xffffff9c [0x7fd89ee7c0, 0]
proot info: vpid 1: translate("/" + "/system/lib64/libc++.so")
proot info: vpid 1:          -> "/system/lib64/libc++.so"
proot info: vpid 1: sysenter end: openat(0xffffff9c, 0x7fd89ee7a8, 0x80000, 0x0, 0x2b6362696cffffff, 0x8000000000) = 0xffffff9c [0x7fd89ee7c0, 0]
proot info: vpid 1: sysenter start: readlinkat(0xffffff9c, 0x7fa238e010, 0x7fa2390010, 0x1000, 0x7fa2390010, 0x7fa238e010) = 0xffffff9c [0x7fd89ee6a0, 0]
proot info: vpid 1: translate("/" + "/proc/self/fd/3")
proot info: vpid 1:          -> "/proc/21254/fd/3"
proot info: vpid 1: sysenter end: readlinkat(0xffffff9c, 0x7fd89ee68f, 0x7fa2390010, 0x1000, 0x7fa2390010, 0x7fa238e010) = 0xffffff9c [0x7fd89ee68f, 0]
proot info: vpid 1: sysexit start: readlinkat(0x17, 0x7fd89ee68f, 0x7fa2390010, 0x1000, 0x7fa2390010, 0x7fa238e010) = 0x17 [0x7fd89ee68f, 0]
proot info: vpid 1: sysexit end: readlinkat(0x17, 0x7fa238e010, 0x7fa2390010, 0x1000, 0x7fa2390010, 0x7fa238e010) = 0x17 [0x7fd89ee6a0, 0]
proot info: vpid 1: sysenter start: openat(0xffffff9c, 0x7fd89ee9d0, 0x80000, 0x0, 0x0, 0x7fd89ee9fc) = 0xffffff9c [0x7fd89ee7c0, 0]
proot info: vpid 1: translate("/" + "/data/data/com.termux/files/usr/lib/libm.so")
proot info: vpid 1:          -> "/data/data/com.termux/files/usr/lib/libm.so"
proot info: vpid 1: sysenter end: openat(0xffffff9c, 0x7fd89ee794, 0x80000, 0x0, 0x0, 0x7fd89ee9fc) = 0xffffff9c [0x7fd89ee7c0, 0]
proot info: vpid 1: sysenter start: openat(0xffffff9c, 0x7fd89ee9d0, 0x80000, 0x0, 0x655fffffffffffff, 0x0) = 0xffffff9c [0x7fd89ee7c0, 0]
proot info: vpid 1: translate("/" + "/vendor/lib64/libm.so")
proot info: vpid 1:          -> "/system/vendor/lib64/libm.so"
proot info: vpid 1: sysenter end: openat(0xffffff9c, 0x7fd89ee7a3, 0x80000, 0x0, 0x655fffffffffffff, 0x0) = 0xffffff9c [0x7fd89ee7c0, 0]
proot info: vpid 1: sysenter start: openat(0xffffff9c, 0x7fd89ee9d0, 0x80000, 0x0, 0x655fffffffffffff, 0x0) = 0xffffff9c [0x7fd89ee7c0, 0]
proot info: vpid 1: translate("/" + "/system/lib64/libm.so")
proot info: vpid 1:          -> "/system/lib64/libm.so"
proot info: vpid 1: sysenter end: openat(0xffffff9c, 0x7fd89ee7aa, 0x80000, 0x0, 0x655fffffffffffff, 0x0) = 0xffffff9c [0x7fd89ee7c0, 0]
proot info: vpid 1: sysenter start: readlinkat(0xffffff9c, 0x7fa229d010, 0x7fa229f010, 0x1000, 0x7fa229f010, 0x7fa229d010) = 0xffffff9c [0x7fd89ee6a0, 0]
proot info: vpid 1: translate("/" + "/proc/self/fd/3")
proot info: vpid 1:          -> "/proc/21254/fd/3"
proot info: vpid 1: sysenter end: readlinkat(0xffffff9c, 0x7fd89ee68f, 0x7fa229f010, 0x1000, 0x7fa229f010, 0x7fa229d010) = 0xffffff9c [0x7fd89ee68f, 0]
proot info: vpid 1: sysexit start: readlinkat(0x15, 0x7fd89ee68f, 0x7fa229f010, 0x1000, 0x7fa229f010, 0x7fa229d010) = 0x15 [0x7fd89ee68f, 0]
proot info: vpid 1: sysexit end: readlinkat(0x15, 0x7fa229d010, 0x7fa229f010, 0x1000, 0x7fa229f010, 0x7fa229d010) = 0x15 [0x7fd89ee6a0, 0]
proot info: vpid 1: sysenter start: brk(0x0, 0x0, 0x0, 0x0, 0x2000, 0x0) = 0x0 [0x7fd89ee4b0, 0]
proot info: vpid 1: sysenter end: mmap(0x3000044000, 0x1000, 0x3, 0x22, 0xffffffffffffffff, 0x0) = 0x3000044000 [0x7fd89ee4b0, 0]
proot info: vpid 1: sysexit start: mmap(0x3000044000, 0x1000, 0x3, 0x22, 0xffffffffffffffff, 0x0) = 0x3000044000 [0x7fd89ee4b0, 0]
proot info: vpid 1: sysexit end: brk(0x3000045000, 0x0, 0x0, 0x0, 0x2000, 0x0) = 0x3000045000 [0x7fd89ee4b0, 0]
proot info: vpid 1: sysenter start: openat(0xffffff9c, 0x7fa24632d8, 0x80000, 0x0, 0x2000, 0x4000) = 0xffffff9c [0x7fd89ee2a0, 0]
proot info: vpid 1: translate("/" + "/proc/stat")
proot info: vpid 1:          -> "/proc/stat"
proot info: vpid 1: sysenter end: openat(0xffffff9c, 0x7fd89ee295, 0x80000, 0x0, 0x2000, 0x4000) = 0xffffff9c [0x7fd89ee2a0, 0]
proot info: vpid 1: sysenter start: setrlimit(0x3, 0x7fd89ee010, 0x800000, 0xffffffffffffffff, 0x0, 0x0) = 0x3 [0x7fd89ed760, 0]
proot info: vpid 1: sysenter end: setrlimit(0x3, 0x7fd89ee010, 0x800000, 0xffffffffffffffff, 0x0, 0x0) = 0x3 [0x7fd89ed760, 0]
proot info: vpid 1: sysexit start: setrlimit(0x0, 0x7fd89ee010, 0x800000, 0xffffffffffffffff, 0x0, 0x0) = 0x0 [0x7fd89ed760, 0]
proot info: vpid 1: sysexit end: setrlimit(0x0, 0x7fd89ee010, 0x800000, 0xffffffffffffffff, 0x0, 0x0) = 0x0 [0x7fd89ed760, 0]
proot info: vpid 1: sysenter start: getcwd(0x7fd89ee010, 0x1000, 0x0, 0x18, 0x8, 0x5c) = 0x7fd89ee010 [0x7fd89ed720, 0]
proot info: vpid 1: sysenter end: void(0x7fd89ee010, 0x1000, 0x0, 0x18, 0x8, 0x5c) = 0x7fd89ee010 [0x7fd89ed720, 0]
proot info: vpid 1: sysexit start: mmap(0x0, 0x40000, 0x3, 0x22, 0xffffffff, 0x0) = 0x0 [0x7fd89ed330, 0]
proot info: vpid 1: translate("/data/data/com.termux/files/home/proot-aarch64-debug2" + ".")
proot info: vpid 1:          -> "/data/data/com.termux/files/home/proot-aarch64-debug2/."
proot info: vpid 1: sysexit end: getcwd(0x36, 0x1000, 0x0, 0x18, 0x8, 0x5c) = 0x36 [0x7fd89ed720, 0]
proot info: vpid 1: sysenter start: connect(0x3, 0x7fa24db618, 0x6e, 0x3f00042000, 0x3f0001668c, 0x7fa24db685) = 0x3 [0x7fa24db5d0, 0]
proot info: vpid 1: translate("/" + "/dev/socket/logdw")
proot info: vpid 1:          -> "/dev/socket/logdw"
proot info: vpid 1: sysenter end: connect(0x3, 0x7fa24db562, 0x6e, 0x3f00042000, 0x3f0001668c, 0x7fa24db685) = 0x3 [0x7fa24db5d0, 0]
proot info: vpid 1: sysenter start: connect(0x3, 0x7fa24dbc70, 0x14, 0x3f00042000, 0x3f0001668c, 0x7fa24dbc73) = 0x3 [0x7fa24dbc20, 0]
proot info: vpid 1: sysenter end: connect(0x3, 0x7fa24dbc70, 0x14, 0x3f00042000, 0x3f0001668c, 0x7fa24dbc73) = 0x3 [0x7fa24dbc20, 0]
proot info: vpid 1: translate("/" + "/data/data/com.termux/files/usr/bin/make")
proot info: vpid 1:          -> "/data/data/com.termux/files/usr/bin/make"
proot info: vpid 1: terminated with signal 11
 ~/proot-aarch64-debug2   255  $

@ghost ghost locked and limited conversation to collaborators Oct 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug report Something is not working properly
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants