Skip to content

Conversation

@hun1er
Copy link
Contributor

@hun1er hun1er commented Sep 14, 2025

Summary

Addresses a critical compiler bug causing non-deterministic builds, resulting in .amxx files of varying sizes from identical source code.

Details

The issue was caused by an incorrect calculation of the debug symbol table size, which resulted in incorrect data being written to the executable. This resulted in non-deterministic builds and created a risk of server instability, as AMXX Mod X could crash when parsing corrupted debug information.
This patch corrects the calculation logic, ensuring the correct size of the debug symbol table.

Key Improvements

  • Deterministic builds: The compiler now generates identical (byte-for-byte) binaries from the same source code.
  • Valid .amxx binaries: Eliminates garbage data in the debug section.
  • Enhanced stability: Prevents potential server crashes caused by parsing corrupted debug symbols.

@github-actions github-actions bot added the bug Something isn't working label Sep 14, 2025
@hun1er hun1er merged commit ea51841 into main Sep 14, 2025
2 checks passed
@hun1er hun1er deleted the fix/debug-symbol-size branch September 14, 2025 08:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants