Open Bug 1191514 Opened 9 years ago Updated 1 year ago

AddressSanitizer should suppress log output for intentional crash (" AddressSanitizer: SEGV .../js/src/ctypes/CTypes.cpp:2741 js::ctypes::ConvertToJS(...)")

Categories

(Testing :: General, defect, P3)

defect

Tracking

(Not tracked)

People

(Reporter: jfrench, Unassigned)

References

(Blocks 2 open bugs)

Details

Attachments

(1 file)

I was going to enter this against as a blocker for bug 1048775, but checking with Ed first before switching to Testing::Mochitest :)

Step to reproduce:
o load https://treeherder.allizom.org/logviewer.html#?job_id=9117571&repo=mozilla-inbound
o click show successful steps

Observed:
In Step 11, these types of lines below are being marked as errors and styled as such by Treeherder

07:08:34 INFO - SUMMARY: AddressSanitizer: SEGV /builds/slave/m-in-l64-asan-0000000000000000/build/src/js/src/ctypes/CTypes.cpp:2741 js::ctypes::ConvertToJS(JSContext*, JS::Handle<JSObject*>, JS::Handle<JSObject*>, void*, bool, bool, JS::MutableHandle<JS::Value>)

Let me know Ed, and I'll switch product and component if applicable :)
Attached image mochitestInfoLines
Per screen grab.
Among the previous times we've hidden that intentional crash: bug 982600, bug 647213.
Flags: needinfo?(emorley)
Component: Treeherder → General
Flags: needinfo?(emorley) → needinfo?(choller)
Product: Tree Management → Testing
Summary: Mochitest bc1 info lines being counted as error/failure lines → AddressSanitizer should suppress log output for intentional crash (" AddressSanitizer: SEGV .../js/src/ctypes/CTypes.cpp:2741 js::ctypes::ConvertToJS(...)")
Version: --- → unspecified
Blocks: log-SnR
I think the subject of this bug is wrong. AddressSanitizer should not suppress anything because it's the wrong place to suppress stuff. If we don't want to count this crash as a bug, we have two options:

1) Don't run the test under ASan (we've done this for other similar tests afaik)

2) Make the tool that parses the info lines aware of this and other intentional crashes (but I assume that doesn't work well because in the log these crashes might be indistinguishable from regular crashes and the risk of flagging something wrongly as intentional is high).
Flags: needinfo?(choller)
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: