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

Add alignment wrapper to pthread_getattr_np. #135

Merged
merged 1 commit into from
Oct 18, 2021

Conversation

mogery
Copy link
Contributor

@mogery mogery commented Oct 17, 2021

This fixes stack corruption when using pthread_getattr_np on hirsute (Ubuntu 21.04) and libc >=2.33 by adding a wrapper with getAlignedAttrWithInit(attr, 0).

This should also fix #130, but I'm still waiting for verification.

This fixes stack corruption when using pthread_getattr_np on
hirsute (Ubuntu 21.04) and libc >=2.33

This should also fix ptitSeb#130.
@ptitSeb
Copy link
Owner

ptitSeb commented Oct 18, 2021

Looks good to me. The attr wrapping was indeed missing there.

@mogery mogery marked this pull request as ready for review October 18, 2021 08:05
@mogery
Copy link
Contributor Author

mogery commented Oct 18, 2021

Alright, also good from my end, but 130 might need reopening.

@ptitSeb
Copy link
Owner

ptitSeb commented Oct 18, 2021

The issue with Hirsute (I assume that why you mention #130 ) can probably be a new ticket, I suspect the source is different.

@ptitSeb ptitSeb merged commit 36bfcd2 into ptitSeb:main Oct 18, 2021
@mogery
Copy link
Contributor Author

mogery commented Oct 18, 2021

They're still having a bit of trouble with Unity Preload. It's fine probably

@LilGripper
Copy link

I need help I don't understand what any of the stuff you put above mean. can you please explain it to me

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.

Caves of Qud Linux64 error
3 participants