QuantumMatter / mobileterminal

Automatically exported from code.google.com/p/mobileterminal
0 stars 0 forks source link

ps crashes IOS 4.1 #259

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Open Terminal
2. Enter command ps or ps -ef or ps aux

What is the expected output? What do you see instead?
List of processes should be displayed.

What version of the product are you using? On what operating system?
IOS 4.1 on IPhone 3g and MobileTerminal and the newest version 5.11-1 and also 
version 4.26. 

Original issue reported on code.google.com by jochen.s...@gmail.com on 5 Feb 2011 at 9:53

GoogleCodeExporter commented 9 years ago
Just to clarify: The entire IOS goes down, not only the terminal app.

Original comment by jochen.s...@gmail.com on 5 Feb 2011 at 9:54

GoogleCodeExporter commented 9 years ago
No, it doesn't.
I attached a screenshot of me successfully using ps as mobile

I also tried as root, with same results

Original comment by dave.sto...@gmail.com on 5 Feb 2011 at 9:57

Attachments:

GoogleCodeExporter commented 9 years ago
Looks pretty good on your device, I have to admit that...

However, I can reproduce it: The system goes down.
Unfortunately, I cannot make a screen shot once that happens :(

Some additional infos: 
1. The system is jailbroken using pwnage tool. 
2. Furthermore, I am not able to connect via ssh onto the phone since the 
update to 4.1 ... 
3. Pinging the device is also not possible.

Maybe these problems are somehow related.

Original comment by jochen.s...@gmail.com on 5 Feb 2011 at 10:06

GoogleCodeExporter commented 9 years ago
OK, this seems device related.
Have you tried restoring your device?

If you can't ping 127.0.0.1 that's usually a very bad sign

Original comment by dave.sto...@gmail.com on 5 Feb 2011 at 10:08

GoogleCodeExporter commented 9 years ago
Other commands do work: ls, cd, ..., ps --help also works

Somehow it seems that there is some random effect since I was able to execute 
ps -ef once successfully. Since then, about 5 retries crashed the system. 

Original comment by jochen.s...@gmail.com on 5 Feb 2011 at 10:11

GoogleCodeExporter commented 9 years ago
Do you mean restoring to a clean jailbreak state? I just did that yesterday, it 
is actually pretty much vanilla

FYI:
>$ ping localhost
... does work using mobileterminal!
I just cannot ping from a different computer in the network. This is the reason 
why I wanted to use ps, to see whether ssh is up and running. 

Original comment by jochen.s...@gmail.com on 5 Feb 2011 at 10:14

GoogleCodeExporter commented 9 years ago
Then maybe it's ssh's fault

If you're running on a aunix-system, try nmap to see the open ports

Original comment by dave.sto...@gmail.com on 5 Feb 2011 at 10:16

GoogleCodeExporter commented 9 years ago
Sorry, I ment "UNIX"-System

Original comment by dave.sto...@gmail.com on 5 Feb 2011 at 10:23

GoogleCodeExporter commented 9 years ago
Its an OSX and I have also tried ssh from a Windows7 computer. 
Both are able to ssh onto other computers (e.g. one external server and also a 
virtual box Ubuntu 10.04 on the OSX), just not onto the iphone.

Original comment by jochen.s...@gmail.com on 5 Feb 2011 at 10:23

GoogleCodeExporter commented 9 years ago
Maybe that's a hint:

>$ su root
-sh: fork: Resource temporarliy unavailable
>$ whoami
-sh: fork: Resource temporarliy unavailable

It seems to be a problem with my specific device! I just don't get what the 
problem might be... In general the Phone is working fine, this is why I 
actually do not want to restore to vanilla state :(

Original comment by jochen.s...@gmail.com on 5 Feb 2011 at 10:34

GoogleCodeExporter commented 9 years ago
You could use tar to make a tarball of your /var/mobile or backup your phone in 
any way you can imagine,
then restore and re-install everyting step-by-step

A backup never made things worse

Original comment by dave.sto...@gmail.com on 5 Feb 2011 at 10:37

GoogleCodeExporter commented 9 years ago
One last info, maybe someone has an idea: All ports that I scanned with nmap 
are closed (also the 22 for ssh). Open-ssh is installed, unfortunately I cannot 
check whether it is running since mobileterminal crashes as described above if 
I try to.

Thanks for your help... I believe it is not an issue with the terminal app!

Original comment by jochen.s...@gmail.com on 5 Feb 2011 at 10:40

GoogleCodeExporter commented 9 years ago
Backing up via tar is not so easy if you cannot access the system ;)

Original comment by jochen.s...@gmail.com on 5 Feb 2011 at 10:40

GoogleCodeExporter commented 9 years ago
Try installing sudo via Cydia

Anyways: It seems as if your system is broken in a way I don't fully understand.
Sorry

Original comment by dave.sto...@gmail.com on 5 Feb 2011 at 10:45