Gran Turismo 7 (PPSA01317 v01.680) on Linux/RADV: deterministic SIGSEGV in guest code (null deref r14+0x48) while the title's video-out/flip frame-pacing loop runs #6350
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by Lberonio on 2026-10-15T12:50:17Z.
Summary
GT7 boots far enough to create its swapchain, initialise fonts, and compile ~1670 shaders (461 MiB shader cache), then dies with a deterministic
SIGSEGVinside guest code (the game's own equeue +libSceVideoOutflip/vblank frame-pacing loop). The fault ismov 0x48(%r14),%raxwithr14 = 0— a null dereference. The same instruction/signature reproduces on the v0.1.2 release build and onmain, so this is not a build/regression artefact.Along the way I had to apply open PR #6083 (
shader sampler pairs exceed runtime heap capacity), which GT7 hits on plainmain; after that the sampler-capacity error is gone and the crash below is the next (and only) blocker.Environment
7.2.9-arch1-1, x86_64relinker --to-intel)vendor=0x1002 device=0x7550 subgroup=64(RDNA4, Mesa/RADV, Vulkan 1.4.363)main@34454bd835ce334c3c395467da50546b433fe200+ PR #6083core/shader/recompiler/RuntimeAbi.hpp:Version 12 -> 13,SamplerHeapCapacity 32 -> 64Game
PPSA01317, v01.680 (USA)relinker --to-intel source/input.elf app.elf, withlibs/(126.prx) andapp0/(symlinks to the title data + relinker*.guest.prx).Reproduction
Deterministic: same faulting instruction and registers on every run (also on the v0.1.2 release binary).
Note on PR #6083
On unpatched
mainthe run stops even earlier:Applying #6083 fixes that and the title proceeds to the crash reported here (so #6083 is currently required for GT7 to get this far).
Crash
0x55f16861c000-> faulting guest function starts atapp.elf+0x1F94CC0, fault atapp.elf+0x1F94F2B.49 8b 46 48 mov 0x48(%r14),%raxlibkernel.prxthread entry (stack return address0x0).The crashing function is the title's frame-pacing/present loop. Resolving every PLT import it calls (via
relinker --registry+ NID db) gives:All of these are implemented in AnyPS5 (nothing falls through to a stub), so this looks like a guest-visible behaviour mismatch in the equeue /
libSceVideoOutevent path rather than a missing export.Faulting basic block (guest code,
r14is null on entry):Other (non-fatal) runtime gaps in the same run
unsupported MIMG opcode 0xe5s_swappc_b64 ... calls a computed targetvkAllocateMemory->-1000072003(VK_ERROR_INVALID_EXTERNAL_HANDLE)sceSysmoduleLoadModule unknown id: 298(not in the 285-entrykModuleTable)Log tail
Full log (post-#6083 run)
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-15T15:22:20Z.
I reread the trace wording: it says
r14is already null on entry to this basic block. That means the immediately precedingscePthreadMutexUnlockcall is not shown to have clobbered it, so my ABI question does not follow from the evidence. The unresolved point is where the null context originates earlier in the event/present path; without that state or a reproducible current-main trace, I do not see a safe code change.Imported from boykopovar/AnyPS5. Originally posted by Lberonio on 2026-10-15T17:08:50Z.
Follow-up: origin of the null
g_ctx+ a current-main trace (2 EOPs, 1 flip)I re-ran on current
mainand traced the whole thing. The null context comes from the guest itself; the second EOP event (the one that consumes the slot a second time) comes fromDriver::execute's flip branch, not from the event-queue bookkeeping.Test setup:
main@34454bd+ #6083, relinked to x86-64 (relinker --to-intel conv/source/input.elf conv/app.elf), Arch Linux / GCC 16.2.1, AMD Radeon RX 9070 XT (RADV GFX1201,vendor=0x1002 device=0x7550 subgroup=64). Repro:cd ~/anyps5/gt7b && ./app.elf→SIGSEGV(rc=139) within ~10 s.1. Guest side
The guest keeps a single pointer to the "current AGC context" in BSS:
Install (
0x5FFA82,r15= new context):Release, at the AGC branch of the event loop (
0x1F94EC7):Exactly two stores to
0x650C9C0exist:0x5FFAF7(install) and0x1F94EF8(release). The producer waits on0x6511668while a context is installed; the consumer clearsg_ctxand broadcasts. The invariant is one install ↔ one release, and there is no null check on the consumer side.2. Runtime side
Counting
AgcDriverDeliverEopInterrupt(and the++flipsCountedimmediately after the flip branch) over a full run:0x49RELEASE_MEM withinterruptSelect = 1and address0(a pure EOP marker).enqueueLabelPackethands it toDrawPipeline::Queue0(), andcommitLabeldelivers at line 403.PacketExecution.cpp:295,if (!flipInterruptDeferred) AgcDriverDeliverEopInterrupt(submission.queue);. Since the EOP marker took the divert path (whichcontinues), the flip is a different packet in the same command stream.Decoding every label packet the guest routes through
Pm4::DecodeLabelWrite(the submit-timenoteHeldAtSubmitscan and the execution pass agree):So the guest asks for one EOP and gets two: one for its marker (
commitLabelline 403) and one for the flip (Driver::executeline 295).enqueueLabelPacket's own line 276 in that branch is also un-deduplicated against line 295, so a flip whose cursor packet is itself an EOP-marked release delivers twice from the same branch.3. Toggles
APS5_PIPELINE_DRAIN_LABELS=1andAPS5_LABEL_LOCK_EACH=1don't change anything: still 2 EOPs, and the guest still faults at0x1F94F2B(g_ctx:0x1000200000→0→ (2nd event) still0).Question
Is the flip supposed to raise a graphics-core EOP in addition to the release the guest marked with
interruptSelect=1? On the guest side both look like the same end-of-frame notification, and only one context is armed/consumed at a time, so the flip's extra EOP is the delivery that removes the entry and then trips the null. If the flip delivery is intended, should it be suppressed when the queue already signalled the guest's EOP marker for that flip (and should lines 276/295 collapse to one delivery)?I can capture anything further you'd like (per-delivery equeue
data, per-submission EOP counts, longer runs).Imported from boykopovar/AnyPS5. Originally posted by frankea on 2026-10-15T22:11:36Z.
A second title logs the same unknown sysmodule id, which may help place it. Horizon Call of the Mountain (PPSA05666, PS VR2 only, #6214) logs both
sceSysmoduleLoadModule unknown id: 298andunknown id: 304right after its thread start-up, onmain(fa539dd9bthrough31cbb55d7, Windows, RTX 4090); like here they do not stop the title. GT7 is PS VR2-capable and Horizon is PS VR2-only, and Horizon's import list has bothlibSceHmd2andlibSceVrTracker2, while the 285-entrykModuleTablehaslibSceHmd(0xd4) andlibSceVrTracker(0xed) but no entry for either2library. So 298 and 304 are probably the module ids oflibSceHmd2andlibSceVrTracker2, in some order. I have not found a public source that fixes which is which, so I am not proposing table entries; if someone has a title that imports only one of the two and logs only one of the ids, that would settle it.AI-assisted: yes (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by frankea on 2026-10-16T06:54:55Z.
Windows/NVIDIA reproduction on stock
main, and a detail about #6083: on Windows the crash does not need it.Setup. Gran Turismo 7 PPSA01317 01.000.001 (base package, no update; the report above is 01.680), extracted with PS5 PKG Tool. Windows 11 (26200), RTX 4090 (NVIDIA 616.92), AMD Ryzen 7 5800X, MinGW-w64 GCC 15.2.0 r7 (UCRT), Release
libs.main31cbb55d7libs;app.exefrom the samemain's relinker with--windows --registry --module-dir .(the dump keepslogiWheel.prxandlibSieRdNNabla.prxat its root, and without--module-dir .the loader stops onFailed to load module: libs\logiWheel.prx, error 126). No controller, no input.Result. Deterministic, 3 of 3: plain
maintwice (cold cache 21 s, warm 11 s) andmain5d9dcc42d+ #6083 (f7b2ebd8b) once, same thread, same instruction:The bytes at that address are your block, with
r15as the null context instead ofr14(different content version):So the null context in the frame-pacing loop is the same on Windows/NVIDIA and on the base version of the title, which fits the guest-side origin your follow-up traced rather than anything RADV- or Linux-specific.
On #6083. On this build the sampler-pair case is only a deferred preparation on Windows, not a stop:
so plain
mainreaches the crash without the PR, and the PR does not change the crash.sceSysmoduleLoadModule unknown id: 298is logged here too (stdout line 71), as in your run and in Horizon's (#6214).Logs (stderr of the three runs) are on the bring-up thread: https://github.com/boykopovar/AnyPS5/discussions/4697#discussioncomment-18966079
AI-assisted: yes (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by Lberonio on 2026-10-16T12:23:43Z.
Thanks @frankea — that's a useful independent data point, because it rules out two things I could only test from one side:
mov rax,[rX+0x48]immediately afterscePthreadMutexUnlock, with a null context in the frame-pacing loop on Windows/NVIDIA.mainwithout #6083.On Linux I can see the mechanism that produces the null: the guest arms exactly one context per frame (
g_ctx, BSS0x650C9C0) and the consumer expects one release, but the runtime delivers two AGC EOPs for the guest's singleinterruptSelect=1marker — one fromDriver::commitLabel(PacketMemory.cpp:403, the guest's diverted0x49RELEASE_MEM) and one fromDriver::execute's flip branch (PacketExecution.cpp:295). The second delivery releases a slot that was already cleared, so the next loop iteration enters the consumer block with a null pointer. The block you dumped is the same one, so the same two deliveries should be what runs on Windows.If you still have that Windows build to hand, the cheapest confirmation on the runtime side would be to count
AgcDriverDeliverEopInterruptcalls andflipsCountedincrements over a single frame: if that comes out at 2 and 1, then it is the same double-delivery and the platform-independence question is settled from both ends, not only from the guest side.On the
sceSysmoduleLoadModule unknown id: 298/304point: that looks orthogonal to the null deref (non-fatal, and consistent with missinglibSceHmd2/libSceVrTracker2entries inkModuleTable) — probably worth its own note rather than this thread.@MarcZX100 — does this change the picture? The Windows/NVIDIA run reaches the same consumer block with the same null dereference on the base title version and on stock
main, so the origin of the null is on the guest side and is not RADV- or Linux-specific. The open question is still the one in my follow-up: whether the flip branch should deliver a second graphics-core EOP when the queue already honoured the guest'sinterruptSelect=1marker for that flip.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-16T15:06:33Z.
It strengthens the diagnosis that the two runtime delivery sites account for GT7's second release, but it does not change my recommendation on the fix. The trace establishes the guest's one-install/one-release expectation for this path and the runtime's two deliveries; it still does not establish whether the synthetic flip EOP is required in addition to a guest EOP for the same frame, or whether the runtime should suppress/coalesce it. The existing Minecraft and Death Stranding 2 reports also show that bare flips are relied on for an EOP. I would want a console trace/spec result for marker-plus-flip versus bare flip before changing delivery semantics. I don't see a safe PR to submit yet.
Imported from boykopovar/AnyPS5. Originally posted by Lberonio on 2026-10-16T16:03:10Z.
@MarcZX100 — you asked whether the synthetic flip EOP is required in addition to a guest EOP for
the same frame. On GT7 the answer is no, and I now have a runtime experiment rather than only the
static argument: dropping the flip's EOP turns the frame-1 SIGSEGV into a run that gets well into
rendering.
What the guest asks for
GT7's queue-0 stream carries exactly one interrupting release, and it is not the flip:
The
int_sel=1release and the flip are in different submissions (the release submission hasflips=0, the flip submission has no release). A same-submission rule cannot express this.What the runtime delivers
Two
AgcDriverDeliverEopInterrupt(0)per frame — the guest's own release viacommitLabel(PacketMemory.cpp:403) and the flip via
Driver::execute(PacketExecution.cpp:295 inline, or thedeferred lambda at :292). Measured on the first frame:
One armed context, two events. That is the null
g_ctx.Experiment: drop the flip's EOP
Suppressing the flip's synthetic EOP in both paths (inline call and deferred lambda; the
AfterRecordedWorkcall itself is kept, otherwise its completion bookkeeping changes GPU flushing):Plain run, 41 s: no SIGSEGV; it now stops on the next, unrelated gap
(
sceSslEnableVerifyOption not implemented;unsupported primitive type 21in another run).Suppressing only the inline call is not enough: the fault moves from frame 1 to ~frame 33, where the
Recorder::finishcompletion drain fires deferred EOP callbacks back to back (deliveries #34/#35 atsite
lib+0x411372, one armed context) — the same over-delivery through the other path, so the flipbranch is not the only place that needs the rule.
Scope
I no longer propose a per-submission rule (the two packets are in different submissions).
What I ran is a per-queue sticky rule: once a queue's guest asks for its own end-of-pipe interrupt,
the runtime stops injecting the synthetic flip interrupt on that queue. Flip-only titles never set it,
so Minecraft/DS2 keep the flip interrupt exactly as today.
Patch (~20 lines, Driver.hpp + Submission.cpp + PacketExecution.cpp) attached below; built from
34454bd+ #6083,--to-intel, RX 9070 XT / RADV.I still cannot produce a console trace (no PS5 here), so the "one event per armed frame" reading rests
on the guest-side invariant plus this runtime A/B. If you would rather have it as a PR, say on which
base and I'll open one; if you want a narrower predicate than "the queue self-signals", tell me which
and I'll re-run it.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-16T16:20:28Z.
Thanks; this A/B closes the key question for GT7. The two delivery sites in current
mainmatch the duplicate event in your trace.Please open a focused PR on current
main(143f1305) with the runtime evidence and a regression test. One behavior needs coverage before the sticky per-queue flag is safe: after any single guest EOP, it suppresses every later synthetic flip EOP, including a later flip with no guest EOP. The existing bare-flip test runs before any guest EOP, so it would not catch that. Could you add a test for the sequence (guest EOP, later bare flip), or otherwise establish that guest self-signaling is a queue-lifetime mode?PR #6616 also changes the pipelined EOP-flip path in
PacketExecution.cpp; please coordinate/rebase against it and describe any dependency so the two behaviors are reviewed together. The A/B result is promising, and I’ll review the PR once you open it.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-16T16:21:48Z.
For the narrower rule you asked about, I would make suppression pending only until the next queue-0 flip: when a guest EOP is actually delivered, mark one pending guest signal; at the next flip, consume that marker and skip only that flip's synthetic EOP, then clear it. A later bare flip would still get the synthetic event. This handles markers and flips in separate submissions without making one early EOP disable synthetic flip notifications for the rest of the queue lifetime.
One implementation detail:
reserveOutputs()scans a whole submission beforeexecute()processes its packets, so setting the flag during that scan could suppress a flip that appears earlier in the same submission than the guest EOP. The marker should follow execution/delivery order. A focused test should cover guest EOP → flip (one delivered event), then a later bare flip (one synthetic event), and the reverse packet order if valid.Please try that predicate against your trace and, if it holds, open the PR on current
main; the test will make the cross-submission and ordering behavior reviewable.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-16T21:24:11Z.
Opened #6963 for the guest-EOP / synthetic-flip suppression and focused packet-order regression. It depends on #6616, keeps the suppression marker tied to actual guest queue-0 delivery, and verifies that a later bare flip still triggers. Locally, the focused CTest passed 1/1 on Linux after temporary local-only workarounds for this host’s CPU gate and an unrelated GCC 12 template parse issue; those workarounds are not in the PR. I did not run GT7 or claim GPU validation.
Imported from boykopovar/AnyPS5. Originally posted by Lberonio on 2026-10-17T08:55:30Z.
Built and ran the tree from #6963 against the GT7 dump (PPSA01317 01.000.001, RX 9070 XT / RADV,
--to-intel): the title still takes the same fault at frame 1 — one guest EOP delivered, onesynthetic flip EOP still delivered after it, consumer derefs null at guest
0x1F94F2B.Full trace, the same-session A/B table, and why the one-shot marker misses GT7 are on the PR:
boykopovar/AnyPS5#6963 (issuecomment-6231996930).
Short version: GT7 pairs two flip submissions with one guest-EOP submission
(
flips=0/flips=1/flips=1repeating over 598 instrumented submissions), so the single pending markeris consumed by the first flip and the second flip still delivers. Keying on the queue's
guest-EOP-issued mode instead of a one-shot marker ran 45 s without the fault.
Imported from boykopovar/AnyPS5. Originally posted by Lberonio on 2026-10-17T13:16:20Z.
The SIGSEGV traced here is now carried as its own change: #7137 (
libSceAgcDriver: a flip no longer raises the queue's end-of-pipe event on a queue that has already delivered an interrupt from one of its own release packets). GT7 pairs two flips with one release interrupt per frame, which is why the crash survived the earlier one-shot approach on #6963.With the change: 231 deliveries / 231 consumer entries / 0 null contexts, all from the guest release site, none from the flip site; the run no longer faults at 18 s. It then stops on unrelated gaps —
sceSslEnableVerifyOption not implementedin a plain run, an unsupported primitive type on another — so this issue is not closed by #7137 and the title still does not reach a playable state.Details, the focused test (
agc_driver_tests --eop-interrupts), and the scope limits are in #7137 and on #6963.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-17T13:33:26Z.
Thanks for the follow-up and the two-flips-per-release trace. The #7137 report now shows this specific frame-pacing SIGSEGV is avoided by suppressing synthetic flip EOPs after the queue has delivered its own release interrupt. It then reaches separate blockers (
sceSslEnableVerifyOptionand an unsupported primitive type), so keeping this issue open for those later failures is appropriate; this comment does not claim GT7 is playable.Imported from boykopovar/AnyPS5. Originally posted by Lberonio on 2026-10-17T13:35:40Z.
Agreed on leaving this open, thanks. Two accuracy notes on the "later failures", since one of them is no longer a gap:
sceSslEnableVerifyOptionis already implemented onmain. Incore/libs/prx/libSceSsl/Export.cppit now takes(int sslConnectionId, std::uint32_t option)and setsRequireConnection(...).verifyOptions |= option. Thenot implementedabort in my runs comes from the runtime I assembled at34454bd, where that export was stillint APS5_VABI sceSslEnableVerifyOption(void) { NotImplemented_nid_no_patch(__func__); }. A runtime built from currentmainshould not hit it; it is stale for that base, not an open gap.AGC graphics: unsupported primitive type 21is still real onmain. It is thrown byDecodeStateincore/libs/prx/libSceAgcDriver/Graphics/src/State.cpp, whoseswitch (primitive)covers 1, 2, 3, 4, 5, 6, 7, 9 and 17, and whosedefaultthrows. 21 isPrimitiveType::Polygonincore/libs/prx/libSceAgc/Shader/include/ShaderConstants.hpp. On the queue-latch build it surfaces as[gpu] driver failure→[videoout] presentation failedat 41–45 s, after the frame-pacing fault is gone.So of the two, the remaining blocker for a
main-built runtime is the polygon primitive path in the AGC graphics state decode; the SSL one should be re-checked on such a runtime before being counted. I have not run either against a fullmainruntime build, so that re-check is a prediction from the sources, not a measurement.Imported from boykopovar/AnyPS5. Originally posted by Lberonio on 2026-10-17T13:54:02Z.
New finding on current
main, independent of #7137: a modern driver cannot reach GT7's frame-pacing loop at all, because the title's display buffer is rejected at registration.It is not caused by #7137. Two runs on the same
34454bdruntime, one with the driver built from the #7137 branch and one with the driver built from unmodifiedorigin/main(e679bab91), produce the same 8.9 KB trace and the same abort; the only differences are thread and pointer addresses (ASLR). Neither reaches the flip path, and neither takes the frame-pacingSIGSEGV.Where it comes from.
core/libs/prx/libSceAgcDriver/Execution/src/DisplayBuffer.cpp:133:That line was added on
mainin901b92c79("feat(libSceVideoOut): register PS4 display buffers", 2026-10-11). At the runtime base34454bdthe same function only validated the address:GT7 passes that older rule — those runs reach frame pacing and present frames — so the new rule is what stops it. The requirement keys off the guest-declared
buffer.alignmentfield, which the older code never read. I do not have GT7's declaredalignment/tilingModevalues yet; the message covers any pair other than 64 KiB, or 4 KiB with linear tiling.Configuration caveat. To load a
main-builtlibSceAgcDriver.prxI also regeneratedlibc.prxfrommain: the branch prx importsLibcRegisterFailureReport_nid_no_patch, which the runtime's Oct-15libc.prxdoes not export, and main's now does. So both runs above aremaindriver +mainlibc on an otherwise34454bdruntime, not a single-module swap. A full runtime build frommainis the clean environment, but since the untouchedmaindriver fails at the same line with the same message, the display-buffer rejection stands on its own.Consequence for the trackers:
mainneeds this display-buffer rule checked against GT7 before the title can reach the flip path there, and the two later blockers I mentioned earlier (sceSslEnableVerifyOption, unsupported primitive) sit behind this one rather than in front of it. For #7137 this is also why the exact-artifact GT7 run stays limited to the equivalent change on the older tree.Imported from boykopovar/AnyPS5. Originally posted by pushkarreddyy on 2026-10-17T14:48:36Z.
Taking this remaining blocker (\AGC graphics: unsupported primitive type 21). Implementing \PrimitiveType::Polygon\ (21) mapped to \VK_PRIMITIVE_TOPOLOGY_TRIANGLE_FAN\ in \DecodeState\ with unit regression tests covering state decode, restart suppression, and rasterization handling, and will open the PR shortly.
Imported from boykopovar/AnyPS5. Originally posted by frankea on 2026-10-17T20:27:02Z.
Windows/NVIDIA run of the stack gjonn lists on D4697 (#7137 + #7207 + #7175 + #5958) on current
main, same base layout as my stock-mainreport above. Short version: the frame-pacing crash is gone here too, and the next stop on amain-built runtime issceSslConnect, not a graphics gap.Setup. Gran Turismo 7 PPSA01317 01.000.001 (base package), Windows 11 (26200), RTX 4090 (NVIDIA 616.92), AMD Ryzen 7 5800X, MinGW-w64 GCC 15.2.0 r7 (UCRT), Release
libs. Tree:maine1041f6a5+ #71372aa6bfca6+ #7207 ec28b6be8 + #7175 555b7e824 (all three merge clean), and as a secondlibsset the same plus #5958 87a9b8d28, whose only conflict withmainis twotarget_include_directorieslines appended for different test targets incore/libs/prx/libSceAgcDriver/CMakeLists.txt(both kept).app.exeis still the relink frommain31cbb55d7(--windows --registry --module-dir .); onlylibs/was swapped. No controller, no input, nobody at the keyboard.Result. Every run on either set (one on the three-PR set, six on the four-PR set; the three quoted below ran with the box otherwise idle) gets past the crash: no
0xc0000005onPGL Event, nounsupported primitive type 21, nounsupported color format 7, and no 4 KiB display-buffer alignment stop either (this 01.000.001 copy passes theDisplayBuffer.cpp:133check that @Lberonio's 01.680 copy fails). The title shows its "Sony Interactive Entertainment presents" splash, mounts its save data (mount3 ... dir=DRFILEIV ... -> 0x809f0008) and then aborts, identically every time:Wall clock from launch to exit, same
run-gt7.cmdas before:main31cbb55d7(10/16)0xc0000005onPGL Event,app.exe+0x1a51e90,r15 = 0main+ #7137 + #7207 + #7175sceSslConnect not implementedThe stock-
mainruns died before the logger's first 10 s summary and never reached the save-data mount; the stack runs log the summaries, the mount and the connect attempt. The emulator's title-bar counter is still on the splash when the abort comes (0.7 to 18 FPS across captures, so no rate worth quoting). ~210 shaders are deferred at registration (201 computeds_swappc_b64targets, 7unsupported MIMG opcode 0xe5, 2 without a program address), none of them a stop.Why it stops there.
sceNetCtlGetStateanswersIPOBTAINEDwhenever the host has an address (libSceNetCtl/Export.cpp), so the title goes online at boot and reachessceSslConnect, which isNotImplemented_nid_no_patchatlibSceSsl/Export.cpp:497. That fits gjonn's note on D4697 that offline mode is still a local switch in his tree, and it is what a plainmainruntime needs next on this path. (sceSslEnableVerifyOptionis not hit here, as @Lberonio predicted for a currentmainruntime.)The trimmed stderr of a warm run is on the bring-up thread: https://github.com/boykopovar/AnyPS5/discussions/4697#discussioncomment-19003867
AI-assisted: yes (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-17T23:54:46Z.
Thanks for testing the stack on Windows/NVIDIA. This confirms the title gets past the reported frame-pacing/graphics stop with #7137, #7207, and #7175 on your setup; the later
sceSslConnectstop is a separate startup blocker. Please track that SSL failure separately if you have a reproducible log, so this issue stays scoped to the original SIGSEGV.Imported from boykopovar/AnyPS5. Originally posted by frankea on 2026-10-18T01:14:59Z.
@MarcZX100 agreed on the scope. The
sceSslConnectstop doesn't need its own issue: libSceSsl had no transport at all (the call threwNotImplemented), and two open PRs give it one, #6828 (opened first, the base) and my #7319 (now a draft on top of it). With #7319'slibSceSsl.prxswapped into the same #7137 + #7207 + #7175 stack, the title gets past the handshake 3 of 3 and stops about 28 s in on the next gap,AGC graphics: blending into an 11_11_10 float color target is unsupported. I'm keeping that and whatever follows on D4697, so this issue stays on the SIGSEGV.AI-assisted: yes (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-18T03:15:50Z.
The 01.680 registration refusal looks like a separate concrete follow-up from the resolved frame-pacing crash, but the captured report does not include the guest
DisplayBufferfields that trigger the condition. Could you capture the registered buffer’salignment,tilingMode, address, pitch, and format from PPSA01317 01.680, and the same fields from 01.000.001 where registration passes? That would let us verify whether main’s 4 KiB/linear restriction rejects a valid guest descriptor before proposing a change.Imported from boykopovar/AnyPS5. Originally posted by Lberonio on 2026-10-18T08:38:17Z.
First, a correction to what I said earlier, then the numbers.
The
4 KiBstop came from pairing trees, not from this title's buffer.AgcDriver::DisplayBuffergained itsalignmentmember in901b92c79. The runtime'slibSceVideoOut.prxis built from34454bd, whoseDescribeVideoOutBufferconstructs the struct with the eight members it has (address,pixelFormat,width,height,tilingMode,pitchInPixel,dccAddress,dccClearColor) and never writesalignment, so a driver built from a newer tree reads a value that no code set. That is why an unmodifiedorigin/maindriver stopped at the same line in the same pairing. So that run said nothing about Gran Turismo 7's buffer, and the fields have to be read from a runtime where the driver andlibSceVideoOutcome from one tree.PPSA01317 01.680, read from a runtime directory rebuilt from my branch (
relinker+libs, both prx from the same tree). It registers three display buffers:0x20360000065536000x81000000220000003840 x 21600x2096000000x2055e000065536000x81000000220000003840 x 21600x2096300000x2075c000065536000x81000000220000003840 x 21600x209660000dccClearColoris0on all three, and the addresses are 64 KiB aligned. It registers and unregisters the same three buffers throughout the run, always with these values (the driver sized them 313 times in one 42 s run and 978 in another).So the title registers tiled, DCC-compressed 3840x2160 buffers at 64 KiB alignment, and
alignmentis65536because it defaults to that and only the PS4 registration path inDescribeVideoOutBufferlowers it to4096(for linear buffers, which is the only tiling that path accepts).sceVideoOutRegisterBuffersdoes not exist in the34454bdruntime at all, so the title registered throughsceVideoOutRegisterBuffers2in that runtime. With driver andlibSceVideoOutfrom one tree, the4 KiBrequirement is not reachable for this title.01.000.001: I cannot capture it here. The local dump is 01.680 and the 01.000.001 copy is frankea's on Windows. If he can run a build with the same
[display-buffer]line inDisplayBufferSize, the values will line up directly with the table above.For context, not part of this question: with the same runtime built from this branch, the title no longer faults in the flip path (the unmodified runtime faults at 18 s); it reaches 40 s and aborts on unrelated gaps (
sceSslConnectunimplemented, and an unsupported primitive type on another run).Imported from boykopovar/AnyPS5. Originally posted by frankea on 2026-10-18T22:50:42Z.
@Lberonio here are the 01.000.001 values, from a runtime whose
libSceAgcDriver.prxandlibSceVideoOut.prx(all 127 prx) come from one tree. Your[display-buffer]line is not on a public branch of your fork, so I added the equivalent print at the top ofDisplayBufferSizeincore/libs/prx/libSceAgcDriver/Execution/src/DisplayBuffer.cpp, gated by an environment variable:Setup. Gran Turismo 7 PPSA01317 01.000.001 (base package, no update), Windows 11 (26200), RTX 4090 (NVIDIA 616.92), MinGW-w64 GCC 15.2.0 r7, Release
libstarget. Tree:main48d61f53b(2026-10-18, so with #7137, #7207, #7175, #7238, #7240, #7271 and #7626 merged) + #7256 (which carries #7254) + #7243 + #5958, all four merged without conflicts, plus the print above and a local one-line bypass that makessceHmd2Initializeanswer0x81110016again (on currentmainthe title aborts 5 to 12 s in onsceHmd2ReprojectionQueryBufferSizeAlign not implemented, since #7323, before it registers anything).app.exeis the relink frommain31cbb55d7(--windows --registry --module-dir .); onlylibs/is swapped. One run, 138 s, cold shader cache, no input.Result. The title registers three display buffers, and the driver sized them 550 times each (1,650 lines) over the run, always with the same values; the first sizing is the sixth stderr line, before the first shader registration:
0x20080000065536000x81000000220000003840 x 21600x2068000000x2027e000065536000x81000000220000003840 x 21600x2068300000x2047c000065536000x81000000220000003840 x 21600x206860000dccClearColoris0on all three. So 01.000.001 lines up with your 01.680 table field for field: tiled (tilingMode0,pitchInPixel0), DCC-compressed, 3840x2160,pixelFormat0x8100000022000000,alignment65536. Only the base addresses differ (0x200800000here against0x203600000on 01.680, 0x2e00000 lower); the spacing is identical on both versions, 0x1fe0000 between consecutive buffers and 0x30000 between their DCC addresses. With driver andlibSceVideoOutfrom one tree the 4 KiB requirement atDisplayBuffer.cpp:133is not reached on this version either, which agrees with your correction that the earlier stop came from pairing trees.For the thread's context, on the same tree the title no longer faults in the flip path on this box either: splash, black loading screen at 49 FPS,
sceSslConnectnow returnsSSL_ERROR_UNKNOWN_CA(0x8095f00c) after a fewWANT_POLLINpolls on each of its seven connections instead of aborting, and the run ends 37 s in on aResourceMaterializerrefusal (an 8-bit 2D T# read by a pixel shader through DIM 2D_MSAA image loads, the case #6815 is about). I am keeping that on D4697 rather than here, since it is off this issue's topic.AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by fma-rc on 2026-10-19T19:22:18Z.
@Lberonio @frankea #7978 replaces the per-queue flip event latch from #7137 that resolved this crash: flips now raise no end-of-pipe event on any queue, and the event carries the release's interrupt context. I don't have Gran Turismo 7, so I can't check that the
r14+0x48null dereference stays gone. Could one of you run the stack you use now with #7978 in place of #7137's latch and say whether it still gets as far as before?Imported from boykopovar/AnyPS5. Originally posted by frankea on 2026-10-20T09:15:42Z.
@fma-rc ran it: with #7978 the
r14+0x48null dereference stays gone on Windows/NVIDIA, and Gran Turismo 7 gets one stop further than my last stack. Without it, currentmainhits the crash again even though #7137's latch is still in the tree.Setup. Gran Turismo 7 PPSA01317 01.000.001 (base package), Windows 11 (26200), RTX 4090 (NVIDIA 616.92), MinGW-w64 GCC 15.2.0 (UCRT), Release
libs, same layout andapp.exerelink as my earlier reports here. Trees:main3fd1cc393;main+ #7243da158d61f(the 11_11_10 replace blend from my last stack, merges clean); and that plus #7978 2c0ce8994 (merges clean). Everything else my 10/18 stack needed (#5958, #6815, #7254, #7463, #7690) is onmainnow. No controller, no input, 240 s cap.main3fd1cc3930xc0000005onPGL Event,app.exe+0x1a51e90, read of0x48,r15 = 0main+ #7243main+ #7243 + #7978AGC graphics: layered rendering with a depth target is unsupportedWith #7978 every run gets the splash, the loading screen with the GT spinner at 59.94 FPS on the title-bar counter, the save-data mount (
mount3 ... dir=DRFILEIV ... -> 0x809f0008) and about 4,500 to 5,300 presented frames (around 23 FPS late in the run) before the layered-depth refusal. That refusal is what #7256 covers, and it is the stop I reported on #7254 on 10/18 once #7254 was in. So the flip changes don't lose any progress on this title. I saw no stall from flip submissions now waiting for earlier flips: the counter keeps moving until the refusal.Without #7978, current
mainstops 6 to 8 s in at the same instruction as the original report, before the save-data mount. On 10/18main48d61f53b+ #7137 got past it, so something merged since then reaches this handler again with #7137's per-queue latch still in place. I did not pin it down. #6616 and #6794 both change when the flip event is delivered, butmainat the #6616 merge still stops earlier, onsceHmd2ReprojectionQueryBufferSizeAlign, so that build cannot show the crash either way.AI-assisted: yes (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by Lberonio on 2026-10-20T16:05:57Z.
The RADV side of the GT7 run you asked for on #7978 is in that PR. Summary, same setup pattern as frankea (GT7 PPSA01317 v01.680, base package), Arch Linux, Mesa 26.2.4, RADV, RX 9070 XT:
main: SIGSEGV in 4 of 4 runs at 18–22 s, null read at+0x48withr14 = 0, caller framelibkernel.prx— the same0x48null-dereference class frankea hit. Always before GT7 draws.sampled image descriptor uses an unsupported formatgap at 98–112 s, with or without the click.So the flip changes do not lose progress on this title on RADV either, and the early null dereference is gone there too.