termux / proot

An chroot-like implementation using ptrace.
https://wiki.termux.com/wiki/PRoot
Other
751 stars 161 forks source link

fatal allocator error: failed to allocate slab region #174

Open Liquid-Aristocracy opened 3 years ago

Liquid-Aristocracy commented 3 years ago

Problem description

I installed proot using pkg than type termux-chroot outputs this:

fatal allocator error: failed to allocate slab region
proot info: vpid 1: terminated with signal 6

Steps to reproduce

Install proot and execute termux-chroot on my phone.

Expected behavior

termux-chroot works.

Additional information

Application version:
0.117
Packages CPU architecture:
aarch64
Subscribed repositories:
# sources.list
deb https://packages.termux.org/apt/termux-main/ stable main
# game-repo (sources.list.d/game.list)
deb https://packages.termux.org/apt/termux-games games stable
# science-repo (sources.list.d/science.list)
deb https://packages.termux.org/apt/termux-science science stable
# unstable-repo (sources.list.d/unstable.list)
deb https://packages.termux.org/apt/termux-unstable unstable main
Updatable packages:
ruby/stable 3.0.2-3 aarch64 [upgradable from: 2.7.2]
Android version:
11
Kernel build information:
Linux localhost 4.9.248-g6423442e55a0 #1 SMP PREEMPT Tue Aug 3 01:19:16 UTC 2021 aarch64 Android
Device manufacturer:
Google
Device model:
Pixel 3

Also I use GrapheneOS and I don't know if it's relevant.

tanapthetimid commented 2 years ago

I'm having the same issue with proot-distro. I think it might be due to grapheneos use of hardened malloc https://github.com/GrapheneOS/hardened_malloc.

Liquid-Aristocracy commented 2 years ago

I'm having the same issue with proot-distro. I think it might be due to grapheneos use of hardened malloc https://github.com/GrapheneOS/hardened_malloc.

I agree that it would be hardened malloc's issue. I also had native crash in firefox that I think is hardened malloc's problem, see: https://github.com/mozilla-mobile/fenix/issues/21878#issue-1024746655