Closed Bug 1393037 Opened 8 years ago Closed 7 years ago

[traceback] ValueError on raw_crash.OOMAllocationSize conversion

Categories

(Socorro :: Processor, task, P3)

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: peterbe, Assigned: is2ei)

Details

(Whiteboard: [good first bug])

Attachments

(1 file)

53 bytes, text/x-github-pull-request
Details | Review
See https://sentry.prod.mozaws.net/operations/socorro-prod/issues/643312/ Sentry is failing to display the raw error but the failure is in converting '24178AvailablePhysicalMemory586522624AvailablePageFile5410816ContentSandboxLevel=1' to an int here https://github.com/mozilla-services/socorro/blob/6c2b5bb24b4609dcef87b349e209ba2d8c937be5/socorro/processor/signature_utilities.py#L517
Traceback: """ ValueError: invalid literal for int() with base 10: '24178AvailablePhysicalMemory586522624AvailablePageFile5410816ContentSandboxLevel=1' File "socorro/lib/transform_rules.py", line 147, in action return self._action(*args, **kwargs) File "socorro/processor/signature_utilities.py", line 517, in _action size = int(raw_crash['OOMAllocationSize']) """ There's only been one instance of this so far.
Summary: ValueError on raw_crash.OOMAllocationSize conversion → [traceback] ValueError on raw_crash.OOMAllocationSize conversion
Still only 3 events. I'm making this a P3.
Priority: -- → P3
This is a good first bug. To fix this, we need to fix the code in signature_utilities.py to be more defensive. If it gets a bogus value for raw_crash['OOMAllocationSize'], it should skip merrily past it instead of throwing an exception.
Whiteboard: [good first bug]
Hello I can take this bug
Videet: Do you have a local development environment set up? If not, read through: https://socorro.readthedocs.io/en/latest/gettingstarted.html to get one working. You'll need a local development environment working in order to work on Socorro changes.
Issei: Would you want to work on this one?
Flags: needinfo?(is2ei.horie)
(In reply to Will Kahn-Greene [:willkg] ET needinfo? me from comment #7) > Issei: Would you want to work on this one? Ok! I will work on this issue.
Flags: needinfo?(is2ei.horie)
Assignee: nobody → is2ei.horie
Status: NEW → ASSIGNED
Attached file GitHub PR
I created PR. Could you check it, please?
Flags: needinfo?(willkg)
Commits pushed to master at https://github.com/mozilla-services/socorro https://github.com/mozilla-services/socorro/commit/44f8a5fa437240a9d3149f236545d57c72c63d10 Bug 1393037 Catch ValueError on raw_crash.OOMAllocationSize conversion https://github.com/mozilla-services/socorro/commit/1b3ed0854e791df66b1007e9ca948f89a8453226 Merge pull request #4495 from is2ei/bug-1393037 Bug 1393037 Catch ValueError on raw_crash.OOMAllocationSize conversion
Issei: Those are in our Sentry instance and not publicly available. I can copy/paste data from Sentry error reports that is not sensitive like I did in this case and I can answer questions, but can't give access to others. Sorry!
Flags: needinfo?(willkg)
I just landed the fix for this, so I'm marking it FIXED. Thank you, Issei!
Status: ASSIGNED → RESOLVED
Closed: 7 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: