-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
Valgrind sometimes takes a very long time on some tests #1922
Comments
This could be related to #1527, since I seem to be able to reproduce this behavior with optimizations on, but not off. We could be getting into a scenario where we repeatedly reallocate hunks of stack, pissing off valgrind. |
It could even be just the act of preparing the stack segments for valgrind that makes it so slow - it's a fairly expensive operation that involves setting a status bit for every byte of the stack. |
Actually, I can't reproduce this locally. I had a build take 12 hours last night on one of the bots. |
Some investigation leads me to believe this could be a result of some pathological locking behavior in rust_port_detach. |
I'm confident now that #1924 is the reason the linux bots randomly take ridiculous amounts of time. |
Fixed. |
One of the bots has currently been spending 30 minutes valgrinding task-perf-word-count. This makes me think something is going terribly wrong with memory management. Possibly related to native stacks.
The text was updated successfully, but these errors were encountered: