Closed
Bug 1174725
Opened 9 years ago
Closed 9 years ago
crash in java.lang.UnsatisfiedLinkError: putenv at org.mozilla.gecko.mozglue.GeckoLoader.putenv(Native Method)
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(firefox41 fixed)
RESOLVED
FIXED
Firefox 41
Tracking | Status | |
---|---|---|
firefox41 | --- | fixed |
People
(Reporter: aaronmt, Assigned: jchen)
Details
(Keywords: crash)
Crash Data
Attachments
(1 file)
4.83 KB,
patch
|
snorp
:
review+
|
Details | Diff | Splinter Review |
This bug was filed from the Socorro interface and is report bp-0d9b6a30-0309-477a-ae4d-f01b22150614. ============================================================= java.lang.UnsatisfiedLinkError: putenv at org.mozilla.gecko.mozglue.GeckoLoader.putenv(Native Method) at org.mozilla.gecko.mozglue.GeckoLoader.setupPluginEnvironment(GeckoLoader.java:74) at org.mozilla.gecko.mozglue.GeckoLoader.setupGeckoEnvironment(GeckoLoader.java:142) at org.mozilla.gecko.GeckoThread.initGeckoEnvironment(GeckoThread.java:113) at org.mozilla.gecko.GeckoThread.run(GeckoThread.java:169)
Updated•9 years ago
|
Flags: needinfo?(nchen)
Assignee | ||
Comment 1•9 years ago
|
||
Looks like a race condition. Should be a simple fix.
Flags: needinfo?(nchen)
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → nchen
Status: NEW → ASSIGNED
Assignee | ||
Comment 2•9 years ago
|
||
There's a synchronization bug in GeckoLoader: we toggle the already-loaded flag before we actually do the loading outside the lock. So another thread could see the flag and think we already loaded the library, but we're still in the process of loading it. This patch moves library loading to inside the lock, so things are consistent. This has no impact on performance except other threads will now wait for loading to finish, which is the correct behavior. I also got rid of the "lock object" in favor of using synchronized methods.
Attachment #8622711 -
Flags: review?(snorp)
Comment 3•9 years ago
|
||
FWIW, a while ago I found a hackish way to do putenv without mozglue, it might be worth switching, since it would allow setting environment earlier, etc. http://stackoverflow.com/questions/318239/how-do-i-set-environment-variables-from-java/22315463#22315463
Comment on attachment 8622711 [details] [diff] [review] Fix GeckoLoader synchronization (v1) Review of attachment 8622711 [details] [diff] [review]: ----------------------------------------------------------------- yup. oops.
Attachment #8622711 -
Flags: review?(snorp) → review+
Comment 6•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/8c88a4ed79db
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox41:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 41
Updated•3 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
•