Closed Bug 931032 Opened 11 years ago Closed 11 years ago

talos minidump code for remote references variables before they are defined

Categories

(Testing :: Talos, defect)

ARM
Android
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jmaher, Assigned: emorley)

References

Details

Attachments

(1 file, 2 obsolete files)

found while testing locally.
Assignee: nobody → jmaher
Status: NEW → ASSIGNED
Attachment #822359 - Flags: review?(emorley)
Blocks: 923770
Comment on attachment 822359 [details] [diff] [review]
fix removal of directories to only do so if we find a crash (1.0)

In the java exception case, we still want to clean up the remote minidumps.

We should move the 'remoteminidumpdir' definition to outside of the 'if not found:', keep the removal of that directory outside of the conditional, but move the removal of 'minidumpdir' directory to inside the conditional.
Attachment #822359 - Flags: review?(emorley) → review-
Thank you for spotting this btw :-)
(Introduced by bug 910320)
Blocks: 910320
valid point, round two
Attachment #822359 - Attachment is obsolete: true
Attachment #822366 - Flags: review?(emorley)
Comment on attachment 822366 [details] [diff] [review]
move definitions of crash dirs outside of if found scope (2.0)

Review of attachment 822366 [details] [diff] [review]:
-----------------------------------------------------------------

We don't need to create the local minidump directory unless we're going to copy the minidumps over.

What I meant by comment 2 was to split the two parts (local vs remote directories) up and deal with one inside the conditional, and one outside :-)
Attachment #822366 - Flags: review?(emorley) → review-
so if we resolve the java exception there will be no remote or local minidump.  My first patch handled this as we would only create/remove the minidump directory if one was found.
When there is a java exception, there is a minidump in the log, which is why we get the unhelpful stack traces.

I'll attach a patch :-)
(This was my mess anyway :-))
Look ok? :-)
Attachment #822394 - Flags: review?(jmaher)
Assignee: jmaher → emorley
Attachment #822366 - Attachment is obsolete: true
To be extra clear:

* If there is a java exception, there are still remote minidumps, which we presumably want to clean up.
* However, we only need to copy the remote minidumps locally if there wasn't a java exception found in the logcat.
* So cleanup of the local directory only needs to happen in the != java exception case.
Side note:
Strange how we clear up the local directory in the Android case, but not desktop. Is this intentional?
Comment on attachment 822394 [details] [diff] [review]
Dont reference variables before they are defined

Review of attachment 822394 [details] [diff] [review]:
-----------------------------------------------------------------

ok, I totally missed the obvious.
Attachment #822394 - Flags: review?(jmaher) → review+
we really should clear up the local directory in the desktop case, that isn't intentional
This code was fresh in my mind having done bug 910320 :-)

https://hg.mozilla.org/build/talos/rev/608228e6477f

(In reply to Joel Maher (:jmaher) from comment #14)
> we really should clear up the local directory in the desktop case, that
> isn't intentional

Filed bug 931071 :-)
Status: ASSIGNED → RESOLVED
Closed: 11 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: