Why does Ctrl+C terminate tests with STATUS_STACK_BUFFER_OVERRUN? #1414
-
As Raymond Chen has explained in Nonetheless, I find it odd that I see this when I cancel gitoxide's test suite with Ctrl+C on Windows, since it does not happen when I cancel other Rust projects' tests when running them in the same way.
As noted in this Stack Overflow answer and that Microsoft documentation, When this is produced by a call to the For contrast, I have tried running
(With various other interrupted tests, with the same message.)
(With many other interrupted tests, with the same message.) "Application Exit by CTRL+C" is an intuitive effect of pressing Ctrl+C to cancel tests, while a request for immediate termination--even if not related to any actual memory errors--is less intuitive. Full output from all four projects tested can be seen in this gist. I do not assume this is a bug. But I don't want to assume it isn't, unless this can be explained. The The effect does not appear specific to when tests from any particular crate of gitoxide are running. Although I believe no signal--in the usual POSIX-related sense--is being used here to terminate the processes. Nonetheless, maybe this has something to do with how gitoxide deals with signals? I cannot produce this with |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Thanks for bringing this up, it's an interesting issue for sure! I wonder if this truly only happens when particular Signal handlers aren't setup by any test either. I would find it interesting to see if a reduced test-run still shows this issue. I.e. if there was a worktree of Ideally, that would make it possible to find a minimal reproduction, and maybe even the reason this happens. |
Beta Was this translation helpful? Give feedback.
Thanks again for looking into this!
Maybe this question should be upgraded to an issue though. Somehow I have a feeling that this is related to what
gitoxide
does, or its dependencies.