Skip to content

App crashes on launch when bootstrap tweak injection is enabled (SIGSEGV after CFPrefs error) #335

@onimac92

Description

@onimac92

Device Model

iPhone 12 Pro Max

iOS Version

17.0

Bootstrap Version

1.4

Serotonin Version

No response

What happened

I enabled bootstrap tweak injection on my iPhone 12 Pro Max running iOS 17.0, without installing any third-party tweaks, but the app was supposed to launch normally. Instead, it crashes immediately on startup. It doesn't work!

The crash happens right after prefshook redirects preferences. CoreFoundation reports an invalid use of kCFPreferencesAnyUser with a container, followed by a SIGSEGV (11).

Relevant logs:

Log output

Mar  3 02:18:34 ExampleApp(bootstrap.dylib)[694] <Notice>: prefshook: prefs redirect to com.example.hello.world : /var/mobile/Containers/Data/Application/7C24C5B8-5562-4213-AAB9-5AFD89AB0D89
Mar  3 02:18:34 ExampleApp(bootstrap.dylib)[694] <Notice>: prefshook: prefs redirect to com.example.hello.world : /var/mobile/Containers/Data/Application/7C24C5B8-5562-4213-AAB9-5AFD89AB0D89
Mar  3 02:18:34 ExampleApp(CoreFoundation)[694] <Error>: Couldn't read values in CFPrefsPlistSource<0x280ddc750> (Domain: com.example.hello.world, User: kCFPreferencesAnyUser, ByHost: Yes, Container: /var/mobile/Containers/Data/Application/7C24C5B8-5562-4213-AAB9-5AFD89AB0D89, Contents Need Refresh: Yes): Using kCFPreferencesAnyUser with a container is only allowed for System Containers, detaching from cfprefsd
Mar  3 02:18:34 SpringBoard(FrontBoard)[460] <Notice>: [app<com.example.hello.world(87D7E4C5-3DC0-404D-88C4-C3B17C106991)>:694] Process exited: <RBSProcessExitContext| specific, status:<RBSProcessExitStatus| domain:signal(2) code:SIGSEGV(11)>>.
Mar  3 02:18:34 runningboardd(RunningBoard)[32] <Notice>: [app<com.example.hello.world(87D7E4C5-3DC0-404D-88C4-C3B17C106991)>:694] termination reported by launchd (2, 11, 11)

Acknowledgement of README and FAQ

  • I have read both the README and the FAQ.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions