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

[Android O / P] Bad system call #3

Closed
frhnfrq opened this issue Jun 6, 2019 · 47 comments
Closed

[Android O / P] Bad system call #3

frhnfrq opened this issue Jun 6, 2019 · 47 comments

Comments

@frhnfrq
Copy link

frhnfrq commented Jun 6, 2019

Hi,
Getting this. Can you help?
Screenshot_20190606-142010

@MasterDevX
Copy link
Owner

What Android version are you running?

@frhnfrq
Copy link
Author

frhnfrq commented Jun 7, 2019

Android 9. OnePlus 6 (A6000)

@MasterDevX
Copy link
Owner

Yeah, there are some problems like this with Android Pie.

@frhnfrq
Copy link
Author

frhnfrq commented Jun 8, 2019

Oh! Is there any way to fix it?

@MasterDevX
Copy link
Owner

Not sure. If you have PC you can try to get LogCat using ADB ad upload it here.

@ghost
Copy link

ghost commented Jun 13, 2019

I have the same problem with Android 8.0.0 and i can upload logcat if useful.

@MasterDevX
Copy link
Owner

I have the same problem with Android 8.0.0 and i can upload logcat if useful.

Yep, it will be good.
Looks like Android 8+ problem..

@ghost
Copy link

ghost commented Jun 21, 2019

I have the same problem with Android 8.0.0 and i can upload logcat if useful.

Yep, it will be good.
Looks like Android 8+ problem..

I've read all the logcat of termux PID while sending javac command but i haven't found nothing useful.
There was just something about WindowManager and OpenGLRenderer.

@reekystive
Copy link

Android Pie, Bad system call, too.

@Mantisimo
Copy link

Getting the same android version 9

@GoogleSites
Copy link

Same here. Galaxy A20, Android 9

@SudhitChauhan
Copy link

Same problem ! Redmi 5A, Android 8.1

@TheMatheusDev
Copy link

Last month I was able to use normally on Android 9, so I changed my ROM and now I get this error. The new ROM is Android Pie too.

@MasterDevX
Copy link
Owner

@TheusKhan Have you changed from stock to custom, or...?

@TheMatheusDev
Copy link

TheMatheusDev commented Sep 1, 2019

I changed from custom ROM to another custom ROM. My device is Redmi 4X, aka Santoni.
Was working fine on POSP with 4.9 linux kernel.
But now doesn't work on Havoc OS with 3.18 Linux kernel. Both are Android Pie AOSP ROMs rooted with Magisk 19.3.

@phil2sat
Copy link

phil2sat commented Sep 9, 2019

Install tsu thenn as root it works

@Flamexxx
Copy link

the same probleme here

@sudoalx
Copy link

sudoalx commented Sep 27, 2019

Same problem on Android 9 3.18 Kernel

@MasterDevX
Copy link
Owner

Lol, so many people facing this and still no solution. Marking as "won't fix" for now..

@MasterDevX MasterDevX changed the title Bad system call [Android O / P] Bad system call Sep 27, 2019
@MasterDevX MasterDevX added the wontfix This will not be worked on label Sep 27, 2019
@Dzuchun
Copy link

Dzuchun commented Sep 30, 2019

same problem

@emilie-chen
Copy link

Same problem for me also, using android pie with lineage os 16

@rickasheye
Copy link

rickasheye commented Oct 24, 2019

im still getting the same problem on android 10 @MasterDevX

@kcubeterm
Copy link

Hey all before running java run proot -0
It will work

@Dzuchun
Copy link

Dzuchun commented Nov 1, 2019

Hey all before running java run proot -0
It will work

@kcubeterm
nope, typing "java" in any case causes bad system call:
20191101_064232
it even won't display jar argument syntax as shown above.

@kcubeterm
Copy link

kcubeterm commented Nov 1, 2019

See in android 9 it works
Screenshot_2019-11-01-11-42-37-866_com termux
First ,when I run just java
It didn't run
But when I execute proot -0 here "0"is zero okkk
Then I execute keytool it's worked

