-
Notifications
You must be signed in to change notification settings - Fork 13.4k
segfault inserting into a hashmap #1964
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Labels
A-type-system
Area: Type system
I-crash
Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.
Comments
Here's a slightly reduced test case:
|
Here's what valgrind says:
Perhaps rustc thinks that |
Assigning to @marijnh because I think he'll probably know what's up. |
celinval
pushed a commit
to celinval/rust-dev
that referenced
this issue
Jun 4, 2024
Kobzol
pushed a commit
to Kobzol/rust
that referenced
this issue
Dec 30, 2024
bors
pushed a commit
to rust-lang-ci/rust
that referenced
this issue
Jan 2, 2025
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Labels
A-type-system
Area: Type system
I-crash
Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.
Test program:
If you compile that and run it on Mac OS, using rust 664d71f I get:
The problem seems to be that "aa" is being stomped on in the case where it is used for both the key and as part of a struct being inserted.
The text was updated successfully, but these errors were encountered: