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

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

Open
bjorn3 opened this issue Feb 3, 2025 · 2 comments
Labels
A-parallel-queries Area: Parallel query execution C-bug Category: This is a bug. E-help-wanted Call for participation: Help is requested to fix this issue. E-needs-investigation Call for partcipation: This issues needs some investigation to determine current status I-crash Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics. WG-compiler-parallel Working group: Parallelizing the compiler

Comments

@bjorn3
Copy link
Member

bjorn3 commented Feb 3, 2025

cc #135870 (comment)

This could be a miscompilation or UB somewhere in rustc.

@bjorn3 bjorn3 added C-bug Category: This is a bug. I-crash Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics. WG-compiler-parallel Working group: Parallelizing the compiler labels Feb 3, 2025
@rustbot rustbot added the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Feb 3, 2025
@lqd lqd added A-parallel-queries Area: Parallel query execution E-needs-investigation Call for partcipation: This issues needs some investigation to determine current status labels Feb 3, 2025
@jieyouxu jieyouxu added E-help-wanted Call for participation: Help is requested to fix this issue. and removed needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. labels Feb 3, 2025
@Zoxc
Copy link
Contributor

Zoxc commented Mar 23, 2025

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?

@bjorn3
Copy link
Member Author

bjorn3 commented Mar 23, 2025

🤦

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-parallel-queries Area: Parallel query execution C-bug Category: This is a bug. E-help-wanted Call for participation: Help is requested to fix this issue. E-needs-investigation Call for partcipation: This issues needs some investigation to determine current status I-crash Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics. WG-compiler-parallel Working group: Parallelizing the compiler
Projects
None yet
Development

No branches or pull requests

5 participants