Closed
Bug 1032936
Opened 10 years ago
Closed 3 years ago
Invoking 'jsjni_FindClass' from a chrome worker using ctypes crashes Fennec
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(Not tracked)
RESOLVED
INCOMPLETE
People
(Reporter: mhaigh, Unassigned)
References
Details
Attachments
(1 file)
The following call is causing Fennec to die when called from a chrome worker: let findClass = ctypes.open("libxul.so").declare("jsjni_FindClass", ctypes.default_abi, ctypes.StructType("_jobject").ptr, ctypes.char.ptr); findClass("org/mozilla/gecko/GeckoApp"); When called from a chrome script, which isn't a worker, the call works as expected with no crash. Attached is a minimal test case which demonstrates that calling jsjni_FindClass from a non chrome worker works as expected within the browser.js file, however causes Fennec to die when called from the TestCaseWorker.js file. Here's the crash log from that attached patch: … 4755 GeckoDump I BEFORE TEST CASE WORKER … 4755 libc F Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread 5130 (DOM Worker) … 5235 dalvikvm D Late-enabling CheckJNI 5235 dalvikvm D Trying to load lib /data/app-lib/org.mozilla.fennec_martyn-1/libmozglue.so 0x41ec37f8 5235 dalvikvm D Added shared lib /data/app-lib/org.mozilla.fennec_martyn-1/libmozglue.so 0x41ec37f8 5235 dalvikvm D No JNI_OnLoad found in /data/app-lib/org.mozilla.fennec_martyn-1/libmozglue.so 0x41ec37f8, skipping init … I'm unsure if the last four lines are relevant but they look a bit suspicious.
Comment 1•3 years ago
|
||
We have completed our launch of our new Firefox on Android. The development of the new versions use GitHub for issue tracking. If the bug report still reproduces in a current version of [Firefox on Android nightly](https://play.google.com/store/apps/details?id=org.mozilla.fenix) an issue can be reported at the [Fenix GitHub project](https://github.com/mozilla-mobile/fenix/). If you want to discuss your report please use [Mozilla's chat](https://wiki.mozilla.org/Matrix#Connect_to_Matrix) server https://chat.mozilla.org and join the [#fenix](https://chat.mozilla.org/#/room/#fenix:mozilla.org) channel.
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → INCOMPLETE
Assignee | ||
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
•