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 is giving errors in some devices , why ?? #4

Closed
Hax4us opened this issue Sep 29, 2017 · 14 comments
Closed

Proot is giving errors in some devices , why ?? #4

Hax4us opened this issue Sep 29, 2017 · 14 comments

Comments

@Hax4us
Copy link
Contributor

Hax4us commented Sep 29, 2017

proot --link2symlink tar xvf filename.tar.gz
It is giving error while extraction.... Why it is working properly in some devices and not in some devices..
Proot errors are different in different devices 👎
1.) proot error signal 7
2) signal 11
3) etc....

@michalbednarski
Copy link
Collaborator

why ??

There are multiple possible reasons:

  • Because kernel support for debugging interfaces (especially changing/cancelling syscall) varies across devices and some feature in your kernel is missing
  • Because proot uses it's own ELF loader (in order to properly translate path to ELF linker) and executables on your device might conflict with it
  • Because kernel interface uses same notification for both syscall entry and exit and proot is keeping own flag to track them and that flag got out of sync
  • Probably few other reasons, the above are ones that we've already got workarounds for in this proot fork
  • And possibly my fixes caused problem in other configuration, I'm just human too (and same goes to original proot authors)

Proot errors are different in different devices 👎
1.) proot error signal 7
2) signal 11

11 is SIGSEGV, an access to unmapped memory (or access violating memory protection setting)
7 is SIGBUS, loading instructions from unmapped memory (or memory whose protection settings disallows execution)
These two are similar, depending on CPU and/or kernel they might not be differentiated with and SIGSEGV being always reported.

Errors being different across devices could indicate different things being incompatible or just being different symptoms of same problem.

I'm fixing problems which I'm able to reproduce, signal 7 or 11 doesn't really tell me anything (and I'm pretty sure that for most devs It crashed with SIGSEGV isn't really much more information than just It crashed, see how proper proot bug report leading to fix looks at termux/termux-packages#1309)

Also, I'm maintaining this fork of proot (for Termux) in part of my personal free time, which I might not really have for this project in following month

👎

I'm somewhat under impression that you're here to whine rather than having this fixed, in which case I'm unfortunately unable to help.

(Also, I'm not sure why for user (as opposed to developer) having different errors on different devices worse than having same error across devices)

@SDRausty

This comment was marked as spam.

@Hax4us
Copy link
Contributor Author

Hax4us commented Nov 9, 2017

@SDRausty you r r8 in your situation..... But mine is 64 bit device and I m extracting Ubuntu 64 bit tar file from neo script and one strange thing is that I don't know how but frst time when I tried to install Ubuntu ......it worked but now...giving errors while installing like signal 7 or 11

@SDRausty

This comment was marked as spam.

@SDRausty

This comment was marked as spam.

@Hax4us
Copy link
Contributor Author

Hax4us commented Nov 9, 2017

Sure I will try your TermuxArch but it will not work trust me...my proot is unstable.and see how your screenshot and my screenshot are different ....your proot is telling that "can't handle 64 bit programs " but see my screenshot
intex aqua trend_2017-11-09-20-08-45

@SDRausty

This comment was marked as spam.

@SDRausty

This comment was marked as spam.

@Hax4us
Copy link
Contributor Author

Hax4us commented Nov 9, 2017

@SDRausty thnx I will try bsdtar but..how.😅 bcz I want to install ubuntu proot so...how to change ubuntu.tar.gz into ubuntu.tar.gz using bsdtar ....and I have pc with Linux so can I try to extract Ubuntu.tar.gz file then again compress with bsdtar ....will it work ?

@SDRausty

This comment was marked as spam.

@Hax4us Hax4us closed this as completed Nov 16, 2017
@Hax4us
Copy link
Contributor Author

Hax4us commented Nov 16, 2017

Closed

@SDRausty

This comment was marked as spam.

@michalbednarski
Copy link
Collaborator

1 and 3 doesn't seem so, 2 maybe through i cannot say for sure.

Hang due to low entropy doesn't seem likely to me, you might try using usual PROOT_NO_SECCOMP=1 and checking PROOT_VERBOSE=9 logging

So far I've been mostly successful with issues I'm able to reproduce myself, anyway if you'd like to raise something here please open new issue.

@in-luencer-u
Copy link

Screenshot_2022-11-18-07-14-58-51.jpg

Please solve this problem 😬 it occurred when iam installing kali lynx
I need to solve this

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

4 participants