This is an archive of the discontinued LLVM Phabricator instance.

[lldb] [test] Improve comment on expr-after-step-after-crash tests
AcceptedPublic

Authored by mgorny on Nov 5 2020, 1:03 PM.

Details

Summary

Make the comment indicate more strongly that this behavior
is Darwin-specific and it is not a bug for other platforms to behave
differently.

Diff Detail

Event Timeline

mgorny requested review of this revision.Nov 5 2020, 1:03 PM
mgorny created this revision.
emaste added a comment.Nov 5 2020, 2:54 PM

How does Windows fit into this? Other than that Q, LGTM.

mgorny added a comment.Nov 5 2020, 2:56 PM

How does Windows fit into this? Other than that Q, LGTM.

@labath, any clue?

How does Windows fit into this? Other than that Q, LGTM.

@labath, any clue?

I don't know... Since the test is not annotated, I guess it somehow makes this work, but I haven't been able to find the code that makes it happen.

The problem with this test is that the behavior it prescribes is not compatible with applications that handle SIGSEGV themselves. People have complained about that, including on macos (see D89315). If we were able to tell that the application will not actually handle the SEGV (or other signal), then displaying the process as "crashed" would actually be a good signal to the user. But I don't know of a reasonable way to check whether injecting a signal will cause the app to exit. The situation is probably the same on windows, as it also allows apps to handle their own exceptions (unless we're actually checking whether the application will handle it, which I doubt) , but noone probably noticed it yet...

mgorny added a subscriber: zturner.

@zturner, could you tell us what is the expected behavior on Windows? Is it the same as Darwin (i.e. as expected by this test), or do you consider it incidental and would prefer skipping the test on Windows too?

labath added a subscriber: amccarth.Nov 9 2020, 1:25 AM

Zach is pretty much inactive. @amccarth is a better windows contact these days.

labath accepted this revision.Nov 26 2021, 2:56 AM

Getting this off my queue. I think the change is fine, but I can also live with the original comment.

This revision is now accepted and ready to land.Nov 26 2021, 2:56 AM
emaste accepted this revision.Dec 3 2021, 1:52 PM

Fine with me, or maybe "A test for Darwin- (and prehaps Windows-)specific behavior."