Skip to content

fix: corrupted list in tests#2079

Merged
mosteo merged 5 commits intoalire-project:masterfrom
mosteo:fix/corrupted
Feb 18, 2026
Merged

fix: corrupted list in tests#2079
mosteo merged 5 commits intoalire-project:masterfrom
mosteo:fix/corrupted

Conversation

@mosteo
Copy link
Member

@mosteo mosteo commented Feb 17, 2026

No description provided.

@mosteo mosteo force-pushed the fix/corrupted branch 3 times, most recently from 1c49cc5 to b6a9e8c Compare February 17, 2026 17:45
@mosteo mosteo marked this pull request as ready for review February 17, 2026 22:47
Copilot AI review requested due to automatic review settings February 17, 2026 22:47
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request fixes a "corrupted double-linked list" bug that occurs during testing with gcc 13. The bug manifests as a heap corruption error when executing alr with --del remote in the git-reference test. The fix addresses this by refactoring how Ada reserved keywords are stored and checked.

Changes:

  • Refactored reserved keywords storage from a compile-time constant array to a runtime lazily-initialized heap-allocated structure
  • Added gcc version detection and test skip logic to avoid triggering the known bug on gcc 13
  • Created a new Alire.Reserved package to encapsulate the keyword checking logic

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
testsuite/tests/with/git-reference/test.py Adds gcc version detection to skip test on gcc 13 where the bug occurs
src/alire/alire.ads Removes the large constant array of reserved keywords from the private section
src/alire/alire.adb Updates keyword checking to use the new Reserved.Is_Keyword function
src/alire/alire-reserved.ads New package specification declaring the Is_Keyword function
src/alire/alire-reserved.adb New package body implementing lazy initialization of reserved keywords array

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@mosteo mosteo merged commit e4e2b89 into alire-project:master Feb 18, 2026
39 checks passed
@mosteo mosteo deleted the fix/corrupted branch February 18, 2026 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants