Skip to content
New issue

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

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

Already on GitHub? # to your account

Fix futex_fatal_error -- issue #6931 #6932

Merged
merged 2 commits into from
Apr 17, 2024

Conversation

EmployedRussian
Copy link
Contributor

In cclock.hpp we reserve storage for a mutex, but didn't specify alignment for it (except on ARM64).

That resulted in an unaligned pthread_mutex_t on Linux, when built with Clang 14.0.6 on x86_64 Ubuntu.

In cclock.hpp we reserve storage for a mutex, but didn't specify
alignment for it (except on ARM64).

That resulted in an unaligned pthread_mutex_t on Linux, when built with
Clang 14.0.6 on x86_64 Ubuntu.
@rhuanjl
Copy link
Collaborator

rhuanjl commented Apr 16, 2024

Hi @EmployedRussian thank you for this proposed fix, and I'm very sorry about the long delay - I wasn't aware of this PR until someone tagged me in a related issue.

I've tried adding Ubuntu 22 CI to test it in #6975 a debug build works with this but a Test build (Release with Debug Info) does not; do you have any scope or desire to look at this further?

@rhuanjl
Copy link
Collaborator

rhuanjl commented Apr 17, 2024

We've now found the other bug and it's unrelated (though also a necessary fix for Ubuntu 22).

Would you like this PR to be merged? Would ideally need you to sign our contributor agreement: https://github.com/chakra-core/ChakraCore/blob/master/ContributionAgreement.md

Thank you very much for finding what this problem was.

@EmployedRussian
Copy link
Contributor Author

Would you like this PR to be merged?

Sure.

Would ideally need you to sign our contributor agreement: https://github.com/chakra-core/ChakraCore/blob/master/ContributionAgreement.md

Done. #6979

@rhuanjl rhuanjl merged commit 5249f3d into chakra-core:master Apr 17, 2024
21 checks passed
@ppenzin ppenzin added the PAL label Apr 22, 2024
JavierMatosD pushed a commit to microsoft/vcpkg that referenced this pull request Apr 22, 2024
ChakraCore recently released a fix for a critical issue: crashing on
some Linux distributions.

chakra-core/ChakraCore#6932
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants