Closed Bug 1508426 Opened 6 years ago Closed 6 years ago

treat "Pure virtual function called!" as an error in logviewer

Categories

(Release Engineering :: Applications: MozharnessCore, enhancement, P1)

enhancement

Tracking

(firefox65 fixed)

RESOLVED FIXED
Tracking Status
firefox65 --- fixed

People

(Reporter: Alex_Gaynor, Assigned: Alex_Gaynor)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

(I'm not positive this is the right component)

When a binary we compiled spits out "Pure virtual function called!" on stderr, that means it just hit a fatal error and is about to abort. This piece of information is extremely useful in debugging what happened, it'd be great if the logviewer highlighted these as errors!
Hi! We're no longer accepting regex changes in Treeherder for cases where the test harness/runner should be using appropriate log line prefixes, so in this case mozharness/whatever is wrapping this command will need changing to make:

[task 2018-11-13T04:39:16.872Z] 04:39:16     INFO -  ...

...be output as:

[task 2018-11-13T04:39:16.872Z] 04:39:16    ERROR -  ...

Could you paste the applicable lines from a log and the log URL? :-)
Blocks: 778688
Component: Treeherder: Log Viewer → Applications: MozharnessCore
Product: Tree Management → Release Engineering
QA Contact: jlund
Interesting, just noticed the exact text differs from what I put in the subject, which was macOS clang (libc++ I guess). On the Linux builds (libstdc++?) it's "pure virtual method called".
The line in question (on Linux at least):

[task 2018-11-13T14:42:13.512Z] 14:42:13     INFO - GECKO(1057) | pure virtual method called

The regexes that need updating are here:
https://dxr.mozilla.org/mozilla-central/source/testing/mozharness/mozharness/base/errors.py
Thanks! It looks like all of the constants in that file are for dealing with different parts of the build system, not compiled binaries themselves. Is there any prior art for this?
I'm not very familiar with mozharness, I'd ask someone from release engineering.
Assignee: nobody → agaynor
Priority: -- → P1
Keywords: checkin-needed
Pushed by csabou@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/cd593d522d24
treat log messages about calling a pure virtual function in a destructor as errors; r=gbrown
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/cd593d522d24
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: