mirror of
https://github.com/aaru-dps/Aaru.git
synced 2026-02-04 00:54:33 +00:00
[UnitTest] [Marshal] [macOS] Marshalling CD-i directory record makes runtime crash with SIGBUS #949
Reference in New Issue
Block a user
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?
Originally created by @claunia on GitHub (Dec 9, 2022).
Version
Development commit
Commit hash
HEAD
Tested debug version?
Which operating systems have you used?
What is the architectural bit size you're using?
What processor are you using?
Description
Marshalling CD-i's DirectoryRecord structure from unit test makes the kernel die with SIGBUS.
Confirmed it does not happen in Linux/x64, unconfirmed if it happens in macOS/x64 or Windows.
Exact command line used
Unit test
Expected behavior
Correct big endian marshalling.
Actual behavior
At the middle of reversing the ending of the fields in
c9e8b4dd0f/Marshal.cs (L270)a SIGBUS is received and killed by the kernel.Output of command execution with debug output enabled
@claunia commented on GitHub (Dec 10, 2022):
Confirmed works in linux/x64, win/x86, win/x64, osx/x64, fails in osx/arm64.