Closed
Bug 1313451
Opened 9 years ago
Closed 9 years ago
Intermittent testGeckoRequest | application crashed [@ Zip::GetStream]
Categories
(Firefox for Android Graveyard :: General, defect)
Firefox for Android Graveyard
General
Tracking
(firefox51 fixed, firefox52 fixed)
RESOLVED
FIXED
Firefox 52
People
(Reporter: intermittent-bug-filer, Assigned: esawin)
Details
(Keywords: crash, intermittent-failure)
Attachments
(1 file, 1 obsolete file)
|
1.44 KB,
patch
|
esawin
:
review+
gchang
:
approval-mozilla-aurora-
gchang
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
Filed by: rvandermeulen [at] mozilla.com
https://treeherder.mozilla.org/logviewer.html#?job_id=3989587&repo=mozilla-aurora
https://archive.mozilla.org/pub/mobile/tinderbox-builds/mozilla-aurora-android-api-15/1477580794/mozilla-aurora_ubuntu64_vm_armv7_mobile_test-robocop-4-bm51-tests1-linux64-build44.txt.gz
Comment 1•9 years ago
|
||
Eugen, is this something you'd have cycles to look at?
| Assignee | ||
Comment 2•9 years ago
|
||
This is interesting and it seems to have a useful stack.
Will take a look.
Assignee: nobody → esawin
Flags: needinfo?(esawin)
| Assignee | ||
Comment 3•9 years ago
|
||
This might be related to bug 849589, bug 881564 and others which all seem to hit the "impossible" case which produces the following log:
11-03 15:22:45.581 28221 28238 E GeckoLinker: Not a seekable zstream
11-03 15:22:45.581 28221 28238 E GeckoLinker: Couldn't initialize SeekableZStream for libxul.so
11-03 15:22:45.581 28221 28238 E GeckoLinker: Not a seekable zstream
11-03 15:22:45.581 28221 28238 E GeckoLibLoad: Couldn't get a handle to libxul!
11-03 15:22:45.581 28221 28238 E GeckoLibLoad: Throw
11-03 15:22:45.583 28221 28221 D GeckoNetworkManager: New network state: UP, CELLULAR, CELL_2G
11-03 15:22:45.583 28221 28236 E GeckoJarReader: !!! BUG 849589 !!! origUrl=jar:jar:file:/data/app/org.mozilla.fennec-1/base.apk!/assets/omni.ja!/chrome/de-DE/locale/de-DE/browser/searchplugins/list.txt
11-03 15:22:45.583 28221 28236 E GeckoJarReader: java.lang.IllegalArgumentException: Got class java.util.zip.InflaterInputStream, but expected ByteBufferInputStream!
| Assignee | ||
Comment 4•9 years ago
|
||
Since we can rule out a build issue (we would see this error more consistently in this case) something about the way we iterate through a zip directory must be broken.
For one, Zip::GetStream isn't thread safe although zips are "cached" and shared across threads now.
With this patch, we make Zip thread-safe by locking all access to nextFile, nextDir and entries members.
Attachment #8809486 -
Flags: review?(mh+mozilla)
Comment 5•9 years ago
|
||
Comment on attachment 8809486 [details] [diff] [review]
0001-Bug-1313451-1.0-Make-Zip-thread-safe.-r-glandium.patch
Review of attachment 8809486 [details] [diff] [review]:
-----------------------------------------------------------------
::: mozglue/linker/Zip.cpp
@@ +65,4 @@
> , nextDir(nullptr)
> , entries(nullptr)
> {
> + pthread_mutex_init(&mutex, 0);
Please use nullptr.
Attachment #8809486 -
Flags: review?(mh+mozilla) → review+
| Assignee | ||
Comment 6•9 years ago
|
||
Addressed comment.
Attachment #8809486 -
Attachment is obsolete: true
Attachment #8809781 -
Flags: review+
Pushed by esawin@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/bfd5335fa635
[1.1] Make Zip thread-safe. r=glandium
Comment 8•9 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox52:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 52
Comment 9•9 years ago
|
||
Please request Beta approval on this when you get a chance.
Flags: needinfo?(esawin)
| Assignee | ||
Comment 10•9 years ago
|
||
Comment on attachment 8809781 [details] [diff] [review]
0001-Bug-1313451-1.1-Make-Zip-thread-safe.-r-glandium.patch
Approval Request Comment
[Feature/regressing bug #]: Native linker/zip reader.
[User impact if declined]: Crash on startup.
[Describe test coverage new/current, TreeHerder]: Nightly.
[Risks and why]: Minimal, it just adds mutex guards around some variable access.
[String/UUID change made/needed]: None.
Flags: needinfo?(esawin)
Attachment #8809781 -
Flags: approval-mozilla-beta?
Attachment #8809781 -
Flags: approval-mozilla-aurora?
Comment 11•9 years ago
|
||
Comment on attachment 8809781 [details] [diff] [review]
0001-Bug-1313451-1.1-Make-Zip-thread-safe.-r-glandium.patch
Fix an intermittent-failure. Beta51+ and Aurora52+. Should be in 51 beta 2.
Attachment #8809781 -
Flags: approval-mozilla-beta?
Attachment #8809781 -
Flags: approval-mozilla-beta+
Attachment #8809781 -
Flags: approval-mozilla-aurora?
Attachment #8809781 -
Flags: approval-mozilla-aurora+
Comment 12•9 years ago
|
||
Comment on attachment 8809781 [details] [diff] [review]
0001-Bug-1313451-1.1-Make-Zip-thread-safe.-r-glandium.patch
It's already fixed in 52. No need to uplift to Aurora52.
Attachment #8809781 -
Flags: approval-mozilla-aurora+ → approval-mozilla-aurora-
Comment 13•9 years ago
|
||
| bugherder uplift | ||
Updated•5 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•