Open
Bug 824760
Opened 13 years ago
Updated 3 years ago
generate core dumps when we have a crash on android
Categories
(Testing :: General, defect, P3)
Tracking
(Not tracked)
NEW
People
(Reporter: jmaher, Unassigned)
References
Details
(Keywords: sheriffing-untriaged)
:blassey knows tricks with gdb to generate a core dump that we can use to help debug these random crashes.
Comment 1•13 years ago
|
||
There appears to be some black magic associated with this on android [https://groups.google.com/forum/?fromgroups=#!topic/android-platform/nifVOvknFsU]. Perhaps we can work around it given that we're building our own ROMs for the pandas. CC'ing jchen and julian seward to see if they have any thoughts.
Updated•13 years ago
|
Comment 2•13 years ago
|
||
Adding ted as well. Ted, any thoughts on modifying the panda board builds to generate core dumps.
Comment 3•13 years ago
|
||
I don't know anything about core dumps on Android, sorry (and very little about them elsewhere).
Comment 4•13 years ago
|
||
I got regular Android apps to generate core dumps, which seems to require several stars to align,
The target directory of /proc/sys/kernel/core_pattern should have proper permissions
/proc/sys/fs/suid_dumpable needs to be set to 1 or 2
The process core rlimit needs to be set (I did this using a utility wrapping around the prlimit system call; prlimit requires ICS or above)
All of these require root. Then I was able to generate the core dumps using kill.
Interestingly this works for Android apps including Firefox Release and Nightly, but doesn't work for my own build, and I'm not sure why. It may be related to different Crash Reporter configurations.
Updated•13 years ago
|
Keywords: sheriffing-P1
Comment 5•13 years ago
|
||
Is this a sheriffing-P1 simply because of the number of crashes in automation that haven't been fixed?
Comment 6•13 years ago
|
||
(In reply to Ted Mielczarek [:ted.mielczarek] from comment #5)
> Is this a sheriffing-P1 simply because of the number of crashes in
> automation that haven't been fixed?
Yeah
Comment 7•13 years ago
|
||
Same for bug 803158 (though how it differs from this I don't know, since I know very little about debugging on Android).
Updated•13 years ago
|
Keywords: sheriffing-P1 → sheriffing-untriaged
Comment 8•12 years ago
|
||
(In reply to Jim Chen [:jchen :nchen] from comment #4)
> Interestingly this works for Android apps including Firefox Release and
> Nightly, but doesn't work for my own build, and I'm not sure why. It may be
> related to different Crash Reporter configurations.
The reason for this can be found in the dalvik source: it explicitely disables core dumps with rlimit for debuggable builds, which local builds are, and tbpl builds aren't.
![]() |
||
Updated•7 years ago
|
Priority: -- → P3
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•