Closed Bug 761907 Opened 12 years ago Closed 12 years ago

Ensure ARM crash dump generation works in gonk

Categories

(Toolkit :: Crash Reporting, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla17

People

(Reporter: cjones, Assigned: ted)

References

Details

Attachments

(1 file)

The gonks we care about are just ARM/bionic, so the existing breakpad code should work out of the box.  But we need to verify that.
I ran b2g on my SGS2 and was able to `kill -ABRT` the b2g process and get a minidump out. I need to track down one issue though: the module debug identifiers are coming out all zeroed out.
Okay, I figured out the root cause there, I have a couple of Breakpad patches.

The first is:
http://codereview.appspot.com/6349099/
With those patches, looks good:
31  b2g!main [nsBrowserApp.cpp : 153 + 0xf]
     r4 = 0x404f3641    r5 = 0x00000000    r6 = 0x00000001    r7 = 0xbebb7bf4
     r8 = 0x00000000    r9 = 0x00000000   r10 = 0x00000000    fp = 0x00000000
     sp = 0xbebb5b18    pc = 0x0000896b
    Found by: call frame info
There was a weird bug in Breakpad's use of linux-syscall-support. We were using sys_stat (not sys_stat64) because of some NDK #defines, but that syscall apparently doesn't work in some situations (ICS? new kernel? not sure exactly). These patches have upstream review, so I'm just going to land them when I get a chance.
https://hg.mozilla.org/mozilla-central/rev/a4a0f1412b9d
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla17
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: