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

identifier z crashes LLVM #122793

Open
bottle2 opened this issue Jan 13, 2025 · 6 comments
Open

identifier z crashes LLVM #122793

bottle2 opened this issue Jan 13, 2025 · 6 comments
Labels
clang:frontend Language frontend issues, e.g. anything involving "Sema" crash Prefer [crash-on-valid] or [crash-on-invalid] needs-reduction Large reproducer that should be reduced into a simpler form

Comments

@bottle2
Copy link

bottle2 commented Jan 13, 2025

check out this error report: emscripten-core/emscripten#23383
maybe you have a regression? emcc says to be using clang version 20.0.0git, but I'm using clang 19.1.6 and no such problem exists.

$ clang -v
clang version 19.1.6
Target: x86_64-w64-windows-gnu
Thread model: posix
InstalledDir: C:/msys64/clang64/bin
@EugeneZelenko EugeneZelenko added clang:frontend Language frontend issues, e.g. anything involving "Sema" crash Prefer [crash-on-valid] or [crash-on-invalid] needs-reduction Large reproducer that should be reduced into a simpler form and removed new issue labels Jan 13, 2025
@llvmbot
Copy link
Member

llvmbot commented Jan 13, 2025

@llvm/issue-subscribers-clang-frontend

Author: None (bottle2)

check out this error report: https://github.com/emscripten-core/emscripten/issues/23383 maybe you have a regression? emcc says to be using clang version 20.0.0git, but I'm using clang 19.1.6 and no such problem exists.
$ clang -v
clang version 19.1.6
Target: x86_64-w64-windows-gnu
Thread model: posix
InstalledDir: C:/msys64/clang64/bin

@shafik
Copy link
Collaborator

shafik commented Jan 13, 2025

We are going to need some sort of reduction to make any progress, I don't see any similar bugs so far.

@bottle2
Copy link
Author

bottle2 commented Jan 13, 2025

is "reduction" finding which commit introduced the bug?

@Endilll
Copy link
Contributor

Endilll commented Jan 14, 2025

We need a self-contained reproducer, which means it doesn't depend on any other files (think Compiler Explorer examples). That file is likely to be at least several megabytes in size, and reducing it to something that fits on the screen is the reduction Shafik meant.

@bottle2
Copy link
Author

bottle2 commented Jan 14, 2025

ah, okay.

this the first test case:

int z;

this is the second test case:

int z = 2;

this is the third test case:

int z(int);

@Endilll
Copy link
Contributor

Endilll commented Jan 14, 2025

Neither of them reproduce on their own: https://godbolt.org/z/83o6n1KGf
Additional information needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clang:frontend Language frontend issues, e.g. anything involving "Sema" crash Prefer [crash-on-valid] or [crash-on-invalid] needs-reduction Large reproducer that should be reduced into a simpler form
Projects
None yet
Development

No branches or pull requests

5 participants