a-shell icon indicating copy to clipboard operation
a-shell copied to clipboard

RuntimeError: can't start new thread

Open ExploitMann opened this issue 3 years ago • 2 comments

image image

How to fix this threadings issue? Or a-shell's python not supported multithreads? Stack trace: Traceback (most recent call last): File "/var/mobile/Containers/Data/Application/0BAABF80-F9AB-432B-AE62-4986FD3CC7C2/Libra ry/bin/portscan", line 8, in <module> sys.exit(main()) File "/var/mobile/Containers/Data/Application/0BAABF80-F9AB-432B-AE62-4986FD3CC7C2/Libra ry/lib/python3.9/site-packages/portscan.py", line 168, in main scanner.run() File "/var/mobile/Containers/Data/Application/0BAABF80-F9AB-432B-AE62-4986FD3CC7C2/Libra ry/lib/python3.9/site-packages/portscan.py", line 105, in run queue_thread.start() File "/private/var/containers/Bundle/Application/769A6D01-5AC6-4F94-A7F1-1F473AF0836C/a- Shell-mini.app/Library/lib/python3.9/threadin g.py", line 892, in start _start_new_thread(self._bootstrap, ()) RuntimeError: can't start new thread

ExploitMann avatar Jun 27 '22 04:06 ExploitMann

The short answer is that multi-threading in a-Shell is most likely not going to work.

The long answer is that since there is no fork() on iOS, a-Shell simulates the fork()/exec() calls of Posix programs using thread calls. It's not perfect, but it works well enough. But the downside is that if you start opening a thread yourself, a-Shell gets confused.

holzschu avatar Jun 27 '22 05:06 holzschu

The short answer is that multi-threading in a-Shell is most likely not going to work.

The long answer is that since there is no fork() on iOS, a-Shell simulates the fork()/exec() calls of Posix programs using thread calls. It's not perfect, but it works well enough. But the downside is that if you start opening a thread yourself, a-Shell gets confused.

Okay, thank you!

ExploitMann avatar Jun 28 '22 06:06 ExploitMann