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

[Coroutine] Segfault with coroutine and AVX #122283

Open
NewSigma opened this issue Jan 9, 2025 · 2 comments
Open

[Coroutine] Segfault with coroutine and AVX #122283

NewSigma opened this issue Jan 9, 2025 · 2 comments
Labels
coroutines C++20 coroutines

Comments

@NewSigma
Copy link

NewSigma commented Jan 9, 2025

https://godbolt.org/z/hGWTGssKo

The code works on my machine but uncommenting the line makes it segfault again.

//thread_local static Empty e{}; // Uncomment this if the code works

My environment:
Ubuntu 24.04
clang 18.1.3

Build option:
-std=c++20 -mavx

@llvmbot llvmbot added the clang Clang issues not falling into any other category label Jan 9, 2025
@EugeneZelenko EugeneZelenko added coroutines C++20 coroutines and removed clang Clang issues not falling into any other category labels Jan 9, 2025
@llvmbot
Copy link
Member

llvmbot commented Jan 9, 2025

@llvm/issue-subscribers-coroutines

Author: None (NewSigma)

https://godbolt.org/z/hGWTGssKo

The code works on my machine but uncommenting the line makes it segfault again.

//thread_local static Empty e{}; // Uncomment this if the code works

My environment:
Ubuntu 24.04
clang 18.1.3

Build option:
-std=c++20 -mavx

@RKSimon
Copy link
Collaborator

RKSimon commented Jan 9, 2025

Maybe a stack alignment issue?

@NewSigma NewSigma changed the title [clang] Segfault with coroutine and AVX [Coroutine] Segfault with coroutine and AVX Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
coroutines C++20 coroutines
Projects
None yet
Development

No branches or pull requests

4 participants