Skip to content

[release/11.0-preview2] Revert forwarding activation signal#124894

Merged
steveisok merged 1 commit intorelease/11.0-preview2from
backport/pr-124877-to-release/11.0-preview2
Feb 26, 2026
Merged

[release/11.0-preview2] Revert forwarding activation signal#124894
steveisok merged 1 commit intorelease/11.0-preview2from
backport/pr-124877-to-release/11.0-preview2

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Feb 26, 2026

Backport of #124877 to release/11.0-preview2

/cc @janvorli

Customer Impact

  • Customer reported
  • Found internally

The current CheckActivationSafePoint uses thread local storage to
get the current Thread instance. But this function is called from
async signal handler (the activation signal handler) and it is not
allowed to access TLS variables there because the access can allocate
and if the interrupted code was running in an allocation code, it
could crash.
There was no problem with this since .NET 1.0, but a change in the
recent glibc version has broken this. We've got reports of crashes
in this code e.g on recent Ubuntu 25.04 due to this issue.

Regression

  • Yes
  • No

Testing

CI tests, local manual directed tests

Risk

Low, the change was in main for the past two months and we haven't seen any issues related to it. The newly added code is executed very frequently.

Recent change to fix lookup of current thread in the activation handler
also added forwarding of the activation signal to the previously
registered handler. That part of the change was unrelated to the actual
issue the change was fixing. It turned out that it breaks vsdbg
that doesn't expect to get the SIGUSR1 used for the activation on macOS.

This change reverts that part of the change to unblock vsdbg.
@janvorli janvorli added area-PAL-coreclr Servicing-consider Issue for next servicing release review labels Feb 26, 2026
@janvorli janvorli added this to the 11.0.0 milestone Feb 26, 2026
@janvorli janvorli self-assigned this Feb 26, 2026
@janvorli janvorli requested review from jkotas and steveisok February 26, 2026 13:03
@steveisok
Copy link
Member

/ba-g Known issues #124526 and #124487

@steveisok steveisok merged commit a25236e into release/11.0-preview2 Feb 26, 2026
109 of 114 checks passed
@steveisok steveisok deleted the backport/pr-124877-to-release/11.0-preview2 branch February 26, 2026 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-PAL-coreclr Servicing-approved Approved for servicing release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants