-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
segfault inserting into a hashmap #1964
Copy link
Copy link
Closed
Labels
A-type-systemArea: Type systemArea: Type systemI-crashIssue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.
Metadata
Metadata
Assignees
Labels
A-type-systemArea: Type systemArea: Type systemI-crashIssue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.
Type
Fields
Give feedbackNo fields configured for issues without a type.
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.