Skip to content

fix accidental save (and restore) of sigmask when interpreting try#59878

Merged
DilumAluthge merged 2 commits intomasterfrom
jn/interp-setjmp-mask
Oct 19, 2025
Merged

fix accidental save (and restore) of sigmask when interpreting try#59878
DilumAluthge merged 2 commits intomasterfrom
jn/interp-setjmp-mask

Conversation

@vtjnash
Copy link
Copy Markdown
Member

@vtjnash vtjnash commented Oct 17, 2025

Noticed during bug hunting of
ericphanson/LicenseCheck.jl#11 (comment) and may cause performance degradation for interpreter-executed try blocks or scope entry.

Noticed during bug hunting of
ericphanson/LicenseCheck.jl#11 (comment)
and may cause performance degradation for interpreter-executed try
blocks or scope entry.
@giordano giordano added system:mac Affects only macOS backport 1.11 Change should be backported to release-1.11 backport 1.12 Change should be backported to release-1.12 labels Oct 17, 2025
@vtjnash vtjnash added the merge me PR is reviewed. Merge when all tests are passing label Oct 18, 2025
@vtjnash
Copy link
Copy Markdown
Member Author

vtjnash commented Oct 18, 2025

Note that this is a confusing one, since the officially published source code that Apple claims is being run does not have this bug (apple-oss-distributions/libplatform@main...rel/libplatform-349), but is also very clearly not the code that is actually present in libsystem_platform.dylib via disassembly, which is mostly similar but has more pointer authentication code. That code is APSL licensed, so Apple can do whatever they want there, just confusing to have them seemingly intentionally misrepresent which code is being used. And it just happens to be in our favor, performance-wise, to disable executing the buggy function.

@DilumAluthge DilumAluthge merged commit c1353ac into master Oct 19, 2025
7 checks passed
@DilumAluthge DilumAluthge deleted the jn/interp-setjmp-mask branch October 19, 2025 00:55
@DilumAluthge DilumAluthge removed the merge me PR is reviewed. Merge when all tests are passing label Oct 19, 2025
KristofferC pushed a commit that referenced this pull request Oct 21, 2025
…59878)

Noticed during bug hunting of

ericphanson/LicenseCheck.jl#11 (comment)
and may cause performance degradation for interpreter-executed try
blocks or scope entry.

Co-authored-by: Dilum Aluthge <dilum@aluthge.com>
(cherry picked from commit c1353ac)
KristofferC pushed a commit that referenced this pull request Oct 21, 2025
…59878)

Noticed during bug hunting of

ericphanson/LicenseCheck.jl#11 (comment)
and may cause performance degradation for interpreter-executed try
blocks or scope entry.

Co-authored-by: Dilum Aluthge <dilum@aluthge.com>
(cherry picked from commit c1353ac)
@KristofferC KristofferC mentioned this pull request Oct 21, 2025
35 tasks
@Drvi
Copy link
Copy Markdown
Contributor

Drvi commented Oct 30, 2025

Hey folks, just saw this issue after experiencing ericphanson/LicenseCheck.jl#11 (comment) on Julia 1.10.10 -- Will this be backported to 1.10 as well? Thank you!

@KristofferC KristofferC added the backport 1.10 Change should be backported to the 1.10 release label Oct 30, 2025
kpamnany added a commit to RelationalAI/julia that referenced this pull request Oct 30, 2025
…uliaLang#59878)

 Noticed during bug hunting of
 ericphanson/LicenseCheck.jl#11 (comment)
 and may cause performance degradation for interpreter-executed try
 blocks or scope entry.
kpamnany added a commit that referenced this pull request Oct 30, 2025
… when interpreting try (#59878)

Noticed during bug hunting of
ericphanson/LicenseCheck.jl#11 (comment)
and may cause performance degradation for interpreter-executed try
blocks or scope entry.
kpamnany added a commit to RelationalAI/julia that referenced this pull request Oct 31, 2025
…uliaLang#59878) (#258)

Noticed during bug hunting of
 ericphanson/LicenseCheck.jl#11 (comment)
 and may cause performance degradation for interpreter-executed try
 blocks or scope entry.
DilumAluthge added a commit that referenced this pull request Nov 5, 2025
…59878)

Noticed during bug hunting of

ericphanson/LicenseCheck.jl#11 (comment)
and may cause performance degradation for interpreter-executed try
blocks or scope entry.

Co-authored-by: Dilum Aluthge <dilum@aluthge.com>
(cherry picked from commit c1353ac)
@KristofferC KristofferC removed the backport 1.12 Change should be backported to release-1.12 label Nov 21, 2025
@DilumAluthge
Copy link
Copy Markdown
Member

This doesn't backport cleanly to 1.10.

@vtjnash Can you do a manual backport?

@vtjnash
Copy link
Copy Markdown
Member Author

vtjnash commented Jan 19, 2026

git praise says you can't because it already is done

commit 8988c1b0657029751974968cf7cb6e0fb6a5f98f
Author: Kiran Pamnany <kpamnany@users.noreply.github.com>
Date:   Tue Nov 4 12:36:29 2025 -0500

    [backports-release-1.10] fix accidental save (and restore) of sigmask… (#59996)

@vtjnash vtjnash removed the backport 1.10 Change should be backported to the 1.10 release label Jan 19, 2026
kpamnany pushed a commit to RelationalAI/julia that referenced this pull request Jan 21, 2026
…uliaLang#59878)

Noticed during bug hunting of

ericphanson/LicenseCheck.jl#11 (comment)
and may cause performance degradation for interpreter-executed try
blocks or scope entry.

Co-authored-by: Dilum Aluthge <dilum@aluthge.com>
(cherry picked from commit c1353ac)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport 1.11 Change should be backported to release-1.11 system:mac Affects only macOS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants