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: vpid 1: terminated with signal 4 #195

Open
morealternative opened this issue Sep 28, 2021 · 25 comments
Open

proot info: vpid 1: terminated with signal 4 #195

morealternative opened this issue Sep 28, 2021 · 25 comments

Comments

@morealternative
Copy link

morealternative commented Sep 28, 2021

  • Main Problem
    getting proot info: vpid 1: terminated with signal 4 error
    (after updating proot and proot-distro)

  • Info about distro
    Distro Name: ArchLinux
    Distro Architecture: x86_64

  • Phone info
    Android Version: 8
    Architecture: aarch64

@SDRausty

This comment was marked as spam.

@morealternative
Copy link
Author

proot info: binding = /
proot info: vpid 1: translate("/" + "/bin/sh")
proot error: '/bin/sh' not found (root = /, cwd = /data/data/com.termux/files/home/randomtrash/proot-distro, $PATH=(null))
fatal error: see `proot --help`.

@morealternative
Copy link
Author

so when i will get answer ?

@SDRausty

This comment was marked as spam.

@ZhymabekRoman
Copy link

Do NOT buy a mixed 32/64 bit architecture device to try to resolve this issue immediatly, as there are known problems with mixed architecture devices.

What do you mean mixed device architecture? So historically, 64 bit processes have backward compatibility with 32 ABI

@SDRausty

This comment was marked as spam.

@morealternative
Copy link
Author

so when i will get answer ?

I have been waiting for a software resolution for about one year now; Your best bet is to upgrade to a new device with full 64bit architecture;e.g., aarch64 armv8

Do NOT buy a mixed 32/64 bit architecture device to try to resolve this issue immediatly, as there are known problems with mixed architecture devices. There might be a mobile store nearby with a free 64bit smartphone where you live if you transfer mobile service.

but my phone architecture is aarch64

@ghost
Copy link

ghost commented Oct 1, 2021

What do you mean mixed device architecture?

There are devices with AArch64 CPU, but operating system is 32bit only for certain reasons (e.g. small system partition that can hold only one set of native libs). On these devices uname -m reports armv8l.

@SDRausty

This comment was marked as spam.

@ZhymabekRoman
Copy link

There are devices with AArch64 CPU, but operating system is 32bit only for certain reasons (e.g. small system partition that can hold only one set of native libs). On these devices uname -m reports armv8l.

Ahhhh, thanks, now I get it. I'm using just such a device, but I haven't noticed any problems with the proot or Termux

@SDRausty

This comment was marked as spam.

@SDRausty

This comment was marked as spam.

@ZhymabekRoman
Copy link

Screenshot_20211002_163631

@SDRausty

This comment was marked as spam.

@ghost
Copy link

ghost commented Oct 2, 2021

This error happens on package compiled for arm. It doesn't matter whether device is armv7l or armv8l - both use arm 32 bit packages.

IMO, the signal 4 error comes from qemu-x86_64 (considering OP's configuration) and not from proot.

@michalbednarski
Copy link
Collaborator

Ok, looks like there's a clash between qemu binary and proot loader. I think I'll change proot to skip use of proot loader when using qemu

@SDRausty

This comment was marked as spam.

@SDRausty

This comment was marked as spam.

michalbednarski added a commit that referenced this issue Oct 3, 2021
#195

Also save original path for setuidness checks (#143)
michalbednarski added a commit to termux/termux-packages that referenced this issue Oct 3, 2021
@michalbednarski
Copy link
Collaborator

Fixed version should soon be available in Termux apt as proot_5.1.107-45

@AarizYT
Copy link

AarizYT commented Oct 3, 2021

Still getting the error with the latest PRoot. After logging into an Arch Linux x86_64 PRoot container, executing uname twice returns this error:
talloc: access after free error - first free may be at ./execve/enter.c:661 Bad talloc magic value - access after free proot warning: signal 6 received from process 16991

@SDRausty

This comment was marked as spam.

@SDRausty

This comment was marked as spam.

@AarizYT
Copy link

AarizYT commented Oct 4, 2021

Here's the output:
aarch64

[cache_key.display_info]: [7323236010928765824] [cache_key.has_system_feature]: [7323236010928763981] [cache_key.is_compat_change_enabled]: [7323236010928765817] [cache_key.is_interactive]: [7323236010928765787] [cache_key.is_power_save_mode]: [7323236010928763990] [cache_key.is_user_unlocked]: [7323236010928763999] [cache_key.location_enabled]: [7323236010928763991] [cache_key.package_info]: [7323236010928765818] [cache_key.telephony.get_default_sub_id]: [6070403363833118321] [cache_key.telephony.get_slot_index]: [6070403363833118322] [dalvik.vm.dex2oat-Xms]: [64m] [dalvik.vm.image-dex2oat-Xms]: [64m] [dalvik.vm.image-dex2oat-Xmx]: [64m] [dalvik.vm.isa.arm64.features]: [default] [dalvik.vm.isa.arm64.variant]: [generic] [init.svc.boringssl_self_test32]: [stopped] [init.svc.boringssl_self_test32_vendor]: [stopped] [init.svc.boringssl_self_test64]: [stopped] [init.svc.boringssl_self_test64_vendor]: [stopped] [init.svc.boringssl_self_test_apex32]: [stopped] [init.svc.boringssl_self_test_apex64]: [stopped] [init.svc.snap_utility_64]: [stopped] [persist.sys.xtra_time]: [1633292483106] [ril.modem.board]: [SHANNON327] [ril.modem.board2]: [SHANNON327] [ro.boot.vbmeta.digest]: [3a7d766404aa76eeddbc7af96733065a6c1698634e2d1403e137c8f18d1248b8] [ro.logd.size.stats]: [64K] [ro.odm.product.cpu.abilist]: [arm64-v8a,armeabi-v7a,armeabi] [ro.odm.product.cpu.abilist32]: [armeabi-v7a,armeabi] [ro.odm.product.cpu.abilist64]: [arm64-v8a] [ro.product.cpu.abi]: [arm64-v8a] [ro.product.cpu.abilist]: [arm64-v8a,armeabi-v7a,armeabi] [ro.product.cpu.abilist32]: [armeabi-v7a,armeabi] [ro.product.cpu.abilist64]: [arm64-v8a] [ro.vendor.product.cpu.abilist]: [arm64-v8a,armeabi-v7a,armeabi] [ro.vendor.product.cpu.abilist32]: [armeabi-v7a,armeabi] [ro.vendor.product.cpu.abilist64]: [arm64-v8a] [ro.zygote]: [zygote64_32] [sys.sysctl.extra_free_kbytes]: [33642] [vendor.sec.rild.libpath]: [/vendor/lib64/libsec-ril.so] [vendor.sec.rild.libpath2]: [/vendor/lib64/libsec-ril-dsds.so]

aarch64

I tested a bit more and it seems that even pacman returns the same error. PRoot-Distro has stopped working (with qemu-user-x86-64) since the PRoot commit on 26th September. I get this error when I try to login into an Arch Linux x86_64 PRoot container using PRoot-Distro:
proot info: vpid 1: terminated with signal 4

@SDRausty

This comment was marked as spam.

@SDRausty

This comment was marked as spam.

SDRausty referenced this issue in TermuxArch/TermuxArch Oct 5, 2021
metayan pushed a commit to metayan/termux-packages that referenced this issue Nov 28, 2021
Grimler91 pushed a commit that referenced this issue Jul 25, 2022
#195

Also save original path for setuidness checks (#143)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants