Open
Bug 1444096
Opened 7 years ago
Updated 2 years ago
Spurious segfault when debugging Fennec/GeckoView
Categories
(GeckoView :: General, enhancement, P3)
GeckoView
General
Tracking
(Not tracked)
NEW
People
(Reporter: snorp, Unassigned)
Details
When you try to debug a GeckoView or Fennec app with lldb, you always get an initial spurious SEGV. This is because SEGVHandler in mozglue (which ElfLoader inherits from) intentionally triggers one to test if the signal handling is working as expected. This is apparently only needed for on-demand compression, which we aren't using anymore. We should either:
1) See if we still run on devices that have this problem. We've raised the minimum SDK version a few times since the on-demand decompression was written, so things may be better now.
2) Not install the SEGV handler at all unless on-demand decompression is required.
| Reporter | ||
Comment 1•7 years ago
|
||
glandium, do you have any opinion on the two possible solutions above, are have other options?
Flags: needinfo?(mh+mozilla)
Updated•7 years ago
|
Priority: -- → P3
Comment 2•7 years ago
|
||
Bug 1376704 removed the code handling on-demand decompression, so it's fine to skip the part that triggers a voluntary segfault in order to find out if the handler provides what's needed for on-demand decompression. I'd still leave the segfault handler, though, because of "system" libraries calling signal(), which break the asmjs handler and/or the crash reporter. (see the comment around sigaction/sys_sigaction)
Flags: needinfo?(mh+mozilla)
Updated•6 years ago
|
Product: Firefox for Android → GeckoView
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•