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

cgmemmgr,macos: add missing shared_map_lock initialization #47419

Merged
merged 1 commit into from
Nov 2, 2022

Conversation

vtjnash
Copy link
Sponsor Member

@vtjnash vtjnash commented Nov 1, 2022

Fixes #47254

@vtjnash vtjnash added system:mac Affects only macOS compiler:codegen Generation of LLVM IR and native code backport 1.6 Change should be backported to release-1.6 backport 1.8 Change should be backported to release-1.8 labels Nov 1, 2022
@gbaraldi
Copy link
Member

gbaraldi commented Nov 1, 2022

LGTM, but I don't get why this is tagged as mac. Is mutex initialization different in mac than linux?

@vtjnash
Copy link
Sponsor Member Author

vtjnash commented Nov 1, 2022

It was initialized on _OS_LINUX_ previously, but not other platforms

@quinnj
Copy link
Member

quinnj commented Nov 1, 2022

I can confirm that the fix here resolve the crash I saw in #47254 (comment).

@quinnj
Copy link
Member

quinnj commented Nov 2, 2022

As one more note of context: in the Relational AI workflow where we saw the crash, we ended up triggering this code path from a very long-running application that eventually genned enough code to need an additional shared page and on macos, this wasn't being initialized properly.

@vchuravy vchuravy merged commit b9da8a9 into master Nov 2, 2022
@vchuravy vchuravy deleted the jn/cgmemmgr-init-mac branch November 2, 2022 13:22
@quinnj quinnj mentioned this pull request Nov 7, 2022
37 tasks
@KristofferC
Copy link
Sponsor Member

@vchuravy, squash please :)

@KristofferC KristofferC removed the backport 1.8 Change should be backported to release-1.8 label Nov 8, 2022
@KristofferC KristofferC mentioned this pull request Nov 8, 2022
26 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 1.6 Change should be backported to release-1.6 compiler:codegen Generation of LLVM IR and native code system:freebsd Affects only FreeBSD system:mac Affects only macOS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

JIT CI abort on aarch64-darwin in LinearAlgebra/addmul uv_mutex_lock
5 participants