

# 2026-11-24 — 15 Pro crash log + ROOT CAUSE #3: the base dump itself is corrupt

## The 15 Pro crash log (Driver-2026-11-24-020944.ips) is decisive
- `EXC_CRASH / SIGABRT`, `asi: libsystem_c.dylib: ["abort() called"]`.
- Faulting stack, thread 0:
      libsystem_c abort
      Driver +0x32820          <- return address of `bl 0x18fe118` at 0x3281c
      Driver +0x31ef8          <- real Driver.SceneDelegate willConnect (0x31e9c)
      UIKitCore +[UIScene _sceneForFBSScene:create:withSession:connectionOptions:]
      UIKitCore -[UIApplication _connectUISceneFromFBSScene:transitionContext:]
      ...
- TWO conclusions:
  1. On a FRESH install UIKit DOES fall back to the Info.plist scene manifest:
     the real `Driver.SceneDelegate` ran for the first time ever. Build 45's
     scene-config patch works.
  2. The crash is exactly the unbindable import at Driver+0x18fe118 -> the
     abort comes from dyld's own halt path (no libsystem_kernel/libsystem_c
     reporter was involved, which is why every reporter hook missed it).

## Scale of the problem (measured in the running process)
- `__la_symbol_ptr` holds 5397 entries; **4568 are UNBOUND** (still pointing into
  Driver's own `__stub_helper`), only 829 were ever bound.
- So the shipped `Driver` binary is a **decryption dump whose __LINKEDIT was not
  taken from memory**: bind/lazy_bind offsets are garbage (0x29 / 0x1d), symtab
  and strtab are zeroed (7798 syms, n_strx=0). Any import that the original
  process had not resolved before the dump can never be bound again.
- The inherited 4 stub `ret` patches were a workaround for exactly this.

## The fix: a proper dump of the ORIGINAL 3.19.0 (should have been done on day 1)
Conditions, all easily met on the X:
1. Install the ORIGINAL 3.19.0 from the App Store on the X (free app). Our patched
   build is safe: `E:\ios\GSMDriver-3.19.0-patched45-unsigned.ipa` (sha256
   2c0a34f9...0dff837a) plus `gsm45.tar`, and `restore45.sh` re-installs it.
2. The original will show the shield/ban screen - irrelevant, FairPlay decryption
   happens at load time, independent of the UI-level blocking.
3. Reconstruction is what the old tool got wrong: it kept the plaintext metadata
   from the on-disk file instead of overwriting with the raw memory image. The
   correct recipe, implemented in `rebuild_dump.py`:
   - __TEXT      <- MEMORY  (decrypted code)
   - __LINKEDIT  <- MEMORY  (TRUE dyld_info bind/lazy_bind + symtab + export trie)
   - __DATA/__DATA_CONST <- ON-DISK file (pre-rebase internal pointers; rebasing
     is NOT idempotent, so rebase opcodes must see the on-disk values)
   Dumping is done by `dump_orig.py` (fwrite straight from process memory into
   /var/mobile/Media/dump319/, no 36 MB through the Frida message channel) and it
   dumps EVERY binary under the app bundle -- so we also recover the REAL 3.19.0
   frameworks instead of the TTJB 3.15 substitutes currently in the IPA.

## Tooling added this round
- dump_orig.py     : memory dump of every app-bundle module, fwrite to device
- rebuild_dump.py  : on-disk base + memory __TEXT/__LINKEDIT -> proper binaries
- restore45.sh     : re-install build 45 from gsm45.tar after the dump
- test46c.py / mk46.py / stub46.json : the synthesised-metadata experiment
  (VWT+metadata built at runtime by a position-independent cave initializer at
  file 0x6600, VWT in the __data zero run at 0x1fffb80, size/stride 0x800).
  It DID remove the dyld bind abort (the probe returned kind=2, size=2048,
  stride=2048) and moved the failure further along (access violation instead of
  abort) -- but it is now obsolete: a proper dump removes the need for it.
