Closed Bug 1618669 Opened 4 years ago Closed 3 years ago

PID available in crashreport?

Categories

(Toolkit :: Crash Reporting, defect, P3)

defect

Tracking

()

RESOLVED FIXED
93 Branch
Tracking Status
firefox93 --- fixed

People

(Reporter: mjf, Assigned: gsvelto)

Details

Attachments

(1 file)

It is possible that I'm overlooking something, or don't know where to look, but I can't find the PID of the crashed process in the crash dump on try. Ex:
https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=285427933&repo=mozilla-central&lineNumber=39342

I can deduce from the stack trace that we're in a content process, but I'm having trouble figuring out which content process crashed since one is in the process of going away, and one is in the process of starting work.

The minidump contains the crashed process PID. If you download it and feed it to minidump_dump you can see it. In this case for example:

$ minidump_dump 9511d927-9b59-44b6-9614-3c94f55e6c96.dmp 2>/dev/null | grep process_id
  process_id                   = 11836

However I don't think we surface it in any other way. It would be a matter of modifying the minidump_stackwalker tool used in automation to dump it out.

(In reply to Gabriele Svelto [:gsvelto] from comment #1)

The minidump contains the crashed process PID. If you download it and feed it to minidump_dump you can see it. In this case for example:

$ minidump_dump 9511d927-9b59-44b6-9614-3c94f55e6c96.dmp 2>/dev/null | grep process_id
  process_id                   = 11836

However I don't think we surface it in any other way. It would be a matter of modifying the minidump_stackwalker tool used in automation to dump it out.

I have no experience w/ minidump_dump and which minidump_dump doesn't turn up anything. Where do I find it?

It does seem like having it printed out in automation would be a nice solution.

Flags: needinfo?(gsvelto)

Sorry - I found instructions here: https://chromium.googlesource.com/breakpad/breakpad/

Flags: needinfo?(gsvelto)

Yeah it's not super-simple, it would be best to have it in the test log directly.

The priority flag is not set for this bug.
:gsvelto, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(gsvelto)

Putting it in the right component and setting it to P3. Will, I'll work on this as soon as I'll have time since it requires changes to the stack walker to spit out this information when analyzing a dump.

Component: Crash Reporting → Processor
Flags: needinfo?(gsvelto)
Priority: -- → P3
Product: Toolkit → Socorro
Assignee: nobody → sphink
Status: NEW → ASSIGNED

Steve, do you want me to pick up the patch and finish it?

Flags: needinfo?(sphink)

(In reply to Gabriele Svelto [:gsvelto] from comment #8)

Steve, do you want me to pick up the patch and finish it?

Yes, please do!

Flags: needinfo?(sphink)

Cool, stealing this bug :-)

Assignee: sphink → gsvelto

I'm not sure I understand this bug. It's a bug in the socorro processor, but the attached patch is against the crash reporter. Is the PID not available in the minidump for minidump-stackwalk to extract or is there other work being done here?

If it's work that needs to be done in minidump-stackwalk, we should probably have an issue in either of those repos:

It's about minidump-stackwalk but not the version we use in Socorro, it's about the version in m-c. I miscategorized this one, moving it back to crash reporting.

Component: Processor → Crash Reporting
Product: Socorro → Toolkit
Attachment #9230393 - Attachment description: Bug 1618669 - Display tid of crashing thread in minidump_stackwalk output. → Bug 1618669 - Display tid of crashing thread in minidump_stackwalk output. r=sfink
Pushed by gsvelto@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/a4b960c51c4b
Display tid of crashing thread in minidump_stackwalk output. r=sfink
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 93 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: