Skip to content

AHI: fix crash on OpenDevice failure.#90

Merged
sezero merged 1 commit intolibxmp:masterfrom
AliceLR:fix-ahi-opendevice-failure
Apr 5, 2026
Merged

AHI: fix crash on OpenDevice failure.#90
sezero merged 1 commit intolibxmp:masterfrom
AliceLR:fix-ahi-opendevice-failure

Conversation

@AliceLR
Copy link
Copy Markdown
Contributor

@AliceLR AliceLR commented Apr 5, 2026

Attempting the close_libs cleanup routine on an AHIRequest that hasn't been properly initialized by CreateIORequest/OpenDevice appears to result in an instant crash. This patch moves the second AHIRequest allocation to immediately precede its initialization to avoid this issue.

Closes #89.

Attempting the close_libs cleanup routine on an AHIRequest that
hasn't been properly initialized by CreateIORequest/OpenDevice
appears to result in an instant crash. This patch moves the
second AHIRequest allocation to immediately precede its
initialization to avoid this issue.
@AliceLR AliceLR added this to the 4.3.0 milestone Apr 5, 2026
@AliceLR AliceLR added the bug label Apr 5, 2026
@AliceLR AliceLR marked this pull request as draft April 5, 2026 01:17
@AliceLR AliceLR marked this pull request as ready for review April 5, 2026 01:17
@AliceLR AliceLR requested a review from sezero April 5, 2026 01:22
@sezero sezero merged commit 8a72bd3 into libxmp:master Apr 5, 2026
1 check passed
@AliceLR AliceLR deleted the fix-ahi-opendevice-failure branch April 5, 2026 01:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Amiga: OpenDevice failure results in System Failure

2 participants