Closed Bug 1634372 Opened 6 years ago Closed 6 years ago

fix make-stacks to handle unknown frames

Categories

(Tecken :: Symbolication, enhancement, P2)

enhancement

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: willkg, Assigned: willkg)

Details

Attachments

(1 external file)

When Socorro's minidump-stackwalk walks the stack in a minidump, there are occasions where it doesn't have enough information to know the frame and instead guesses. In these cases, you end up with a stack that has frames where the module and module_offset aren't known.

Currently the symbolicate API requires that frames have two integers and it returns an HTTP 400 when they aren't with the error:

{"error":"Frame must be two integers"}

It'd be better if it handled frames of [null, null] and returned what it could figure out.

There's no specification for how symbolicate API should work, so I think fixing this is ok.

When I wrote the system tests, I wrote a make-stacks.py script that pulls stack information from crash reports. When running it, one has to be careful to get a crash report where all the frames have module and module_offset information. That's time consuming. It'd be easier if the symbolicate API handled these frames better.

They're working on adding signatures to crash pings. I venture to assume this will be a problem there, too, so I figure I'll fix it before it becomes an issue. I did a quick skim of the code and I think this is a straight-forward fix for v4 and v5 of the API.

Assignee: nobody → willkg
Status: NEW → ASSIGNED
Priority: -- → P2
Summary: fix handling of junk stack frames → fix handling of junk stack frames in symbolicate api

Oops--I messed up. There's handling for UNKNOWN_MODULE in the symbolicate view, but the indicator is to pass in a -1. I'll rework the make-stacks.py script accordingly.

Summary: fix handling of junk stack frames in symbolicate api → fix make-stacks to handle unknown frames

This is in the systemtests only, so marking this as FIXED.

Status: ASSIGNED → 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: