pwn20wndstuff / Undecimus

unc0ver jailbreak for iOS 11.0 - 12.4
BSD 3-Clause "New" or "Revised" License
6.64k stars 1.3k forks source link

Device freezing after installing new substrate #165

Closed AtifChy closed 4 years ago

AtifChy commented 5 years ago

After installing new cydia substrate i reboot and rejailbroke my device. After sometimes my device got frozen and i was forced to hard reboot my device. After reboot, i rejailbroke my device and after sometimes my device froze again. I used restore rootfs but the freezing issue is still not fixed.

I am using iPhone 6, iOS 11.3.1 Unc0ver v2.1.0 (latest one)

I also found some users with same issue. It mostly happening with older devices.

jakeajames commented 5 years ago

@viggou changning entitlements on kernel, however messing with launchd is not a great idea due to how important it is, if something happens to launchd whole device panics.

Chasewhip8 commented 5 years ago

Is launchd even getting modified at all with substrated in place?

jakeajames commented 5 years ago

@Chasewhip8 It was on all previous versions of substrate, but I believe the new one doesn't specifically just inject to launchd, instead it hooks posix_spawn & execve globally, so substrate will load into everything executed by anything instead of just things executed by launchd

saurik commented 5 years ago

The specific issue described in the thread (that involves the Twitter reproduction; which may very well have been totally unrelated to the initial report) has been fixed in Substrate 0.9.7010 (though I have no idea if what I have done in this update is a good idea or not ;P time may tell).

KMamedoff commented 5 years ago

The specific issue described in the thread (that involves the Twitter reproduction; which may very well have been totally unrelated to the initial report) has been fixed in Substrate 0.9.7010 (though I have no idea if what I have done in this update is a good idea or not ;P time may tell).

Thank you. There was a freezing issue on A7/A8 devices. Is that fixed?

jakeajames commented 5 years ago

@KMamedoff Judging from the fact that the Twitter bug blows up your RAM making iOS kill random daemons (ok not really random), including substrated/jailbreakd & amfid, I'd suppose that is the same bug, because those are exactly the devices with less RAM and thus, more likely for iOS to kill daemons

pwn20wndstuff commented 5 years ago

@saurik I have been testing the new update for about 20 minutes or so by performing various tests and so far, the device is still up and hasn’t frozen yet (I have rebooted after the installation)

JunesiPhone commented 5 years ago

Device: iPX (11.1.2)

Issue: Updated substrate, Cydia forced closed after, reinstalled unc0ver (expired), rebooted device. Device booted, jailbroke the device and stuck in loop until the device restarts or force reboot.

Test1: Disable tweaks in unc0ver all is well.

Test2: Disabling tweaks via iCleaner. Current tweaks running on this device. Flipswitch hid-support (no idea) hid-support (yes there is two) iCleaner PreferenceLoader RocketBootstrap Substrate SafeMode Unc0ver Jailbreak Resources.

Test3: Other user is testing by turning daemon reload off in U0

I have another user on my discord iPX (11.1.2) same issue.

Just in from the other user: "The fourth time with daemon reload off it booted right into substrate"

dbolger commented 5 years ago

Device: iPX (11.1.2)

Issue: Updated substrate, Cydia forced closed after, reinstalled unc0ver (expired), rebooted device. Device booted, jailbroke the device and stuck in loop until the device restarts or force reboot.

Test1: Disable tweaks in unc0ver all is well.

Test2: Disabling tweaks via iCleaner. Current tweaks running on this device. Flipswitch hid-support (no idea) hid-support (yes there is two) iCleaner PreferenceLoader RocketBootstrap Substrate SafeMode Unc0ver Jailbreak Resources.

I have another user on my discord iPX (11.1.2) same issue.

Odd, I have a few more tweaks than your device, however I haven't been put into a respring-loop. Users are suggesting disabling the "Reload System Daemons" toggle in unc0ver to temporarily fix the problem. A bunch of users are reporting this issue in the r/Jb Discord.

EDIT: Rebooted, jailbroke, lead to instant respring loop.

jakeajames commented 5 years ago

I can confirm issue seems fixed but device enters a respring loop after the update. However only with certain tweaks or tweak combos, I tried with a few tweaks and after ldrestart everything was fine but things like Rocketbootstrap or Watchdog cause a respring loop.

Seems like tweaks that hook into daemons cause this, and obviously disabling reload system daemons will make those tweaks not inject, hence issue is "fixed"

saurik commented 5 years ago

@jakeajames I have Rocket Bootstrap installed and (ldrestart&)& works for me :(.

KMamedoff commented 5 years ago

I can confirm issue seems fixed but device enters a respring loop after the update. However only with certain tweaks or tweak combos, I tried with a few tweaks and after ldrestart everything was fine but things like Rocketbootstrap or Watchdog cause a respring loop.

Seems like tweaks that hook into daemons cause this, and obviously disabling reload system daemons will make those tweaks not inject, hence issue is "fixed"

I have Rocket Bootstrap, Flipswitch, PreferenceLoader, Substrate SafeMode, Unc0ver Jailbreak Resources installed and my iphone 7 11.3.1 device works just fine.

jakeajames commented 5 years ago

This seems very weird then @saurik. i literally tried only rocketbootstrap with nothing else and got a respring loop

saurik commented 5 years ago

@jakeajames Are you getting crashlogs stored?

KMamedoff commented 5 years ago

@KMamedoff Judging from the fact that the Twitter bug blows up your RAM making iOS kill random daemons (ok not really random), including substrated/jailbreakd & amfid, I'd suppose that is the same bug, because those are exactly the devices with less RAM and thus, more likely for iOS to kill daemons

That bug seems to be not fixed.

JunesiPhone commented 5 years ago

11.1.2 (iPX) every tweak disabled in iCleaner. Still loops.

saurik commented 5 years ago

It is possible that Substrate itself is breaking the ability to store crashlogs. Can someone maybe try this build of Substrate, which goes out of its way to not mess with CrashReporter? (Essentially: if you are getting a "loop", and not a "stuck", then you should be able to get a crash report.)

https://cache.saurik.com/substrate/debs/mobilesubstrate_0.9.7010+scr_iphoneos-arm.deb

dbolger commented 5 years ago

@saurik Could you host 0.9.7000 for users to downgrade to? Respring-loop issue seems to be happening only on iP8 and up.

AldeabAhmed commented 5 years ago

Device: iP6s (11.3.1) 0.9.7010+ Everything is okay after this update! and yeah I have rebooted after the installation

saurik commented 5 years ago

@FivePixels Oh: I forgot the -m flag to dpkg-scanpackages: that should be fixed now. (FWIW, I'm testing on an iPhone X.)

saurik commented 5 years ago

@pro-cydia The only difference between 0.9.7010 and 0.9.7010+ I just posted is that the + variant doesn't inject into CrashReporter.

alexshhadeh commented 5 years ago

@saurik I updated to the new Substrate version and after rebooting and rejailbreaking, I was stuck in a respring loop. Then I force rebooted my phone, rejailbroke it again and bang! it worked! No more respring loop. Also it's worth mentioning that I did NOT toggle off the "reload system daemons" option. It just worked.

astra-io commented 5 years ago

I do not (ever) get a respring loop (while having trouble tweaks like watchdogpro etc, hundreds of packages installed) if I jailbreak without tweaks and load tweaks afterwards. On the "bad" substrate, rebooted and latest unc0ver. For what it's worth. iPX 11.4b3.

lanigc commented 5 years ago

@saurik.

errors iphone 6 11.3.1.

substrated.wakeups_resource-2018-12-29-011904

https://justpaste.it/4ho11

https://pastebin.com/vPQ3M380

jetsam https://pastebin.com/HcuJxUJF https://pastebin.com/QK9rwsEf

analysitcs rebooted my phone https://pastebin.com/hq6tewMN

61Halim commented 5 years ago

@saurik

My crashlog on iPhone X - substrated.wakeups

https://pastebin.com/ApMKNhE7

saurik commented 5 years ago

@lanigc While the wakeups kill is super annoying, it should be harmless? What is really weird is that I'm seeing jailbreakd in your process list (in addition to substrated); can you explain what settings you are using with what version of what jailbreak tool?

lanigc commented 5 years ago

Uncover 2.0.2

substrate http://apt.saurik.com/beta/substrate11/mobilesubstrate_0.9.7010_iphoneos-arm.deb

KMamedoff commented 5 years ago

Uncover 2.0.2

substrate http://apt.saurik.com/beta/substrate11/mobilesubstrate_0.9.7010_iphoneos-arm.deb

You should install 2.1.0.

saurik commented 5 years ago

@lanigc The developers of unc0ver had said that they only expected versions 2.1.0 and later to work with Substrate.

lanigc commented 5 years ago

Okey. thanks

SonicLover1996 commented 5 years ago

@saurik your new version of substrate works with unc0ver v2.0.2 on my iPhone 7 running 11.3

ellajahbilog commented 5 years ago

Hi, Im using Ipx after i updated to the new substrate im unable to rejailbreak because of respring loop. Any suggestions? Thanks

iM4CH3T3 commented 5 years ago

Everything fine with substrate 0.9.7010 and unc0ver 2.1.0 with 15+ tweaks. Rejailbroke completely fine...

MrL0 commented 5 years ago

iPhone 6 (11.3.1) froze when opening any app. Using latest 2.1 beta with new substrate update.

GeoSn0w commented 5 years ago

Tested 0.9.7010 too, looks fine on iPhone 6S, iOS 11.3.1

Chasewhip8 commented 5 years ago

Ok, so I rebooted after installing the update and had a respring loop. Force shutdown the device and then re-jailbroke with the same settings. The device sat in the respring for a little longer than usual but it succeeded into the OS as normal. https://hastebin.com/azibokovow.makefile

saurik commented 5 years ago

I have pushed 0.9.7011 with an attempt to prevent Substrate from being killed by Jetsam.

(FWIW, I realize that a lot of people are saying they have experienced a "respring loop"—as in, SpringBoard starting over and over again, but crashing each time—but not a single person has provided evidence of this: all I've seen is evidence of is a single attempt to restart all daemons getting "stuck"; I have managed to replicate this behavior, and it is due to a window of opportunity where Substrate being killed while waiting for a mach port to recycle leads to the process it is hooking not starting.)

pwn20wndstuff commented 5 years ago

Just upgraded it on my personal device (iPhone 7 on iOS 11.3.1 with the latest unc0ver 2.1.0 Pre-Release) and it’s working (I have never had issues with the last update in the first place though.).

iM4CH3T3 commented 5 years ago

0.9.7011 fine in iPhone 7 iOS 1131 with rebooting and rejailbreaking

pwn20wndstuff commented 5 years ago

@saurik The reason why we keep telling everyone to be on 2.0.0 or later (Not 2.1.0 btw) is because the older versions didn’t use MobileSubstrate’s new ServerPlugins functionality for MSUnrestrict0() (For applying sandbox/setuid/task_for_pid patches to processes) older versions used jailbreakd along with a dirty posix_spawn() hook to do this job and obviously weren’t effective on the entire system

Chasewhip8 commented 5 years ago

Sorry for not enough evidence @saurik , however, what evidence would have been proper for this? Anyways, testing the update now. Thanks again.

JunesiPhone commented 5 years ago

Was able to install 0.9.7011 on iPX 11.1.2 and 11.3.1 without it looping after reboot.

Chasewhip8 commented 5 years ago

Can confirm the update has no problems. Very good work.

soum91 commented 5 years ago

@saurik, I guess the actual issue of #165 has not been fixed that’s occurring on A7/A8 devices. It seems issue discovered the james’ has been fixed for other devices but not completely fixed for those low ram devices. Although number freezes has been reduced while actively using the phone. I had freeze even in safemode on my i6+. And the weirdest bug that I first time I faced with the 0.9.7000 has occurred once again with 0.9.7011 too. This happens when the device is locked. The device acts really weirdly, becomes unresponsive as if it’s turned off. Display won’t turn on, no charging chime when charging plugged in. This finally ends up in kernel panic and the phone reboots. If you want I can provide you the kernel panic log. Please do something about this problem, Saurik.

BiasShadow commented 5 years ago

Yea the issue still exist on iPhone X 11.3.1 with only Uncover Jailbreak Resources, safe mode, CrashReporter, and iCleaner Pro enabled in Cydia Substrate Addons. Tried opening PayPal, but it crashed

yaf3i commented 5 years ago

@BiasShadow this thread is for freezing issue ..

for PayPal crash use PalBreak

BiasShadow commented 5 years ago

As far as a respring loop, I don’t know the proper terminology, but I’ve experienced times where springboard would crash and be stuck in that state (endless spinning) and then reboot. This has happened most when using CarPlay (with or without CarBridge). These “loops” have also happened after jail breaking since substrate update where as soon as Jailbreak has success, it goes to load springboard (initial), but never finishes and then crashes into a reboot

soum91 commented 5 years ago

So the freeze in safemode is occurring when a cydia installed app is opened. The device just freezes when the icon is tapped.

BiasShadow commented 5 years ago

@yaf3i this thread includes apps. The substrate update affects apps too. It’s all in the thread. Also, the PayPal issue occurs after substrate and occurs for other apps too.

yaf3i commented 5 years ago

make sure you are on 2.1.0 and latest version of Substrate (7011)