This is great, thank you!

On 2023-07-24 3:20 a.m., Gabriele Svelto wrote:
[cross-posting to stability]

  Hiya all,
a couple of weeks ago I landed bug 1840651 [1] which lets you know what was the PID and type of processes that crashed while running tests. This works both locally and in automation (with slight differences depending on the type of test you're running).

So whenever you'd encounter this output while running a test:

PROCESS-CRASH | application crashed [@ None + None] | dom/media/autoplay/test/browser/browser.ini INFO - Crash dump filename: /var/folders/yn/mn96mnjd2rvfmzjwbmygq740000014/T/tmpurvm3rsy.mozrunner/minidumps/13E0A8D2-7C5B-48CE-BB2E-2AF61A3AFFF0.dmp
INFO - Operating system: Mac OS X
...

You'll now get something like this:

PROCESS-CRASH | application crashed [@ None + None] | dom/media/autoplay/test/browser/browser.ini INFO - Crash dump filename: /var/folders/yn/mn96mnjd2rvfmzjwbmygq740000014/T/tmpurvm3rsy.mozrunner/minidumps/13E0A8D2-7C5B-48CE-BB2E-2AF61A3AFFF0.dmp
INFO - Process type: utility
INFO - Process pid: 1854
INFO - Operating system: Mac OS X
...

Here's a real-world example from treeherder:

https://treeherder.mozilla.org/logviewer?job_id=423528959&repo=mozilla-central&lineNumber=5471-5472

The process type is printed out correctly on all platforms but for the time being the PID is only printed out on macOS and Windows. Linux needs some changes to the stackwalker which I haven't done yet (but will do soon).

  Gabriele

[1] [mozcrash] Print the process ID and type for every minidump we encounter
     https://bugzilla.mozilla.org/show_bug.cgi?id=1840651


--
You received this message because you are subscribed to the Google Groups 
"[email protected]" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/mozilla.org/d/msgid/dev-platform/4d392af5-f895-3485-a9a2-02358256683c%40mozilla.com.

Attachment: OpenPGP_0x58722F55DDDB00CE.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to