Closed Bug 630230 Opened 14 years ago Closed 14 years ago

Add items including mozalloc_handle_oom/nsTArray to prefixSignatureRegEx

Categories

(Socorro :: General, task)

task
Not set
critical

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: benjamin, Assigned: lars)

References

Details

Attachments

(1 file)

Please add the following items to prefixSignatureRegEx: mozalloc_handle_oom nsTArray_base<.* nsTArray<.* KiFastSystemCallRet (Nt|Zw)?WaitForSingleObject(Ex)? (Nt|Zw)?WaitForMultipleObjects(Ex)? NtUserWaitMessage NtUserMessageCall These are needed to make process classifying and resolving the important bits of bug 627727.
Here's the patch. I don't have a testing environment, so I'd like somebody else to take this from here, please!
Attachment #508436 - Flags: review?(ted.mielczarek)
Attachment #508436 - Flags: review?(lars)
Lars, can you review/commit please, then reassign to jabba to get this into prod.
Assignee: nobody → lars
Comment on attachment 508436 [details] [diff] [review] Add these to the default config, which may be the production config, and make the config easier to manage using a list Looks fine to me (and more readable to boot).
Attachment #508436 - Flags: review?(ted.mielczarek) → review+
Could we also add 'RtlEnterCriticalSection' to this list? From what I understand of this bug, the list being modified here includes api calls we skip over for the top crash signature. If that's the case, adding RtlEnterCriticalSection would help with a crash stack like this: https://crash-stats.mozilla.com/report/index/ea82dd4c-934a-4c54-a596-aa3962110201
Also, ignoring 'WaitForSingleObjectExImplementation' would be good. https://crash-stats.mozilla.com/report/index/a54c84f9-25bf-4ed4-bc37-ff4212110201
:jimm - I'm concerned that your requests are for the wrong configuration parameter. You speak of ignoring frame signatures. The 'prefixSignatureRegEx' being modified in this bug is for frame signatures that are candidates for inclusion into compound signatures. Is that what you intended? See http://code.google.com/p/socorro/wiki/SignatureGeneration for more information about how the various regular expressions are used to create signatures.
Let's land this as-is and deal with jimm's requests in a followup.
(In reply to comment #6) > :jimm - I'm concerned that your requests are for the wrong configuration > parameter. You speak of ignoring frame signatures. The 'prefixSignatureRegEx' > being modified in this bug is for frame signatures that are candidates for > inclusion into compound signatures. Is that what you intended? > > See http://code.google.com/p/socorro/wiki/SignatureGeneration for more > information about how the various regular expressions are used to create > signatures. Sounds like what I'm looking for here is 'irrelevantSignatureRegEx'. Basically, as we walk down the stack, I want to ignore certain frames until we get to something useful, so that these crashes are broken out on crash-stats. So for example: 0 ntdll.dll KiFastSystemCallRet 1 ntdll.dll NtWaitForSingleObject 2 KERNELBASE.dll WaitForSingleObjectEx 3 kernel32.dll WaitForSingleObjectExImplementation 4 kernel32.dll WaitForSingleObject 5 wdmaud.drv CJob::Wait I'd like crash-stats to walk down the stack to 'CJob::Wait', and from there generate a signature. I'm a little confused on prefixSignatureRegEx, this sounds like a trigger that starts recording compound signatures? Since I have no idea what 'CJob::Wait' will be in every case, I can't add that to a list.
It's for signatures that we want appended, like 'free', so you can tell that the caller is crashing in 'free', but still assign blame to the caller.
:jimm - It sounds like you want all of 'KiFastSystemCallRet', 'NtWaitForSingleObject', 'WaitForSingleObjectEx', 'WaitForSingleObjectExImplementation', and 'WaitForSingleObject' added to the irrelevantSignatureRegEx. That's the only way that you'll get Socorro to start with frame 5 for signature generation. I think you'll have to get "buy in" from the rest of the developers as adding 'KiFastSystemCallRet' to irrelevantSignatureRegEx could have a major impact. From what I understand, 'KiFastSystemCallRet' is the top of the stack for hang detector. Adding it to irrelevantSignatureRegEx would eliminate that signature from all future crashes. Would that cause confusion? If you wish to proceed, please file a separate bug. That way we can avoiding hiding important discussion under the wrong topic name.
I don't think this is a problem. 'KiFastSystemCallRet' is an extremely generic thing that just means "you're waiting for the Windows kernel to return from a system call". The actual calls below that are always what's of interest.
This change is now live in production. You should see the change in signature processing for all crashes processed after 2/2/11 17:38
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Comment on attachment 508436 [details] [diff] [review] Add these to the default config, which may be the production config, and make the config easier to manage using a list just cleaning up my review queue - I recognize that this is now moot.
Attachment #508436 - Flags: review?(lars) → review+
Component: Socorro → General
Product: Webtools → Socorro
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: