Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

desauto: initialize the comment array to a sensible value #99

Merged
merged 1 commit into from
Aug 22, 2024

Conversation

schopin-pro
Copy link
Contributor

If left uninitialized, the comment array is passed down to client code without being even written to, which means it contains whatever happens to be on the stack whenever the frame for main is created. Recent changes to glibc start code have changed said content, and the new one happens to break the test suite when propagated into some temporary files that are then fed to the main leonconv binary.

That explains why using ThreadSanitizer "fixes" the test suite: presumably, the runtime initialization code happens to write in that aread of the stack and changes yet again the contents of the comment array, which happens to suit whatever expectations are in leonconv.

Fixes #98

If left uninitialized, the comment array is passed down to client code
without being even written to, which means it contains whatever happens
to be on the stack whenever the frame for `main` is created. Recent
changes to glibc start code have changed said content, and the new one
happens to break the test suite when propagated into some temporary
files that are then fed to the main leonconv binary.

That explains why using ThreadSanitizer "fixes" the test suite:
presumably, the runtime initialization code happens to write in that
aread of the stack and changes yet again the contents of the comment
array, which happens to suit whatever expectations are in leonconv.

Fixes gap-packages#98
@osj1961 osj1961 merged commit 89310d7 into gap-packages:master Aug 22, 2024
7 checks passed
Copy link

codecov bot commented Aug 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 49.25%. Comparing base (6824a6b) to head (3d6cdfd).
Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master      #99   +/-   ##
=======================================
  Coverage   49.25%   49.25%           
=======================================
  Files          44       44           
  Lines       14710    14710           
  Branches      203      203           
=======================================
  Hits         7245     7245           
  Misses       7465     7465           

@osj1961
Copy link
Collaborator

osj1961 commented Aug 22, 2024

Simon, Thanks for discovering the issue and then finding a fix.

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.

Guava test suite fails with glibc 2.40
2 participants