Closed coolstar closed 6 years ago
@coolstar anything spawned from the app stays as zombie -- as well as inject_*
Using LaunchDaemons would overcome this issue, but I guess it still has to be figured out. It's going from async_awake for sure.
@stek29 I actually have a separate “launchjailbreak” binary which does a double fork before starting dropbear (which is how dropbear can still accept connections after the app exits)
Interestingly if I run “killall -9 dropbear && dropbear -S /bootstrap -p 22 -p 2222” over SSH, it both clears out the zombie processes, and the new dropbear that spawns doesn’t leave any zombies behind...
Perhaps an additional toggle on the Electra screen similar to the "tweaks" for controling SSH could be a stopgap.
I also wonder if dropbear should be listening on 127.0.0.1, i would love to see how many root:alpine devices are sitting on networks now!
I was having issues with SSH using LibertiOS services so commands like uncache wouldn't work, little work around was to Edit profile found in /etc/profile and change the last line to: export PATH=/bootstrap/bin:/bootstrap/usr/local/bin, though some commands still don't work, uicache does
/etc/profile is not included as part of electra. It is probably left over from liberios; you can simply delete the file
‘ Now when I ssh this happens. # zsh: failed to load module `zsh/zle': dlopen(/usr/local/lib/zsh/5.0.8/zsh/zle.so, 9): no suitable image found. Did find:\n\t/usr/local/lib/zsh/5.0.8/zsh/zle.so: code signing blocked mmap() of '/usr/local/lib/zsh/5.0.8/zsh/zle.so'\h:\w \u$ ls.aks_migrate.bootstrappedApplication Support.aks_whitelist.mkb_seshat_healthLibrary.bash_history.obliteratedMedia# \h:\w \u$ ’
Dallas Groot about.me/dallasgroot
On Jan 15, 2018, at 10:59 PM, CoolStar notifications@github.com wrote:
/etc/profile is not included as part of electra. It is probably left over from liberios; you can simply delete the file
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.
@dallasgroot zsh is leftover from liberios too. I love zsh, but I prefer bash on mobile devices :)
Also, see #15.
I noticed my iPad ran into the issue where no apps would launch, and no new processes would spawn.
jailbreakd still seemed to be printing out messages, and amfid also appeared to be working...
However I noticed a message: "proc: table is full"
After a reboot and rejailbreak I decided to take a look at the process table after a few minutes of use and found the culprit...
(235 is the very first instance of dropbear and is the parent of all these zombie processes)