This repository was archived by the owner on Nov 1, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Nov 1, 2026. It is now read-only.
Cannot run iOS with Segmentation failure #295
Copy link
Copy link
Closed
Description
Operating System
Ubuntu 25.10
What is your CPU's model?
Intel(R) Core(TM) i5-2450M (4)
Describe the unexpected behaviour in detail.
I just completed the setup but if I run iOS, it just showed and error (Segmentation fault (core dumped)). I'm doing to correctly at this time. (command args:
./Inferno/build/qemu-system-aarch64 -M t8030,trustcache=./Restore/Firmware/038-44135-124.dmg.trustcache,ticket=root_ticket.der,sep-fw=sep-firmware.n104.RELEASE.new.img4,sep-rom=AppleSEPROM-Cebu-B1,kaslr-off=true \
-kernel ./Restore/kernelcache.research.iphone12b -dtb ./Restore/Firmware/all_flash/DeviceTree.n104ap.im4p \
-append "tlto_us=-1 mtxspin=-1 agm-genuine=1 agm-authentic=1 agm-trusted=1 serial=3 wdt=-1 -vm_compressor_wk_sw" \
-smp 6 -m 4G -serial mon:stdio \
-drive file=sep_nvram,if=pflash,format=raw \
-drive file=sep_ssc,if=pflash,format=raw \
-drive file=root,format=raw,if=none,id=root -device nvme-ns,drive=root,bus=nvme-bus.0,nsid=1,nstype=1,logical_block_size=4096,physical_block_size=4096 \
-drive file=firmware,format=raw,if=none,id=firmware -device nvme-ns,drive=firmware,bus=nvme-bus.0,nsid=2,nstype=2,logical_block_size=4096,physical_block_size=4096 \
-drive file=syscfg,format=raw,if=none,id=syscfg -device nvme-ns,drive=syscfg,bus=nvme-bus.0,nsid=3,nstype=3,logical_block_size=4096,physical_block_size=4096 \
-drive file=ctrl_bits,format=raw,if=none,id=ctrl_bits -device nvme-ns,drive=ctrl_bits,bus=nvme-bus.0,nsid=4,nstype=4,logical_block_size=4096,physical_block_size=4096 \
-drive file=nvram,if=none,format=raw,id=nvram -device apple-nvram,drive=nvram,bus=nvme-bus.0,nsid=5,nstype=5,id=nvram,logical_block_size=4096,physical_block_size=4096 \
-drive file=effaceable,format=raw,if=none,id=effaceable -device nvme-ns,drive=effaceable,bus=nvme-bus.0,nsid=6,nstype=6,logical_block_size=4096,physical_block_size=4096 \
-drive file=panic_log,format=raw,if=none,id=panic_log -device nvme-ns,drive=panic_log,bus=nvme-bus.0,nsid=7,nstype=8,logical_block_size=4096,physical_block_size=4096 \
-initrd ./Restore/038-44135-124.dmg
)
What should've happened instead?
Well, there are the log:
info: iOS 14.0.0
info: Kernel virtual low: 0xfffffff006000000
info: Kernel virtual high: 0xfffffff00a4cd4f0
warning: ck_kp_root_auth_callback: failed to find pacibsp, trying to find old logic
info: `bypass root authentication` patch applied in `__TEXT_EXEC`.
info: `allow mounting root as R/W` patch applied in `__TEXT_EXEC`.
`bypass root hash authentication` patch did not apply in `__TEXT_EXEC`.
info: `disable APFS snapshots` patch applied in `__TEXT`.
info: `allow SHA1 signatures in AMFI` patch applied in `__TEXT_EXEC`.
`all binaries in TrustCache (AMFI)` patch did not apply in `__TEXT_EXEC`.
info: `increase SCOT size to 0x10000 to use it as TRAC` patch applied in `__TEXT_EXEC`.
info: `allow unsigned firmware in img4_firmware_evaluate` patch applied in `__TEXT_EXEC`.
`allow remounting rootfs, union mounts (old)` patch did not apply in `__TEXT_EXEC`.
info: `allow remounting rootfs, union mounts (new)` patch applied in `__TEXT_EXEC`.
info: `force enable kprintf` patch applied in `__TEXT_EXEC`.
`disable AMX (new)` patch did not apply in `__TEXT_EXEC`.
info: `disable AMX` patch applied in `__TEXT_EXEC`.
info: `bypass code signature checks` patch applied in `__TEXT_EXEC`.
info: `enable hactivation` patch applied in `__TEXT`.
info: ck_kp_tc_callback: found AMFI (Routine)
info: `all binaries in trustcache` patch applied in `__PPLTEXT`.
info: `bypass pmap_cs_enforce` patch applied in `__PPLTEXT`.
warning: `reg` len mismatch; wanted: 8, actual: 16
warning: `reg` len mismatch; wanted: 8, actual: 32
warning: `interrupts` len mismatch; wanted: 4, actual: 108
warning: `interrupts` len mismatch; wanted: 4, actual: 104
warning: `interrupts` len mismatch; wanted: 4, actual: 108
info: `memcmp_validstrs30` patch applied in `seprom`.
info: `memcmp_validstrs14` patch applied in `seprom`.
info: `verify_rsa_signature` patch applied in `seprom`.
info: Boot Mode: 0
info: Auto Boot: false
info: Boot Args: [-restore rd=md0 nand-enable-reformat=1 tlto_us=-1 mtxspin=-1 agm-genuine=1 agm-authentic=1 agm-trusted=1 serial=3 wdt=-1 -vm_compressor_wk_sw]
Segmentation fault (core dumped)
Attach any logs related to this issue.
No response
Issue Report Terms
- You have made sure that there are no other reports about this bug.
- You do not use any software that might interfere with correct function of this software. For Hackintosh users, that could be OCLP, WEG, etc.
- You are on the latest commit of the emulator.
- You acknowledge that violation of these terms may result in your issue being closed or you getting blocked from the organisation.
Metadata
Metadata
Assignees
Labels
No labels
Type
Fields
Priority
None yet
Effort
None yet
Activity
VisualEhrmanntraut commentedon Jun 12, 2026
get the backtrace using gdb or lldb
chris-pcguy commentedon Jun 12, 2026
Also, why are you taking away an AP core? With the emulated SEP setting, it's
-smp AP_CORES+SEP_CORES.Currently,
SEP_CORESis fixed to1, but some things with newer SEP versions make me believe that there might be some SEP's with more than a single core coming (or possibly already there, I don't have the time to look).Would probably be good for the performance, even on actual Apple Silicon.
SharkZubat commentedon Jun 12, 2026
I ran it through lldb and got a segmentation fault pointing to libnettle. It seems to happen during crypto/image parsing:
My arguments actually include: sep-fw=sep-firmware.n104.RELEASE.new.img4, sep-rom=AppleSEPROM-Cebu-B1, trustcache=./Restore/Firmware/038-44135-124.dmg.trustcache.
It looks like an empty destination pointer (dst="") is being passed to nettle during the boot sequence or firmware parsing block.
VisualEhrmanntraut commentedon Jun 12, 2026
No, I said backtrace. write
bt.SharkZubat commentedon Jun 12, 2026
Oh, okay. Trying out
SharkZubat commentedon Jun 12, 2026
there it is:
VisualEhrmanntraut commentedon Jun 12, 2026
Uhm, but this bug was fixed in ec89fc7
SharkZubat commentedon Jun 12, 2026
Yeah, I cloned the repo with bugfix already. So it doesn't work or maybe I'll check it if I fail or not
chris-pcguy commentedon Jun 12, 2026
His Ubuntu version is still using nettle3, and even the not yet released version is still using nettle3. So it can't be that.
Also, it has been tested with nettle3 and nettle4, so it's somewhat likely to be a user error.
VisualEhrmanntraut commentedon Jun 12, 2026
it says "libnettle.so.9" which is nettle 4 so he likely replaced it by the steps in the aside.
chris-pcguy commentedon Jun 12, 2026
Damn, I didn't notice that. If he really wants nettle4 and even use it globally without breaking half of his system or recompiling everything, he should use Arch (but please stay away from AUR for the time being), since it already includes it, Gentoo not yet.
SharkZubat commentedon Jun 13, 2026
Yeah I will try learning to install inferno for the second time when I use arch