@Dzuchun
Copy link

Dzuchun commented Nov 1, 2019

For android 9 works, confirm.
Thanks everyone!

@sudoalx
Copy link

sudoalx commented Nov 1, 2019

It works with proot -0 it was as simple as that 😅

@MasterDevX
Copy link
Owner

Big thanks to the @kcubeterm for the solution, I think we can finally close this 👍

@MasterDevX
Copy link
Owner

I think that a slight modification to the installation script can make this automatic

Don't know if it is a good idea, cuz some users who don't want to be in a PRoot environment will be forced to use it.

@Frankystar777
Copy link

Frankystar777 commented Feb 19, 2020

Damn I got an error message with command : proot -0

@GuzioMG
Copy link

GuzioMG commented Apr 9, 2020

Reports success from Android 10 on Samsung Galaxy S10e! Gotta install Minecraft Server now, as my VM can't handle it...

@aldin99
Copy link

aldin99 commented Apr 26, 2020

See in android 9 it works
Screenshot_2019-11-01-11-42-37-866_com termux
First ,when I run just java
It didn't run
But when I execute proot -0 here "0"is zero okkk
Then I execute keytool it's worked

Thank you its works

@bucketsort
Copy link

If you run javac in termux using strace you'll see what's wrong.

According to this link: termux/termux-packages#420

the error is because you compile against a libc that doesn't know about the restrictions on syscalls in newer Android versions.

In our case this is the syscall (strace):

set_robust_list(0x74b24e50e0, 24) = 501207683296
--- SIGSYS {si_signo=SIGSYS, si_code=SYS_SECCOMP, si_call_addr=0x74b249c790, si_syscall=__NR_set_robust_list, si_arch=AUDIT_ARCH_AARCH64} --- +++ killed by SIGSYS +++
Bad system call

@TITANHACKY
Copy link

TITANHACKY commented Aug 18, 2020

We can't use java without proot -0 ?

@VergeDX
Copy link

VergeDX commented Sep 23, 2020

Yes, exec tsu and java works.

@TITANHACKY
Copy link

Yes, exec tsu and java works.

Yes when we use tsu it will work but most of the users only have unrooted android including me

@ghost
Copy link

ghost commented Dec 29, 2020

Damn I got an error message with command : proot -0

First install proot boss :-)

@ghost
Copy link

ghost commented Jan 2, 2021

Write in termux termux-chroot

This was referenced Jan 12, 2021
@Enforc3rr
Copy link

XDD incase anyone thinks -proot 0 is tiresome to type everytime , i suggest you to use sudo instead

@suhui8
Copy link

suhui8 commented Jan 17, 2021

like this : pkg install proot
1
2

@suhui8
Copy link

suhui8 commented Jan 17, 2021

3

If you are running SpringBoot, may be specify a tmp folder,
java -Djava.io.tmpdir=/data/data/com.termux/files/home/tmpdir jar xxxxyourJava.jar

@kcubeterm
Copy link

@DaiMengMei try under termux-chroot

@ilixindri
Copy link

ilixindri commented May 10, 2021

Screenshot_20210510-010247_Termux
Not work
Screenshot_20210510-010504_Termux

@ghost
Copy link

ghost commented Jun 19, 2021

install proot
launch with fake root

@pavan3b8
Copy link

I think that a slight modification to the installation script can make this automatic

Don't know if it is a good idea, cuz some users who don't want to be in a PRoot environment will be forced to use it.

How to remove proot

@GuzioMG
Copy link

GuzioMG commented Feb 19, 2022

I think that a slight modification to the installation script can make this automatic

Don't know if it is a good idea, cuz some users who don't want to be in a PRoot environment will be forced to use it.

How to remove proot

WDYM "remove"? Like... Uninstall the package? Just like any other package - pkg remove proot or pkg uninstall proot (I actually don't remember which one was it).

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