mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 21:40:52 +01:00
[PR #2374] pipeline_workers: keep the rethrown error alive for Wine 11.0's rethrow_exception; pipeline_workers passes under Wine #2376
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#2376
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?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/2374
Author: @Tauwni
Created: 11/26/2026
Status: 🔄 Open
Base:
main← Head:fix/pipeline-workers-rethrow-wine📝 Commits (1)
dc52918pipeline_workers: keep the rethrown error alive across the throw, for Wine 11.0's rethrow_exception📊 Changes
1 file changed (+8 additions, -1 deletions)
View changed files
📝
runtime/src/pipeline_workers.h(+8 -1)📄 Description
Under Wine 11.0,
pipeline_workersfails every round of itsexceptions()case ("run() rethrew no exception, or not the lowest job's"). On native Windows and macOS it passes.PipelineWorkers::run()(runtime/src/pipeline_workers.h) keeps the lowest job's error in theexception_ptrof aBatchon its own stack and ends withstd::rethrow_exception(batch.error). Wine 11.0'srethrow_exceptionthrows the stored object itself, not a copy. So the unwinding out ofrun()destroysbatch, frees that object while it is still in flight, and the caller'scatch (const std::runtime_error&)never sees it. #1086 found the same Wine behaviour ingta6rt'sDllMainfailure path and keeps a copy there.Here the error type is whatever a job throws, so a copy of a known type doesn't fit. Instead, a
thread_local std::exception_ptrtakes the error just before the rethrow and keeps the object alive until that thread's next error. Nothing else changes: the lowest-index rule, the stop and the inline path for one job stay as they are.Tested on an Apple M3 (macOS 26.5.1) at
mainfbf100b1b:pipeline_workerspipelinemain; PASS with this, 3 runs out of 3vk_pipeline_check_cli(a timeout) andpipeline_cache_seedfail with and without this changemain)d3d12_pipeline_workers,d3d12_pipeline_workers_eagerandreplay_pipeline_compiles*, which run throughPipelineWorkers, pass under Wine with this change.AI-assisted (Claude Code). No game data.
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.