Open Mubanjun opened 1 month ago
Works fine on latest android 15 avd.
Termux application version: latest
latest
is not a version. Generate a report and post.
Issue is likely phantom process killer.
I have this problem too termux-report_issue_from_transcript.log
TERMUX_APP_PACKAGE_VARIANT:
APT_ANDROID_5
Read the installation docs again.
TERMUX_APP_PACKAGE_VARIANT:
APT_ANDROID_5
再次阅读安装文档。
But it still says Killed
.
Disable phantom process killer as mentioned above.
Seems like you already have.
Generate a full system log right after process gets killed.
I executed this command, but it had no effect:
adb shell "settings put global settings_enable_monitor_phantom_procs false"
The result of this command returns false
adb shell "settings get global settings_enable_monitor_phantom_procs"
libc : Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 6273 (init), pid 6273 (init)
libc : crash_dump helper failed to exec, or was killed
linker : error: unable to open file "/data/data/com.termux/files/usr/bin/bash
"
There is unexpected newline at end of bash
path, might be related.
But your logs didn't contain execution history. Exit termux, then run adb shell "logcat -c"
, then restart termux again and wait for killing and then generate log again.
W login : type=1400 audit(0.0:6583): avc: granted { execute } for path="/data/data/com.termux/files/usr/bin/dash" dev="dm-74" ino=602426 scontext=u:r:untrusted_app_27:s0:c57,c258,c512,c768 tcontext=u:object_r:app_data_file:s0:c57,c258,c512,c768 tclass=file app=com.termux
E OPLUS_KEVENT_RECORD: oplus_kevent Receive message from kernel, event_type=3
E OPLUS_KEVENT_RECORD: OPLUS_KEVENT payload:10569,path@@/data/data/com.termux/files/usr/bin/dash
I OPLUS_KEVENT_RECORD: oplus_put_exec_kevent_to_list
W login : type=1400 audit(0.0:6584): avc: granted { execute } for name="bash" dev="dm-74" ino=602768 scontext=u:r:untrusted_app_27:s0:c57,c258,c512,c768 tcontext=u:object_r:app_data_file:s0:c57,c258,c512,c768 tclass=file app=com.termux
E OPLUS_KEVENT_RECORD: oplus_kevent Receive message from kernel, event_type=3
E OPLUS_KEVENT_RECORD: OPLUS_KEVENT payload:10569,path@@/data/data/com.termux/files/usr/bin/dash
I OPLUS_KEVENT_RECORD: oplus_put_exec_kevent_to_list
E OPLUS_KEVENT_RECORD: oplus_kevent Receive message from kernel, event_type=3
E OPLUS_KEVENT_RECORD: OPLUS_KEVENT payload:10569,path@@/data/data/com.termux/files/usr/bin/dash
I OPLUS_KEVENT_RECORD: oplus_put_exec_kevent_to_list
The logs didn't reveal anything new. The linker error doesn't exist now. It could be OnePlus specific killer via OPLUS_KEVENT_RECORD that's killing the process, its known to kill processes running with proot
, but there should be some additional entries for the killing, maybe they are not being logged due to rate limit. If its a OnePlus issue like it is for proot
, there is nothing we can do, report to OnePlus.
Run adb shell "logcat -c"
again and then get bash
killed 5-6 times and then generate a dump again. Also try going into failsafe session and running /system/bin/ls
and $PREFIX/bin/ls
and see if they work.
Android15的应用权限缩得很紧,即使从Outlook打开网页都会崩溃
获取Outlook for Androidhttps://aka.ms/AAb9ysg
From: agnostic-apollo @.> Sent: Wednesday, October 30, 2024 3:46:15 PM To: termux/termux-app @.> Cc: 木板菌 @.>; Author @.> Subject: Re: [termux/termux-app] [Bug]: Android 15 will directly print "killed" and return signal 9 (Issue #4219)
W login : type=1400 audit(0.0:6583): avc: granted { execute } for path="/data/data/com.termux/files/usr/bin/dash" dev="dm-74" ino=602426 scontext=u:r:untrusted_app_27:s0:c57,c258,c512,c768 tcontext=u:object_r:app_data_file:s0:c57,c258,c512,c768 tclass=file app=com.termux E OPLUS_KEVENT_RECORD: oplus_kevent Receive message from kernel, event_type=3 E OPLUS_KEVENT_RECORD: OPLUS_KEVENT payload:10569,path@@/data/data/com.termux/files/usr/bin/dash I OPLUS_KEVENT_RECORD: oplus_put_exec_kevent_to_list W login : type=1400 audit(0.0:6584): avc: granted { execute } for name="bash" dev="dm-74" ino=602768 scontext=u:r:untrusted_app_27:s0:c57,c258,c512,c768 tcontext=u:object_r:app_data_file:s0:c57,c258,c512,c768 tclass=file app=com.termux E OPLUS_KEVENT_RECORD: oplus_kevent Receive message from kernel, event_type=3 E OPLUS_KEVENT_RECORD: OPLUS_KEVENT payload:10569,path@@/data/data/com.termux/files/usr/bin/dash I OPLUS_KEVENT_RECORD: oplus_put_exec_kevent_to_list E OPLUS_KEVENT_RECORD: oplus_kevent Receive message from kernel, event_type=3 E OPLUS_KEVENT_RECORD: OPLUS_KEVENT payload:10569,path@@/data/data/com.termux/files/usr/bin/dash I OPLUS_KEVENT_RECORD: oplus_put_exec_kevent_to_list
The logs didn't reveal anything new. The linker error doesn't exist now. It could be OnePlus specific killer via OPLUS_KEVENT_RECORD that's killing the process, its known to kill processes running with proot, but there should be some additional entries for the killing, maybe they are not being logged due to rate limit. If its a OnePlus issue like it is for proot, there is nothing we can do, report to OnePlus.
Run adb shell "logcat -c" again and then get bash killed 5-6 times and then generate a dump again. Also try going into failsafe sessionhttps://wiki.termux.com/wiki/Recover_a_broken_environment and running /system/bin/ls and $PREFIX/bin/ls and see if they work.
― Reply to this email directly, view it on GitHubhttps://github.com/termux/termux-app/issues/4219#issuecomment-2446085247, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A2JO5Q3EU2ERNLVAELK2BMLZ6CFEPAVCNFSM6AAAAABQICARHSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINBWGA4DKMRUG4. You are receiving this because you authored the thread.Message ID: @.***>
Another report. Report to OnePlus.
Bootstrap Error /data/data/com.termux/files/usr/etc/termux/bootstrap/termux-bootstrap-second-stage.sh: line 91: 26680 Killed ln -s "termux-bootstrap-second-stage.sh" "/data/data/com.termux/files/usr/etc/termux/bootstrap/termux-bootstrap-second-stage.sh.lock" 2> /dev/null RELEASE:
15
BRAND:OnePlus
MODEL:CPH2619
I had the same issue on my OnePlus 13 with ColorOS 15 when using the github version Termux. After trying GooglePlayStore version it now works, no killed info. But when I tried to use proot-distro to intall ubuntu, it failed. Here enclosed with the capture and log when using the GooglePlayStore version.
proot-distro
is not going to work, it unsets $LD_PRELOAD
that has libtermux-exec.so
, which internally is what uses the system_linker_exec
hack to normally run executables so that they appear to be run from the system partition instead of the app data directory, the later is what's detected to be malicious, and proot-distro
would be running processes the same way.
在使用 github 版本 Termux 时,我在装有 ColorOS 13 的 OnePlus 15 上遇到了同样的问题。尝试 GooglePlayStore 版本后,它现在可以工作了,没有杀死的信息。但是当我尝试使用 proot-distro 来安装 ubuntu 时,它失败了。此处包含使用 GooglePlayStore 版本时的捕获和日志。
google play 安装的版本比 F-droid 的版本低,但至少能打开。F-droid 安装版本受限于网络,需要bootstrap……同一加13用户,还没找到比较好用方式
在使用 github 版本 Termux 时,我在装有 ColorOS 13 的 OnePlus 15 上遇到了同样的问题。尝试 GooglePlayStore 版本后,它现在可以工作了,没有杀死的信息。但是当我尝试使用 proot-distro 来安装 ubuntu 时,它失败了。此处包含使用 GooglePlayStore 版本时的捕获和日志。
google play 安装的版本比 F-droid 的版本低,但至少能打开。F-droid 安装版本受限于网络,需要bootstrap……同一加13用户,还没找到比较好用方式
Avoid using the play store version as it is clearly mentioned on the termux github repo that there are some known issues with that version and it is suggested to use the version from github or fdroid
Is there a way to get this working without ADB? Or is this a complete issue with running subprocesses on any Android device now with OxygenOS?
Disabling process restrictions in developer settings makes zero difference for me.
Crash log: termux-crash_report.log
The latest update to termux from Google Play Store (not f droid) seems. To resolve the issues
W login : type=1400 audit(0.0:6583): avc: granted { execute } for path="/data/data/com.termux/files/usr/bin/dash" dev="dm-74" ino=602426 scontext=u:r:untrusted_app_27:s0:c57,c258,c512,c768 tcontext=u:object_r:app_data_file:s0:c57,c258,c512,c768 tclass=file app=com.termux E OPLUS_KEVENT_RECORD: oplus_kevent Receive message from kernel, event_type=3 E OPLUS_KEVENT_RECORD: OPLUS_KEVENT payload:10569,path@@/data/data/com.termux/files/usr/bin/dash I OPLUS_KEVENT_RECORD: oplus_put_exec_kevent_to_list W login : type=1400 audit(0.0:6584): avc: granted { execute } for name="bash" dev="dm-74" ino=602768 scontext=u:r:untrusted_app_27:s0:c57,c258,c512,c768 tcontext=u:object_r:app_data_file:s0:c57,c258,c512,c768 tclass=file app=com.termux E OPLUS_KEVENT_RECORD: oplus_kevent Receive message from kernel, event_type=3 E OPLUS_KEVENT_RECORD: OPLUS_KEVENT payload:10569,path@@/data/data/com.termux/files/usr/bin/dash I OPLUS_KEVENT_RECORD: oplus_put_exec_kevent_to_list E OPLUS_KEVENT_RECORD: oplus_kevent Receive message from kernel, event_type=3 E OPLUS_KEVENT_RECORD: OPLUS_KEVENT payload:10569,path@@/data/data/com.termux/files/usr/bin/dash I OPLUS_KEVENT_RECORD: oplus_put_exec_kevent_to_list
The logs didn't reveal anything new. The linker error doesn't exist now. It could be OnePlus specific killer via OPLUS_KEVENT_RECORD that's killing the process, its known to kill processes running with
proot
, but there should be some additional entries for the killing, maybe they are not being logged due to rate limit. If its a OnePlus issue like it is forproot
, there is nothing we can do, report to OnePlus.Run
adb shell "logcat -c"
again and then getbash
killed 5-6 times and then generate a dump again. Also try going into failsafe session and running/system/bin/ls
and$PREFIX/bin/ls
and see if they work.
Not only Android 15 of OnePlus phones, but also Honor and OPPO Android 15 are like this.
proot-distro
is not going to work, it unsets$LD_PRELOAD
that haslibtermux-exec.so
, which internally is what uses thesystem_linker_exec
hack to normally run executables so that they appear to be run from the system partition instead of the app data directory, the later is what's detected to be malicious, andproot-distro
would be running processes the same way.
Do you think it's possible to prevent proot-distro from overriding $LD_PRELOAD? or is that required for proot to work?
I wonder if rooted, moving termux to the system partition might be a quick fix?
Unlock the Bootloader and everything goes well on OnePlus 13
Unlock the Bootloader and everything goes well on OnePlus 13
Which version did you install, playstore? Do you mind testing if proot works?
Good news ! I just received the latest OS update, termux(github version) works again, seems OnePlus fixed this issue.
That's great news, what's the security update/patch date? You should likely be able to see it by clicking the right arrow in your last image or in Termux settings about.
@256-1 Thats encouraging! would you mind testing proot? Its maybe a bit off-topic but if you wouldn't mind testing winlator? It would be a big help for many Oneplus/ Oppo users.
That's great news, what's the security update/patch date? You should likely be able to see it by clicking the right arrow in your last image or in Termux settings about.
The latest ColorOS version is PJZ110_15.0.0.209(CN01), they did't mention anything about this fix in the comments.
Here is the about page in termux.
@256-1 Thats encouraging! would you mind testing proot? Its maybe a bit off-topic but if you wouldn't mind testing winlator? It would be a big help for many Oneplus/ Oppo users.
I am not a winlator user, but I tried to install and run. It seems working fine.
That's great news, what's the security update/patch date? You should likely be able to see it by clicking the right arrow in your last image or in Termux settings about.
The latest ColorOS version is PJZ110_15.0.0.209(CN01), they did't mention anything about this fix in the comments.
Here is the about page in termux.
Oooh would ya look at that, the Android 15 kernel! Seems like they finally listened.
The latest ColorOS version is PJZ110_15.0.0.209(CN01), they did't mention anything about this fix in the comments.
Thanks for the info. Security patch seems to be from last month, I guess its just an update to their own ROM. The ColorOS version would vary on different models. Likely getprop ro.build.date
should be a better indicator of if someone is using the fixed update.
The latest ColorOS version is PJZ110_15.0.0.209(CN01), they did't mention anything about this fix in the comments.
Thanks for the info. Security patch seems to be from last month, I guess its just an update to their own ROM. The ColorOS version would vary on different models. Likely
getprop ro.build.date
should be a better indicator of if someone is using the fixed update.
It is Sat Nov 9 01:47:07 CST 2024.
Thanks.
What does this mean for those not using ColorOS? E.g. I'm on a OnePlus 12 Pro with OxygenOS (no root)... what are the steps to get this working?
What does this mean for those not using ColorOS? E.g. I'm on a OnePlus 12 Pro with OxygenOS (no root)... what are the steps to get this working?
update your system. The problem is already fixed on latest oos15.
What does this mean for those not using ColorOS? E.g. I'm on a OnePlus 12 Pro with OxygenOS (no root)... what are the steps to get this working?
update your system. The problem is already fixed on latest oos15.
In the OOS15 CBT, termux nor winlator work for me, (termux had the issue of getting killed (code9) so I tried reinstalling and now it fails to install bootstrap packages) [OnePlus 12 (IN version)]
@laughingwater install to internal memory, not to sdcard or expanded storage.
@twaik OnePlus 12 devices only have internal storage by default though.
@weaponmasterjax so if OxygenOS is reporting itself as up to date, we have to assumably wait until the next OS update (usually every month or two)?
@laughingwater install to internal memory, not to sdcard or expanded storage.
I don't have external storage, it's installed to internal memory.
@twaik OnePlus 12 devices only have internal storage by default though.
@weaponmasterjax so if OxygenOS is reporting itself as up to date, we have to assumably wait until the next OS update (usually every month or two)?
Yeah if anything ends up happening in the CBT I'll let you guys know
@laughingwater thanks
I have same issue. termux-report_issue_from_transcript.log
Same issue on OnePlus Pad Pro. My pad has recently been updated to ColorOS 15 (xxx.201 tho).
The f-droid version termux failed to install bootstrap packages, while the google play version can be installed right. But the google play version still receivd signal 9 when installing proot-distro distributions (something with tarball child process):
btw, in ColorOS 14 it will pop up a warning when it encountered permission denied. In ColorOS 15 it is just killed without warning...
Same issue with OOS 15 on OnePlus Pad 2.
Can confirm the Google Play version worked for me.
Guys, I just got the .305 update, termux and winlator work as before again!!
Awesome
Problem description
When opening Termux,it will throw "signal 9"directly.
Steps to reproduce the behavior.
Open Termux
What is the expected behavior?
No response
System information