-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
segfault inserting into a hashmap #1964
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 |
ghost
assigned marijnh
Mar 12, 2012
Assigning to @marijnh because I think he'll probably know what's up. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in 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: