Segmentation Fault while iterating over a vector of "~[~T as Trait]" #5666
Labels
A-codegen
Area: Code generation
A-trait-system
Area: Trait system
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
Tested in rust 0.6 on Arch (Linux - 3.8.4, x86_64)
Modified testcase exhibits similar behavior on Mac OS X 10.7
I can call
#bark()
on any index of the vector and it does not seg-fault.When using the
#each()
iterator however, only the first element is printed, the next access results in a segmentation fault.I've been able to reproduce this on two separate systems, one running rust 0.6 (6dd20c8) on a fairly vanilla Linux kernel, the other running (release-0.5) on Mac OS X.
I've written a small test-case that exhibits this behavior on my systems.
Note
Please let me know if I can gather any additional information that might aid in resolving this issue.
The text was updated successfully, but these errors were encountered: