Skip to content

Find root cause why inlining GlobalCtxt::enter causes a crash in the deadlock handler #136499

Closed

Description

@bjorn3

cc #135870 (comment)

This could be a miscompilation or UB somewhere in rustc.

Activity

  1. added
    C-bugCategory: This is a bug.
    I-crashIssue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.
    on Feb 3, 2025
  2. added
    needs-triageThis issue may need triage. Remove when done. See docs forge.rust-lang.org/release/issue-triaging
    on Feb 3, 2025
  3. added
    E-needs-investigationCall for participation: This issues needs some investigation to determine current status
    on Feb 3, 2025
  4. added
    E-help-wantedCall for participation: Help is requested to fix this issue.
    and removed
    needs-triageThis issue may need triage. Remove when done. See docs forge.rust-lang.org/release/issue-triaging
    on Feb 3, 2025
  5. Zoxc commented on Mar 23, 2025

    @Zoxc
    Contributor

    You were storing &&GlobalCtxt instead of &GlobalCtxt in CurrentGcx in #134302. I would prefer the enter method to be separate, maybe move it to CurrentGcx?

  6. bjorn3 commented on Mar 23, 2025

    @bjorn3
    MemberAuthor

    🤦

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-parallel-compilerArea: parallel compilerC-bugCategory: This is a bug.E-help-wantedCall for participation: Help is requested to fix this issue.E-needs-investigationCall for participation: This issues needs some investigation to determine current statusI-crashIssue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions