-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Simple segfault on 1.8, 1.9, and master #46879
Comments
|
ah, the classic "mutate a vector while you are mutating it" trick
|
Remove some unnecessary and incorrect inbounds annotations. Fix #46879
Hi, I observed a related issue by mapping over a vector while appending to it and wanted to share some observations I made. The crash is GC-related so I can also open a separate issue if appropriate. System information
Now these tests are on the command line since they may hang. First, a simple test that doesn't hang already causes me some confusion. Say I want to map over a vector and make it longer for a finite number of iterations. I would expect that the result has the same length as the original vector before mapping since the output array size is determined before the mapping for iterators with length or shape. Line 704 in 3ed49fd
On the other hand, if we go along with the self-mutating idea, that would only work as expected if the vector had Line 707 in 3ed49fd
Now the following test shows that both seem to be happening at the same time
And the issue is worse if the function has an ambiguous return type, causing the program to hang
After stopping the shell I get this log file, which is too big to attach so below I share the beginning log_mwe.txt
This seems quite strange so I thought I should bring it up |
The text was updated successfully, but these errors were encountered: