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 info: pid 19967: terminated with signal 31 #134

Open
liuchibing opened this issue Dec 5, 2017 · 6 comments
Open

proot info: pid 19967: terminated with signal 31 #134

liuchibing opened this issue Dec 5, 2017 · 6 comments

Comments

@liuchibing
Copy link

When I run proot on a aarch64 cpu, i got this:

$ proot -v 10
proot info: binding = /
proot info: pid 19966: translate("/" + "/bin/sh")
proot info: pid 19966: -> "/bin/dash"
proot info: pid 19966: translate("/" + "/bin/sh")
proot info: pid 19966: -> "/bin/sh"
proot info: exe = /bin/sh
proot info: argv =
proot info: initial cwd = /home/liuchibing
proot info: verbose level = 10
proot info: pid 19966: access to "/dev/pts/0" (fd 0) won't be translated until closed
proot info: pid 19966: access to "/dev/pts/0" (fd 1) won't be translated until closed
proot info: pid 19966: access to "/dev/pts/0" (fd 2) won't be translated until closed
proot info: pid 19966: access to "/proc/19966/fd" (fd 3) won't be translated until closed
proot info: pid 19967: sysenter start: prctl(0x26, 0x1, 0x0, 0x0, 0x0, 0x1) = 0x26 [0x7fdeb1f800, 0]
proot info: pid 19967: sysenter end: prctl(0x26, 0x1, 0x0, 0x0, 0x0, 0x1) = 0x26 [0x7fdeb1f800, 0]
proot info: pid 19967: sysexit start: prctl(0x0, 0x1, 0x0, 0x0, 0x0, 0x1) = 0x0 [0x7fdeb1f800, 0]
proot info: pid 19967: sysexit end: prctl(0x0, 0x1, 0x0, 0x0, 0x0, 0x1) = 0x0 [0x7fdeb1f800, 0]
proot info: pid 19967: sysenter start: prctl(0x16, 0x2, 0x7fdeb1f838, 0x0, 0x0, 0x1) = 0x16 [0x7fdeb1f800, 0]
proot info: pid 19967: sysenter end: prctl(0x16, 0x2, 0x7fdeb1f838, 0x0, 0x0, 0x1) = 0x16 [0x7fdeb1f800, 0]
proot info: pid 19967: sysexit start: prctl(0x0, 0x2, 0x7fdeb1f838, 0x0, 0x0, 0x1) = 0x0 [0x7fdeb1f800, 0]
proot info: pid 19967: sysexit end: prctl(0x0, 0x2, 0x7fdeb1f838, 0x0, 0x0, 0x1) = 0x0 [0x7fdeb1f800, 0]
proot info: pid 19967: translate("/" + "/bin/sh")
proot info: pid 19967: -> "/bin/sh"
proot info: pid 19967: terminated with signal 31

Is there any solutions?

@pespin
Copy link

pespin commented Mar 13, 2018

Same here with both 5.0.0 and latest master.
Running host: Linux docker 4.9.0-0.bpo.5-amd64 #1 SMP Debian 4.9.65-3+deb9u2~bpo8+1 (2017-01-05) x86_64 GNU/Linux
Trying to run something against a debian ARM rootfs (with qemu-arm-static).
All commands fails with "terminated with signal 31". Same setup used to work in a similar host.

Actually, it seems to fail even without using the qemu-arm-static part. It fails both with and without PROOT_NO_SECCOMP=1.

osmocom-build@docker:/tmp/bla/PRoot/src$ ./proot -v 10 seq 10
proot info: binding = /
proot info: vpid 1: translate("/tmp/bla/PRoot/src" + "seq")
proot info: vpid 1:          -> "/tmp/bla/PRoot/src/seq"
proot info: vpid 1: translate("/" + "/usr/local/bin/seq")
proot info: vpid 1:          -> "/usr/local/bin/seq"
proot info: vpid 1: translate("/" + "/usr/bin/seq")
proot info: vpid 1:          -> "/usr/bin/seq"
proot info: vpid 1: translate("/" + "/usr/bin/seq")
proot info: vpid 1:          -> "/usr/bin/seq"
proot info: exe = /usr/bin/seq
proot info: argv = seq 10
proot info: initial cwd = /tmp/bla/PRoot/src
proot info: verbose level = 10
proot info: pid 26682: access to "/dev/pts/2" (fd 0) won't be translated until closed
proot info: pid 26682: access to "/dev/pts/2" (fd 1) won't be translated until closed
proot info: pid 26682: access to "/dev/pts/2" (fd 2) won't be translated until closed
proot info: pid 26682: access to "/proc/26682/fd" (fd 3) won't be translated until closed
proot info: vpid 1: sysenter start: execve(0x55969d99bb70, 0x7fff4e31fb30, 0x7fff4e31fb48, 0x5b5, 0x0, 0xf) = 0xffffffffffffffda [0x7fff4e31f908, 0]
proot info: vpid 1: translate("/" + "/usr/bin/seq")
proot info: vpid 1:          -> "/usr/bin/seq"
proot info: vpid 1: translate("/" + "/lib64/ld-linux-x86-64.so.2")
proot info: vpid 1:          -> "/lib/x86_64-linux-gnu/ld-2.24.so"
proot info: loader: /tmp/prooted-26682-bUjAVq
proot info: vpid 1: sysenter end: execve(0x7fff4e31f86e, 0x7fff4e31fb30, 0x7fff4e31fb48, 0x5b5, 0x0, 0xf) = 0xffffffffffffffda [0x7fff4e31f86e, 0]
proot info: vpid 1: sysexit start: execve(0x0, 0x0, 0x0, 0x0, 0x0, 0x0) = 0x0 [0x7ffe15ec69f0, 0]
proot info: vpid 1: sysexit end: execve(0x7ffe15ec6870, 0x0, 0x0, 0x0, 0x0, 0x0) = 0x0 [0x7ffe15ec6870, 0]
proot info: vpid 1: sysenter start: open(0x7ffe15ec69c0, 0x0, 0x0, 0x0, 0x0, 0x0) = 0xffffffffffffffda [0x7ffe15ec6838, 0]
proot info: vpid 1: translate("/" + "/usr/bin/seq")
proot info: vpid 1:          -> "/usr/bin/seq"
proot info: vpid 1: sysenter end: open(0x7ffe15ec67ab, 0x0, 0x0, 0x0, 0x0, 0x0) = 0xffffffffffffffda [0x7ffe15ec67ab, 0]
proot info: vpid 1: sysexit start: open(0x7ffe15ec67ab, 0x0, 0x0, 0x0, 0x0, 0x0) = 0x3 [0x7ffe15ec67ab, 0]
proot info: vpid 1: sysexit end: open(0x7ffe15ec69c0, 0x0, 0x0, 0x0, 0x0, 0x0) = 0x3 [0x7ffe15ec6838, 0]
proot info: vpid 1: sysenter start: mmap(0x500000000000, 0xb000, 0x5, 0x12, 0x3, 0x0) = 0xffffffffffffffda [0x7ffe15ec6838, 0]
proot info: vpid 1: sysenter end: mmap(0x500000000000, 0xb000, 0x5, 0x12, 0x3, 0x0) = 0xffffffffffffffda [0x7ffe15ec6838, 0]
proot info: vpid 1: sysexit start: mmap(0x500000000000, 0xb000, 0x5, 0x12, 0x3, 0x0) = 0x500000000000 [0x7ffe15ec6838, 0]
proot info: vpid 1: sysexit end: mmap(0x500000000000, 0xb000, 0x5, 0x12, 0x3, 0x0) = 0x500000000000 [0x7ffe15ec6838, 0]
proot info: vpid 1: sysenter start: mmap(0x50000020a000, 0x2000, 0x3, 0x12, 0x3, 0xa000) = 0xffffffffffffffda [0x7ffe15ec6838, 0]
proot info: vpid 1: sysenter end: mmap(0x50000020a000, 0x2000, 0x3, 0x12, 0x3, 0xa000) = 0xffffffffffffffda [0x7ffe15ec6838, 0]
proot info: vpid 1: sysexit start: mmap(0x50000020a000, 0x2000, 0x3, 0x12, 0x3, 0xa000) = 0x50000020a000 [0x7ffe15ec6838, 0]
proot info: vpid 1: sysexit end: mmap(0x50000020a000, 0x2000, 0x3, 0x12, 0x3, 0xa000) = 0x50000020a000 [0x7ffe15ec6838, 0]
proot info: vpid 1: sysenter start: close(0x3, 0x50000020c000, 0x50000020c000, 0x12, 0x3, 0xa000) = 0xffffffffffffffda [0x7ffe15ec6838, 0]
proot info: vpid 1: sysenter end: close(0x3, 0x50000020c000, 0x50000020c000, 0x12, 0x3, 0xa000) = 0xffffffffffffffda [0x7ffe15ec6838, 0]
proot info: vpid 1: sysexit start: close(0x3, 0x50000020c000, 0x50000020c000, 0x12, 0x3, 0xa000) = 0x0 [0x7ffe15ec6838, 0]
proot info: vpid 1: sysexit end: close(0x3, 0x50000020c000, 0x50000020c000, 0x12, 0x3, 0xa000) = 0x0 [0x7ffe15ec6838, 0]
proot info: vpid 1: sysenter start: open(0x7ffe15ec69cd, 0x0, 0x0, 0x12, 0x3, 0xa000) = 0xffffffffffffffda [0x7ffe15ec6838, 0]
proot info: vpid 1: translate("/" + "/lib64/ld-linux-x86-64.so.2")
proot info: vpid 1:          -> "/lib/x86_64-linux-gnu/ld-2.24.so"
proot info: vpid 1: sysenter end: open(0x7ffe15ec6797, 0x0, 0x0, 0x12, 0x3, 0xa000) = 0xffffffffffffffda [0x7ffe15ec6797, 0]
proot info: vpid 1: sysexit start: open(0x7ffe15ec6797, 0x0, 0x0, 0x12, 0x3, 0xa000) = 0x3 [0x7ffe15ec6797, 0]
proot info: vpid 1: sysexit end: open(0x7ffe15ec69cd, 0x0, 0x0, 0x12, 0x3, 0xa000) = 0x3 [0x7ffe15ec6838, 0]
proot info: vpid 1: sysenter start: mmap(0x6f0000000000, 0x23000, 0x5, 0x12, 0x3, 0x0) = 0xffffffffffffffda [0x7ffe15ec6838, 0]
proot info: vpid 1: sysenter end: mmap(0x6f0000000000, 0x23000, 0x5, 0x12, 0x3, 0x0) = 0xffffffffffffffda [0x7ffe15ec6838, 0]
proot info: vpid 1: sysexit start: mmap(0x6f0000000000, 0x23000, 0x5, 0x12, 0x3, 0x0) = 0x6f0000000000 [0x7ffe15ec6838, 0]
proot info: vpid 1: sysexit end: mmap(0x6f0000000000, 0x23000, 0x5, 0x12, 0x3, 0x0) = 0x6f0000000000 [0x7ffe15ec6838, 0]
proot info: vpid 1: sysenter start: mmap(0x6f0000223000, 0x2000, 0x3, 0x12, 0x3, 0x23000) = 0xffffffffffffffda [0x7ffe15ec6838, 0]
proot info: vpid 1: sysenter end: mmap(0x6f0000223000, 0x2000, 0x3, 0x12, 0x3, 0x23000) = 0xffffffffffffffda [0x7ffe15ec6838, 0]
proot info: vpid 1: sysexit start: mmap(0x6f0000223000, 0x2000, 0x3, 0x12, 0x3, 0x23000) = 0x6f0000223000 [0x7ffe15ec6838, 0]
proot info: vpid 1: sysexit end: mmap(0x6f0000223000, 0x2000, 0x3, 0x12, 0x3, 0x23000) = 0x6f0000223000 [0x7ffe15ec6838, 0]
proot info: vpid 1: sysenter start: mmap(0x6f0000225000, 0x1000, 0x3, 0x32, 0xffffffffffffffff, 0x0) = 0xffffffffffffffda [0x7ffe15ec6838, 0]
proot info: vpid 1: sysenter end: mmap(0x6f0000225000, 0x1000, 0x3, 0x32, 0xffffffffffffffff, 0x0) = 0xffffffffffffffda [0x7ffe15ec6838, 0]
proot info: vpid 1: sysexit start: mmap(0x6f0000225000, 0x1000, 0x3, 0x32, 0xffffffffffffffff, 0x0) = 0x6f0000225000 [0x7ffe15ec6838, 0]
proot info: vpid 1: sysexit end: mmap(0x6f0000225000, 0x1000, 0x3, 0x32, 0xffffffffffffffff, 0x0) = 0x6f0000225000 [0x7ffe15ec6838, 0]
proot info: vpid 1: sysenter start: close(0x3, 0x7ffe15ec7844, 0x7ffe15ec69f0, 0x32, 0x0, 0x2) = 0xffffffffffffffda [0x7ffe15ec6838, 0]
proot info: vpid 1: sysenter end: close(0x3, 0x7ffe15ec7844, 0x7ffe15ec69f0, 0x32, 0x0, 0x2) = 0xffffffffffffffda [0x7ffe15ec6838, 0]
proot info: vpid 1: sysexit start: close(0x3, 0x7ffe15ec7844, 0x7ffe15ec69f0, 0x32, 0x0, 0x2) = 0x0 [0x7ffe15ec6838, 0]
proot info: vpid 1: sysexit end: close(0x3, 0x7ffe15ec7844, 0x7ffe15ec69f0, 0x32, 0x0, 0x2) = 0x0 [0x7ffe15ec6838, 0]
proot info: vpid 1: sysenter start: prctl(0xf, 0x7ffe15ec69c9, 0x0, 0x32, 0x0, 0x2) = 0xffffffffffffffda [0x7ffe15ec6838, 0]
proot info: vpid 1: sysenter end: prctl(0xf, 0x7ffe15ec69c9, 0x0, 0x32, 0x0, 0x2) = 0xffffffffffffffda [0x7ffe15ec6838, 0]
proot info: vpid 1: sysexit start: prctl(0xf, 0x7ffe15ec69c9, 0x0, 0x32, 0x0, 0x2) = 0x0 [0x7ffe15ec6838, 0]
proot info: vpid 1: sysexit end: prctl(0xf, 0x7ffe15ec69c9, 0x0, 0x32, 0x0, 0x2) = 0x0 [0x7ffe15ec6838, 0]
proot info: vpid 1: sysenter start: brk(0x0, 0x500000002aa0, 0x7ffe15ec6be0, 0x1, 0x1, 0x7ffe15ec6c09) = 0xffffffffffffffda [0x7ffe15ec68d8, 0]
proot info: vpid 1: sysenter end: mmap(0x50000020c000, 0x1000, 0x3, 0x22, 0xffffffffffffffff, 0x0) = 0xffffffffffffffda [0x7ffe15ec68d8, 0]
proot info: vpid 1: sysexit start: mmap(0x50000020c000, 0x1000, 0x3, 0x22, 0xffffffffffffffff, 0x0) = 0x50000020c000 [0x7ffe15ec68d8, 0]
proot info: vpid 1: sysexit end: brk(0x0, 0x500000002aa0, 0x7ffe15ec6be0, 0x1, 0x1, 0x7ffe15ec6c09) = 0x50000020d000 [0x7ffe15ec68d8, 0]
proot info: vpid 1: sysenter start: access(0x6f000001d5aa, 0x0, 0x6f0000223e38, 0x10, 0x7ffe15f067b0, 0x7ffe15f06040) = 0xffffffffffffffda [0x7ffe15ec65e8, 0]
proot info: vpid 1: translate("/" + "/etc/ld.so.nohwcap")
proot info: vpid 1:          -> "/etc/ld.so.nohwcap"
proot info: vpid 1: sysenter end: access(0x7ffe15ec6555, 0x0, 0x6f0000223e38, 0x10, 0x7ffe15f067b0, 0x7ffe15f06040) = 0xffffffffffffffda [0x7ffe15ec6555, 0]
proot info: vpid 1: sysexit start: access(0x7ffe15ec6555, 0x0, 0x6f0000223e38, 0x10, 0x7ffe15f067b0, 0x7ffe15f06040) = 0xfffffffffffffffe [0x7ffe15ec6555, 0]
proot info: vpid 1: sysexit end: access(0x6f000001d5aa, 0x0, 0x6f0000223e38, 0x10, 0x7ffe15f067b0, 0x7ffe15f06040) = 0xfffffffffffffffe [0x7ffe15ec65e8, 0]
proot info: vpid 1: sysenter start: mmap(0x0, 0x3000, 0x3, 0x22, 0xffffffffffffffff, 0x0) = 0xffffffffffffffda [0x7ffe15ec6648, 0]
proot info: vpid 1: sysenter end: mmap(0x0, 0x3000, 0x3, 0x22, 0xffffffffffffffff, 0x0) = 0xffffffffffffffda [0x7ffe15ec6648, 0]
proot info: vpid 1: sysexit start: mmap(0x0, 0x3000, 0x3, 0x22, 0xffffffffffffffff, 0x0) = 0x7fbe63a1a000 [0x7ffe15ec6648, 0]
proot info: vpid 1: sysexit end: mmap(0x0, 0x3000, 0x3, 0x22, 0xffffffffffffffff, 0x0) = 0x7fbe63a1a000 [0x7ffe15ec6648, 0]
proot info: vpid 1: sysenter start: access(0x6f000001fd30, 0x4, 0x6f0000000190, 0x6f0000225c20, 0x50, 0x6f000001d3da) = 0xffffffffffffffda [0x7ffe15ec66c8, 0]
proot info: vpid 1: translate("/" + "/etc/ld.so.preload")
proot info: vpid 1:          -> "/etc/ld.so.preload"
proot info: vpid 1: sysenter end: access(0x7ffe15ec6635, 0x4, 0x6f0000000190, 0x6f0000225c20, 0x50, 0x6f000001d3da) = 0xffffffffffffffda [0x7ffe15ec6635, 0]
proot info: vpid 1: sysexit start: access(0x7ffe15ec6635, 0x4, 0x6f0000000190, 0x6f0000225c20, 0x50, 0x6f000001d3da) = 0xfffffffffffffffe [0x7ffe15ec6635, 0]
proot info: vpid 1: sysexit end: access(0x6f000001fd30, 0x4, 0x6f0000000190, 0x6f0000225c20, 0x50, 0x6f000001d3da) = 0xfffffffffffffffe [0x7ffe15ec66c8, 0]
proot info: vpid 1: sysenter start: open(0x6f000001da49, 0x80000, 0x1, 0x6f0000225518, 0xffff, 0x3) = 0xffffffffffffffda [0x7ffe15ec5ed8, 0]
proot info: vpid 1: translate("/" + "/etc/ld.so.cache")
proot info: vpid 1:          -> "/etc/ld.so.cache"
proot info: vpid 1: sysenter end: open(0x7ffe15ec5e47, 0x80000, 0x1, 0x6f0000225518, 0xffff, 0x3) = 0xffffffffffffffda [0x7ffe15ec5e47, 0]
proot info: vpid 1: sysexit start: open(0x7ffe15ec5e47, 0x80000, 0x1, 0x6f0000225518, 0xffff, 0x3) = 0x3 [0x7ffe15ec5e47, 0]
proot info: vpid 1: sysexit end: open(0x6f000001da49, 0x80000, 0x1, 0x6f0000225518, 0xffff, 0x3) = 0x3 [0x7ffe15ec5ed8, 0]
proot info: vpid 1: sysenter start: fstat(0x3, 0x7ffe15ec5ee0, 0x7ffe15ec5ee0, 0x6f0000225518, 0xffff, 0x3) = 0xffffffffffffffda [0x7ffe15ec5ed8, 0]
proot info: vpid 1: sysenter end: fstat(0x3, 0x7ffe15ec5ee0, 0x7ffe15ec5ee0, 0x6f0000225518, 0xffff, 0x3) = 0xffffffffffffffda [0x7ffe15ec5ed8, 0]
proot info: vpid 1: sysexit start: fstat(0x3, 0x7ffe15ec5ee0, 0x7ffe15ec5ee0, 0x6f0000225518, 0xffff, 0x3) = 0x0 [0x7ffe15ec5ed8, 0]
proot info: vpid 1: sysexit end: fstat(0x3, 0x7ffe15ec5ee0, 0x7ffe15ec5ee0, 0x6f0000225518, 0xffff, 0x3) = 0x0 [0x7ffe15ec5ed8, 0]
proot info: vpid 1: sysenter start: mmap(0x0, 0xaa35, 0x1, 0x2, 0x3, 0x0) = 0xffffffffffffffda [0x7ffe15ec5ea8, 0]
proot info: vpid 1: sysenter end: mmap(0x0, 0xaa35, 0x1, 0x2, 0x3, 0x0) = 0xffffffffffffffda [0x7ffe15ec5ea8, 0]
proot info: vpid 1: sysexit start: mmap(0x0, 0xaa35, 0x1, 0x2, 0x3, 0x0) = 0x7fbe63a0f000 [0x7ffe15ec5ea8, 0]
proot info: vpid 1: sysexit end: mmap(0x0, 0xaa35, 0x1, 0x2, 0x3, 0x0) = 0x7fbe63a0f000 [0x7ffe15ec5ea8, 0]
proot info: vpid 1: sysenter start: close(0x3, 0xaa35, 0x1, 0x2, 0x3, 0x0) = 0xffffffffffffffda [0x7ffe15ec5ed8, 0]
proot info: vpid 1: sysenter end: close(0x3, 0xaa35, 0x1, 0x2, 0x3, 0x0) = 0xffffffffffffffda [0x7ffe15ec5ed8, 0]
proot info: vpid 1: sysexit start: close(0x3, 0xaa35, 0x1, 0x2, 0x3, 0x0) = 0x0 [0x7ffe15ec5ed8, 0]
proot info: vpid 1: sysexit end: close(0x3, 0xaa35, 0x1, 0x2, 0x3, 0x0) = 0x0 [0x7ffe15ec5ed8, 0]
proot info: vpid 1: sysenter start: access(0x6f000001d5aa, 0x0, 0x0, 0x10, 0x3, 0x0) = 0xffffffffffffffda [0x7ffe15ec5f98, 0]
proot info: vpid 1: translate("/" + "/etc/ld.so.nohwcap")
proot info: vpid 1:          -> "/etc/ld.so.nohwcap"
proot info: vpid 1: sysenter end: access(0x7ffe15ec5f05, 0x0, 0x0, 0x10, 0x3, 0x0) = 0xffffffffffffffda [0x7ffe15ec5f05, 0]
proot info: vpid 1: sysexit start: access(0x7ffe15ec5f05, 0x0, 0x0, 0x10, 0x3, 0x0) = 0xfffffffffffffffe [0x7ffe15ec5f05, 0]
proot info: vpid 1: sysexit end: access(0x6f000001d5aa, 0x0, 0x0, 0x10, 0x3, 0x0) = 0xfffffffffffffffe [0x7ffe15ec5f98, 0]
proot info: vpid 1: sysenter start: open(0x7fbe63a1b4a0, 0x80000, 0x6f0000225170, 0x7ffe15ec6080, 0x0, 0x7ffe15ec606f) = 0xffffffffffffffda [0x7ffe15ec5f98, 0]
proot info: vpid 1: translate("/" + "/lib/x86_64-linux-gnu/libc.so.6")
proot info: vpid 1:          -> "/lib/x86_64-linux-gnu/libc-2.24.so"
proot info: vpid 1: sysenter end: open(0x7ffe15ec5ef5, 0x80000, 0x6f0000225170, 0x7ffe15ec6080, 0x0, 0x7ffe15ec606f) = 0xffffffffffffffda [0x7ffe15ec5ef5, 0]
proot info: vpid 1: sysexit start: open(0x7ffe15ec5ef5, 0x80000, 0x6f0000225170, 0x7ffe15ec6080, 0x0, 0x7ffe15ec606f) = 0x3 [0x7ffe15ec5ef5, 0]
proot info: vpid 1: sysexit end: open(0x7fbe63a1b4a0, 0x80000, 0x6f0000225170, 0x7ffe15ec6080, 0x0, 0x7ffe15ec606f) = 0x3 [0x7ffe15ec5f98, 0]
proot info: vpid 1: sysenter start: read(0x3, 0x7ffe15ec6088, 0x340, 0x7ffe15ec6080, 0x0, 0x7ffe15ec606f) = 0xffffffffffffffda [0x7ffe15ec5f98, 0]
proot info: vpid 1: sysenter end: read(0x3, 0x7ffe15ec6088, 0x340, 0x7ffe15ec6080, 0x0, 0x7ffe15ec606f) = 0xffffffffffffffda [0x7ffe15ec5f98, 0]
proot info: vpid 1: sysexit start: read(0x3, 0x7ffe15ec6088, 0x340, 0x7ffe15ec6080, 0x0, 0x7ffe15ec606f) = 0x340 [0x7ffe15ec5f98, 0]
proot info: vpid 1: sysexit end: read(0x3, 0x7ffe15ec6088, 0x340, 0x7ffe15ec6080, 0x0, 0x7ffe15ec606f) = 0x340 [0x7ffe15ec5f98, 0]
proot info: vpid 1: sysenter start: fstat(0x3, 0x7ffe15ec5f20, 0x7ffe15ec5f20, 0x7ffe15ec6080, 0x7fbe63a1b4a0, 0x6f0000225170) = 0xffffffffffffffda [0x7ffe15ec5e98, 0]
proot info: vpid 1: sysenter end: fstat(0x3, 0x7ffe15ec5f20, 0x7ffe15ec5f20, 0x7ffe15ec6080, 0x7fbe63a1b4a0, 0x6f0000225170) = 0xffffffffffffffda [0x7ffe15ec5e98, 0]
proot info: vpid 1: sysexit start: fstat(0x3, 0x7ffe15ec5f20, 0x7ffe15ec5f20, 0x7ffe15ec6080, 0x7fbe63a1b4a0, 0x6f0000225170) = 0x0 [0x7ffe15ec5e98, 0]
proot info: vpid 1: sysexit end: fstat(0x3, 0x7ffe15ec5f20, 0x7ffe15ec5f20, 0x7ffe15ec6080, 0x7fbe63a1b4a0, 0x6f0000225170) = 0x0 [0x7ffe15ec5e98, 0]
proot info: vpid 1: sysenter start: mmap(0x0, 0x39e960, 0x5, 0x802, 0x3, 0x0) = 0xffffffffffffffda [0x7ffe15ec5c78, 0]
proot info: vpid 1: sysenter end: mmap(0x0, 0x39e960, 0x5, 0x802, 0x3, 0x0) = 0xffffffffffffffda [0x7ffe15ec5c78, 0]
proot info: vpid 1: sysexit start: mmap(0x0, 0x39e960, 0x5, 0x802, 0x3, 0x0) = 0x7fbe63670000 [0x7ffe15ec5c78, 0]
proot info: vpid 1: sysexit end: mmap(0x0, 0x39e960, 0x5, 0x802, 0x3, 0x0) = 0x7fbe63670000 [0x7ffe15ec5c78, 0]
proot info: vpid 1: sysenter start: mprotect(0x7fbe63805000, 0x200000, 0x0, 0x7ffe15ec5cb0, 0x3, 0x0) = 0xffffffffffffffda [0x7ffe15ec5ca8, 0]
proot info: vpid 1: sysenter end: mprotect(0x7fbe63805000, 0x200000, 0x0, 0x7ffe15ec5cb0, 0x3, 0x0) = 0xffffffffffffffda [0x7ffe15ec5ca8, 0]
proot info: vpid 1: sysexit start: mprotect(0x7fbe63805000, 0x200000, 0x0, 0x7ffe15ec5cb0, 0x3, 0x0) = 0x0 [0x7ffe15ec5ca8, 0]
proot info: vpid 1: sysexit end: mprotect(0x7fbe63805000, 0x200000, 0x0, 0x7ffe15ec5cb0, 0x3, 0x0) = 0x0 [0x7ffe15ec5ca8, 0]
proot info: vpid 1: sysenter start: mmap(0x7fbe63a05000, 0x6000, 0x3, 0x812, 0x3, 0x195000) = 0xffffffffffffffda [0x7ffe15ec5c78, 0]
proot info: vpid 1: sysenter end: mmap(0x7fbe63a05000, 0x6000, 0x3, 0x812, 0x3, 0x195000) = 0xffffffffffffffda [0x7ffe15ec5c78, 0]
proot info: vpid 1: sysexit start: mmap(0x7fbe63a05000, 0x6000, 0x3, 0x812, 0x3, 0x195000) = 0x7fbe63a05000 [0x7ffe15ec5c78, 0]
proot info: vpid 1: sysexit end: mmap(0x7fbe63a05000, 0x6000, 0x3, 0x812, 0x3, 0x195000) = 0x7fbe63a05000 [0x7ffe15ec5c78, 0]
proot info: vpid 1: sysenter start: mmap(0x7fbe63a0b000, 0x3960, 0x3, 0x32, 0xffffffffffffffff, 0x0) = 0xffffffffffffffda [0x7ffe15ec5c78, 0]
proot info: vpid 1: sysenter end: mmap(0x7fbe63a0b000, 0x3960, 0x3, 0x32, 0xffffffffffffffff, 0x0) = 0xffffffffffffffda [0x7ffe15ec5c78, 0]
proot info: vpid 1: sysexit start: mmap(0x7fbe63a0b000, 0x3960, 0x3, 0x32, 0xffffffffffffffff, 0x0) = 0x7fbe63a0b000 [0x7ffe15ec5c78, 0]
proot info: vpid 1: sysexit end: mmap(0x7fbe63a0b000, 0x3960, 0x3, 0x32, 0xffffffffffffffff, 0x0) = 0x7fbe63a0b000 [0x7ffe15ec5c78, 0]
proot info: vpid 1: sysenter start: close(0x3, 0x7fbe63a1b500, 0x0, 0x31, 0x7fbe63670000, 0x70000021) = 0xffffffffffffffda [0x7ffe15ec5e98, 0]
proot info: vpid 1: sysenter end: close(0x3, 0x7fbe63a1b500, 0x0, 0x31, 0x7fbe63670000, 0x70000021) = 0xffffffffffffffda [0x7ffe15ec5e98, 0]
proot info: vpid 1: sysexit start: close(0x3, 0x7fbe63a1b500, 0x0, 0x31, 0x7fbe63670000, 0x70000021) = 0x0 [0x7ffe15ec5e98, 0]
proot info: vpid 1: sysexit end: close(0x3, 0x7fbe63a1b500, 0x0, 0x31, 0x7fbe63670000, 0x70000021) = 0x0 [0x7ffe15ec5e98, 0]
proot info: vpid 1: sysenter start: mmap(0x0, 0x2000, 0x3, 0x22, 0xffffffffffffffff, 0x0) = 0xffffffffffffffda [0x7ffe15ec6638, 0]
proot info: vpid 1: sysenter end: mmap(0x0, 0x2000, 0x3, 0x22, 0xffffffffffffffff, 0x0) = 0xffffffffffffffda [0x7ffe15ec6638, 0]
proot info: vpid 1: sysexit start: mmap(0x0, 0x2000, 0x3, 0x22, 0xffffffffffffffff, 0x0) = 0x7fbe6366e000 [0x7ffe15ec6638, 0]
proot info: vpid 1: sysexit end: mmap(0x0, 0x2000, 0x3, 0x22, 0xffffffffffffffff, 0x0) = 0x7fbe6366e000 [0x7ffe15ec6638, 0]
proot info: vpid 1: sysenter start: arch_prctl(0x1002, 0x7fbe6366e700, 0x7fbe6366f010, 0x22, 0xffffffffffffffff, 0x0) = 0xffffffffffffffda [0x7ffe15ec66c0, 0]
proot info: vpid 1: sysenter end: arch_prctl(0x1002, 0x7fbe6366e700, 0x7fbe6366f010, 0x22, 0xffffffffffffffff, 0x0) = 0xffffffffffffffda [0x7ffe15ec66c0, 0]
proot info: vpid 1: sysexit start: arch_prctl(0x1002, 0x7fbe6366e700, 0x7fbe6366f010, 0x22, 0xffffffffffffffff, 0x0) = 0x0 [0x7ffe15ec66c0, 0]
proot info: vpid 1: sysexit end: arch_prctl(0x1002, 0x7fbe6366e700, 0x7fbe6366f010, 0x22, 0xffffffffffffffff, 0x0) = 0x0 [0x7ffe15ec66c0, 0]
proot info: vpid 1: sysenter start: mprotect(0x7fbe63a05000, 0x4000, 0x1, 0x3, 0x0, 0x7) = 0xffffffffffffffda [0x7ffe15ec6588, 0]
proot info: vpid 1: sysenter end: mprotect(0x7fbe63a05000, 0x4000, 0x1, 0x3, 0x0, 0x7) = 0xffffffffffffffda [0x7ffe15ec6588, 0]
proot info: vpid 1: sysexit start: mprotect(0x7fbe63a05000, 0x4000, 0x1, 0x3, 0x0, 0x7) = 0x0 [0x7ffe15ec6588, 0]
proot info: vpid 1: sysexit end: mprotect(0x7fbe63a05000, 0x4000, 0x1, 0x3, 0x0, 0x7) = 0x0 [0x7ffe15ec6588, 0]
proot info: vpid 1: sysenter start: mprotect(0x50000020a000, 0x1000, 0x1, 0x50000020b2c0, 0x0, 0x7fbe6367bb30) = 0xffffffffffffffda [0x7ffe15ec6588, 0]
proot info: vpid 1: sysenter end: mprotect(0x50000020a000, 0x1000, 0x1, 0x50000020b2c0, 0x0, 0x7fbe6367bb30) = 0xffffffffffffffda [0x7ffe15ec6588, 0]
proot info: vpid 1: sysexit start: mprotect(0x50000020a000, 0x1000, 0x1, 0x50000020b2c0, 0x0, 0x7fbe6367bb30) = 0x0 [0x7ffe15ec6588, 0]
proot info: vpid 1: sysexit end: mprotect(0x50000020a000, 0x1000, 0x1, 0x50000020b2c0, 0x0, 0x7fbe6367bb30) = 0x0 [0x7ffe15ec6588, 0]
proot info: vpid 1: sysenter start: mprotect(0x6f0000223000, 0x1000, 0x1, 0x6f0000224030, 0x0, 0x7fbe63676b98) = 0xffffffffffffffda [0x7ffe15ec6588, 0]
proot info: vpid 1: sysenter end: mprotect(0x6f0000223000, 0x1000, 0x1, 0x6f0000224030, 0x0, 0x7fbe63676b98) = 0xffffffffffffffda [0x7ffe15ec6588, 0]
proot info: vpid 1: sysexit start: mprotect(0x6f0000223000, 0x1000, 0x1, 0x6f0000224030, 0x0, 0x7fbe63676b98) = 0x0 [0x7ffe15ec6588, 0]
proot info: vpid 1: sysexit end: mprotect(0x6f0000223000, 0x1000, 0x1, 0x6f0000224030, 0x0, 0x7fbe63676b98) = 0x0 [0x7ffe15ec6588, 0]
proot info: vpid 1: sysenter start: munmap(0x7fbe63a0f000, 0xaa35, 0x53acf00000000, 0x6f0000224030, 0x0, 0x7fbe63676b98) = 0xffffffffffffffda [0x7ffe15ec66b8, 0]
proot info: vpid 1: sysenter end: munmap(0x7fbe63a0f000, 0xaa35, 0x53acf00000000, 0x6f0000224030, 0x0, 0x7fbe63676b98) = 0xffffffffffffffda [0x7ffe15ec66b8, 0]
proot info: vpid 1: sysexit start: munmap(0x7fbe63a0f000, 0xaa35, 0x53acf00000000, 0x6f0000224030, 0x0, 0x7fbe63676b98) = 0x0 [0x7ffe15ec66b8, 0]
proot info: vpid 1: sysexit end: munmap(0x7fbe63a0f000, 0xaa35, 0x53acf00000000, 0x6f0000224030, 0x0, 0x7fbe63676b98) = 0x0 [0x7ffe15ec66b8, 0]
proot info: vpid 1: sysenter start: brk(0x0, 0x7fbe63a09b00, 0x7fbe63a09b78, 0x7fbe63a09b58, 0x3, 0x10) = 0xffffffffffffffda [0x7ffe15ec6318, 0]
proot info: vpid 1: sysenter end: void(0x0, 0x7fbe63a09b00, 0x7fbe63a09b78, 0x7fbe63a09b58, 0x3, 0x10) = 0xffffffffffffffda [0x7ffe15ec6318, 0]
proot info: vpid 1: translate("/" + "/usr/bin/seq")
proot info: vpid 1:          -> "/usr/bin/seq"
proot info: vpid 1: terminated with signal 31

osmocom-gerrit pushed a commit to osmocom/osmo-ci that referenced this issue Mar 17, 2018
proot crashes with current jenkins node setup, which means we cannot use
it to run ARM based axis.

proot bug is already reported upstream in:
proot-me/proot#134

Related: OS#3061

Change-Id: I9bc48349c78f395b3842bc5caaf6e948fb4c299e
@cswl
Copy link

cswl commented May 6, 2018

Is this also related?

.
[cswl:/distros] 1 % proot -v 10 -R jessie
proot info: binding = /distros/jessie
proot info: binding = /home/cswl
proot info: binding = /run/dbus/system_bus_socket:/var/run/dbus/system_bus_socket
proot info: binding = /run
proot info: binding = /tmp
proot info: binding = /proc
proot info: binding = /sys
proot info: binding = /dev
proot info: binding = /usr/share/zoneinfo/Asia/Katmandu:/etc/localtime
proot info: binding = /etc/resolv.conf
proot info: binding = /etc/nsswitch.conf
proot info: binding = /etc/group
proot info: binding = /etc/passwd
proot info: binding = /proc/14630/mounts:/etc/mtab
proot info: binding = /etc/hosts
proot info: binding = /etc/host.conf
proot info: binding = /distros/jessie:/
proot info: vpid 1: translate("/" + "/bin/sh")
proot info: vpid 1:          -> "/distros/jessie/bin/dash"
proot info: vpid 1: translate("/" + "/bin/sh")
proot info: vpid 1:          -> "/distros/jessie/bin/sh"
proot info: glue rootfs = /tmp/proot-14630-AJbVFR
proot info: exe = /bin/sh
proot info: argv =
proot info: initial cwd = /distros
proot info: verbose level = 10
proot info: pid 14630: access to "/dev/pts/5" (fd 0) won't be translated until closed
proot info: pid 14630: access to "/dev/pts/5" (fd 1) won't be translated until closed
proot info: pid 14630: access to "/dev/pts/5" (fd 2) won't be translated until closed
proot info: pid 14630: access to "/proc/14630/fd" (fd 3) won't be translated until closed
proot info: vpid 1: sysenter start: prctl(0x26, 0x1, 0x0, 0x0, 0x0, 0x1ab) = 0xffffffffffffffda [0x7ffefca85d18, 0]
proot info: vpid 1: sysenter end: prctl(0x26, 0x1, 0x0, 0x0, 0x0, 0x1ab) = 0xffffffffffffffda [0x7ffefca85d18, 0]
proot info: vpid 1: sysexit start: prctl(0x26, 0x1, 0x0, 0x0, 0x0, 0x1ab) = 0x0 [0x7ffefca85d18, 0]
proot info: vpid 1: sysexit end: prctl(0x26, 0x1, 0x0, 0x0, 0x0, 0x1ab) = 0x0 [0x7ffefca85d18, 0]
proot info: vpid 1: sysenter start: prctl(0x16, 0x2, 0x7ffefca85d50, 0x7f765acf7efa, 0x0, 0x1ab) = 0xffffffffffffffda [0x7ffefca85d18, 0]
proot info: vpid 1: sysenter end: prctl(0x16, 0x2, 0x7ffefca85d50, 0x7f765acf7efa, 0x0, 0x1ab) = 0xffffffffffffffda [0x7ffefca85d18, 0]
proot info: vpid 1: sysexit start: prctl(0x16, 0x2, 0x7ffefca85d50, 0x7f765acf7efa, 0x0, 0x1ab) = 0x0 [0x7ffefca85d18, 0]
proot info: vpid 1: sysexit end: prctl(0x16, 0x2, 0x7ffefca85d50, 0x7f765acf7efa, 0x0, 0x1ab) = 0x0 [0x7ffefca85d18, 0]
proot info: vpid 1: sysenter start: execve(0x560ed9bc2030, 0x7ffefca85e10, 0x7ffefca85fd8, 0x5f0, 0x0, 0x1ab) = 0xffffffffffffffda [0x7ffefca85d98, 0]
proot info: vpid 1: translate("/" + "/bin/sh")
proot info: vpid 1:          -> "/distros/jessie/bin/dash"
proot info: vpid 1: translate("/" + "/lib64/ld-linux-x86-64.so.2")
proot info: vpid 1:          -> "/distros/jessie/lib/x86_64-linux-gnu/ld-2.19.so"
proot info: loader: /tmp/prooted-14630-C9rA5o
proot info: vpid 1: sysenter end: execve(0x7ffefca85cfe, 0x7ffefca85e10, 0x7ffefca85fd8, 0x5f0, 0x0, 0x1ab) = 0xffffffffffffffda [0x7ffefca85cfe, 0]
proot info: ptrace acceleration (seccomp mode 2) enabled
proot info: vpid 1: translate("/" + "/bin/sh")
proot info: vpid 1:          -> "/distros/jessie/bin/sh"
proot info: vpid 1: terminated with signal 11
1

@alkino
Copy link
Contributor

alkino commented Jun 9, 2018

@cswl no it doesn't seems related. You have a segfault but the original error is a "bad syscall".
I have no aarch64 with me.

@pespin @liuchibing Maybe you could try to give us some gdb output, about what is currently run when we got this signal.

@pespin
Copy link

pespin commented Jun 9, 2018

@alkino How am I supposed to run gdb on it, isn't proot already using ptrace on vpid 1? as far as i know you cannot ptrace a process from several different processes right?

@alkino
Copy link
Contributor

alkino commented Jun 9, 2018

Hum sorry, you're right.

@oxr463
Copy link
Collaborator

oxr463 commented Jan 8, 2022

@liuchibing @cswl please test with the latest v5.3.0 release.

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

No branches or pull requests

5 participants