Hi Nick,
Sorry for the late response, I've been tied up with other projects.
On Mon, Sep 23, 2013 at 8:40 AM, Nick Alexander <[email protected]>wrote:
> On 13-09-23 7:56 AM, Caleb wrote:
>
>> On Sun, Sep 22, 2013 at 9:12 PM, Nick Alexander <[email protected]
>> <mailto:[email protected]**>> wrote:
>>
>> I think it is best to do this in two parts. Keep the packaging step
>> (the @BINPATH@/@DLL_PREFIX@gssapi@**DLL_SUFFIX@ line in
>> package-manifest.in <http://package-manifest.in>), but add a copying
>>
>> step to
>> http://mxr.mozilla.org/**mozilla-central/source/mobile/**
>> android/app/Makefile.in#46<http://mxr.mozilla.org/mozilla-central/source/mobile/android/app/Makefile.in#46>
>> such as:
>>
>> libs::
>> $(NSINSTALL) /path/to/libgssapi.so $(DIST)/bin
>>
>>
>> I added that line, and now packaging succeeds--hooray! I'm still getting
>> a "Fail to load gssapi library" message during page load, so there's
>> more debugging to be done, but at least I've got a place to start.
>>
>
> Huzzah! Progress. Can you verify that libgssapi.so is in the APK (which
> is just a zip file), and that it's in the correct location?
>
Yep, the file is definitely in the APK. I double-checked for its existence
on the device as well:
root@android:/data/data/org.mozilla.fennec_caleb/lib # ls -al
-rwxr-xr-x system system 215824 2013-10-22 22:42 libgssapi.so
-rwxr-xr-x system system 284672 2013-10-22 22:42 libmozglue.so
-rwxr-xr-x system system 5332 2013-10-22 22:42
libplugin-container.so
>
> To help with debugging the linker, set the environment variable (on you
> device) MOZ_DEBUG_LINKER=1, as per:
>
> http://mxr.mozilla.org/**mozilla-central/source/**
> mozglue/linker/Logging.h#55<http://mxr.mozilla.org/mozilla-central/source/mozglue/linker/Logging.h#55>
>
> There are some tricky aspects to library loading in our configuration; let
> me know how you get on.
I've attached a log file with the messages that are logged when I attempt a
connection to my testbed environment. I'm pretty sure the "Caught
segmentation fault" messages are unrelated, because a bunch of the same
messages are logged before I attempt to establish a connection. I left them
intact in case they have some meaning that I'm missing.
My interpretation of the output is that ElfLoader class can't locate the
libgssapi.so file. Looking at the source (
http://mxr.mozilla.org/mozilla-central/source/mozglue/linker/ElfLoader.cpp#296),
I'd guess /data/data/org.mozilla.fennec_caleb/lib isn't a valid search
path. I haven't found a way to manually modify the search path, though, so
I can't test my hypothesis. Any ideas?
Also, in my experience, integrating the latest release of a library is a
> much smoother process if the recipe for building the library is included
> in the main build routine. This is something of a security concern as
> well, because a smoother integration process means security-related
> fixes are more likely to get integrated promptly.
>
Roger this as well.
>
> We can take this up with the broader community in the future.
>
Sure thing--my current priority is getting the basic functionality working.
:)
09-28 13:21:50.056: I/PRLog(512): 704927368[4a840200]: service = 192.168.0.30
09-28 13:21:50.066: I/PRLog(512): 704927368[4a840200]: using negotiate-gss
09-28 13:21:50.066: I/PRLog(512): 704927368[4a840200]: entering
nsAuthGSSAPI::nsAuthGSSAPI()
09-28 13:21:50.066: E/GeckoLinker(512): dlopen("libgssapi_krb5.so.2", 0x0) = 0x0
09-28 13:21:50.066: E/GeckoLinker(512): ElfLoader::Load("libgssapi_krb5.so.2",
0x0, 0x0 [""]) = 0x0
09-28 13:21:50.066: E/GeckoLinker(512): dlopen("libgssapi.so.4", 0x0) = 0x0
09-28 13:21:50.066: E/GeckoLinker(512): ElfLoader::Load("libgssapi.so.4", 0x0,
0x0 [""]) = 0x0
09-28 13:21:50.066: E/GeckoLinker(512): dlopen("libgssapi.so.1", 0x0) = 0x0
09-28 13:21:50.066: E/GeckoLinker(512): ElfLoader::Load("libgssapi.so.1", 0x0,
0x0 [""]) = 0x0
09-28 13:21:50.066: E/GeckoLinker(512): dlopen("libgssapi.so", 0x0) = 0x0
09-28 13:21:50.066: E/GeckoLinker(512): ElfLoader::Load("libgssapi.so", 0x0,
0x0 [""]) = 0x0
09-28 13:21:50.086: E/GeckoLinker(512): dlopen("libgss.so", 0x0) = 0x0
09-28 13:21:50.086: E/GeckoLinker(512): ElfLoader::Load("libgss.so", 0x0, 0x0
[""]) = 0x0
09-28 13:21:50.086: E/GeckoLinker(512): dlopen("libgssapi_krb5.so", 0x0) = 0x0
09-28 13:21:50.086: E/GeckoLinker(512): ElfLoader::Load("libgssapi_krb5.so",
0x0, 0x0 [""]) = 0x0
09-28 13:21:50.086: E/GeckoLinker(512): dlopen("libgssapi.so", 0x0) = 0x0
09-28 13:21:50.086: E/GeckoLinker(512): ElfLoader::Load("libgssapi.so", 0x0,
0x0 [""]) = 0x0
09-28 13:21:50.086: I/PRLog(512): 704927368[4a840200]: Fail to load gssapi
library
09-28 13:21:50.086: I/PRLog(512): 704927368[4a840200]: entering
nsAuthGSSAPI::Init()
09-28 13:21:50.126: I/GeckoToolbar(512): zerdatime 1347007 - Throbber start
09-28 13:21:50.196: E/GeckoLinker(512): Caught segmentation fault @0x4f0a6430
09-28 13:21:50.196: E/GeckoLinker(512): Within the address space of a CustomElf
09-28 13:21:50.206: E/GeckoLinker(512): ensure @0x4f0a6430
09-28 13:21:50.206: E/GeckoLinker(512): DecompressChunk #476 @0x4d6c3000
(16384/ 16384)
09-28 13:21:50.236: E/GeckoLinker(512): cacheflush(0x4d6c3000, 0x4d6c7000)
09-28 13:21:50.236: E/GeckoLinker(512): mprotect @0x4f0a5000, 0x4000, 0x5
09-28 13:21:50.536: E/GeckoLinker(512): Caught segmentation fault @0x4ef8edb6
09-28 13:21:50.536: E/GeckoLinker(512): Within the address space of a CustomElf
09-28 13:21:50.545: E/GeckoLinker(512): ensure @0x4ef8edb6
09-28 13:21:50.545: E/GeckoLinker(512): DecompressChunk #406 @0x4d5ab000
(16384/ 16384)
09-28 13:21:50.545: E/GeckoLinker(512): cacheflush(0x4d5ab000, 0x4d5af000)
09-28 13:21:50.545: E/GeckoLinker(512): mprotect @0x4ef8d000, 0x4000, 0x5
09-28 13:21:50.675: E/GeckoLinker(512): Caught segmentation fault @0x4f6fc24c
09-28 13:21:50.675: E/GeckoLinker(512): Within the address space of a CustomElf
09-28 13:21:50.675: E/GeckoLinker(512): ensure @0x4f6fc24c
09-28 13:21:50.675: E/GeckoLinker(512): DecompressChunk #881 @0x4dd17000
(16384/ 16384)
09-28 13:21:50.675: E/GeckoLinker(512): cacheflush(0x4dd17000, 0x4dd1b000)
09-28 13:21:50.675: E/GeckoLinker(512): mprotect @0x4f6f9000, 0x4000, 0x5
09-28 13:21:50.675: E/GeckoLinker(512): Caught segmentation fault @0x4f6fd218
09-28 13:21:50.675: E/GeckoLinker(512): Within the address space of a CustomElf
09-28 13:21:50.675: E/GeckoLinker(512): ensure @0x4f6fd218
09-28 13:21:50.675: E/GeckoLinker(512): DecompressChunk #882 @0x4dd1b000
(16384/ 16384)
09-28 13:21:50.686: E/GeckoLinker(512): cacheflush(0x4dd1b000, 0x4dd1f000)
09-28 13:21:50.686: E/GeckoLinker(512): mprotect @0x4f6fd000, 0x4000, 0x5
09-28 13:21:50.686: E/GeckoLinker(512): Caught segmentation fault @0x4f70b3e2
09-28 13:21:50.686: E/GeckoLinker(512): Within the address space of a CustomElf
09-28 13:21:50.686: E/GeckoLinker(512): ensure @0x4f70b3e2
09-28 13:21:50.686: E/GeckoLinker(512): DecompressChunk #885 @0x4dd27000
(16384/ 16384)
09-28 13:21:50.686: E/GeckoLinker(512): cacheflush(0x4dd27000, 0x4dd2b000)
09-28 13:21:50.686: E/GeckoLinker(512): mprotect @0x4f709000, 0x4000, 0x5
09-28 13:21:50.695: E/GeckoLinker(512): Caught segmentation fault @0x4f704bf4
09-28 13:21:50.695: E/GeckoLinker(512): Within the address space of a CustomElf
09-28 13:21:50.695: E/GeckoLinker(512): ensure @0x4f704bf4
09-28 13:21:50.695: E/GeckoLinker(512): DecompressChunk #883 @0x4dd1f000
(16384/ 16384)
09-28 13:21:50.695: E/GeckoLinker(512): cacheflush(0x4dd1f000, 0x4dd23000)
09-28 13:21:50.695: E/GeckoLinker(512): mprotect @0x4f701000, 0x4000, 0x5
09-28 13:21:50.695: E/GeckoLinker(512): Caught segmentation fault @0x4fe83f5c
09-28 13:21:50.705: E/GeckoLinker(512): Within the address space of a CustomElf
09-28 13:21:50.705: E/GeckoLinker(512): ensure @0x4fe83f5c
09-28 13:21:50.705: E/GeckoLinker(512): DecompressChunk #1363 @0x4e49f000
(16384/ 16384)
09-28 13:21:50.705: E/GeckoLinker(512): cacheflush(0x4e49f000, 0x4e4a3000)
09-28 13:21:50.705: E/GeckoLinker(512): mprotect @0x4fe81000, 0x4000, 0x5
09-28 13:21:50.715: E/GeckoLinker(512): Caught segmentation fault @0x4fe7cf16
09-28 13:21:50.715: E/GeckoLinker(512): Within the address space of a CustomElf
09-28 13:21:50.715: E/GeckoLinker(512): ensure @0x4fe7cf16
09-28 13:21:50.715: E/GeckoLinker(512): DecompressChunk #1361 @0x4e497000
(16384/ 16384)
09-28 13:21:50.715: E/GeckoLinker(512): cacheflush(0x4e497000, 0x4e49b000)
09-28 13:21:50.715: E/GeckoLinker(512): mprotect @0x4fe79000, 0x4000, 0x5
09-28 13:21:50.715: E/GeckoLinker(512): Caught segmentation fault @0x4fe6b25b
09-28 13:21:50.715: E/GeckoLinker(512): Within the address space of a CustomElf
09-28 13:21:50.715: E/GeckoLinker(512): ensure @0x4fe6b25b
09-28 13:21:50.715: E/GeckoLinker(512): DecompressChunk #1357 @0x4e487000
(16384/ 16384)
09-28 13:21:50.715: E/GeckoLinker(512): cacheflush(0x4e487000, 0x4e48b000)
09-28 13:21:50.715: E/GeckoLinker(512): mprotect @0x4fe69000, 0x4000, 0x5
09-28 13:21:50.715: E/GeckoLinker(512): Caught segmentation fault @0x4f70d228
09-28 13:21:50.715: E/GeckoLinker(512): Within the address space of a CustomElf
09-28 13:21:50.715: E/GeckoLinker(512): ensure @0x4f70d228
09-28 13:21:50.725: E/GeckoLinker(512): DecompressChunk #886 @0x4dd2b000
(16384/ 16384)
09-28 13:21:50.725: E/GeckoLinker(512): cacheflush(0x4dd2b000, 0x4dd2f000)
09-28 13:21:50.725: E/GeckoLinker(512): mprotect @0x4f70d000, 0x4000, 0x5
09-28 13:21:50.725: E/GeckoLinker(512): Caught segmentation fault @0x4f7053f4
09-28 13:21:50.725: E/GeckoLinker(512): Within the address space of a CustomElf
09-28 13:21:50.735: E/GeckoLinker(512): ensure @0x4f7053f4
09-28 13:21:50.735: E/GeckoLinker(512): DecompressChunk #884 @0x4dd23000
(16384/ 16384)
09-28 13:21:50.735: E/GeckoLinker(512): cacheflush(0x4dd23000, 0x4dd27000)
09-28 13:21:50.735: E/GeckoLinker(512): mprotect @0x4f705000, 0x4000, 0x5
09-28 13:21:50.735: E/GeckoLinker(512): Caught segmentation fault @0x4fffe7b8
09-28 13:21:50.735: E/GeckoLinker(512): Within the address space of a CustomElf
09-28 13:21:50.735: E/GeckoLinker(512): ensure @0x4fffe7b8
09-28 13:21:50.735: E/GeckoLinker(512): DecompressChunk #1458 @0x4e61b000
(16384/ 16384)
09-28 13:21:50.735: E/GeckoLinker(512): cacheflush(0x4e61b000, 0x4e61f000)
09-28 13:21:50.735: E/GeckoLinker(512): mprotect @0x4fffd000, 0x4000, 0x5
09-28 13:21:50.745: E/GeckoLinker(512): Caught segmentation fault @0x4fe67e91
09-28 13:21:50.745: E/GeckoLinker(512): Within the address space of a CustomElf
09-28 13:21:50.745: E/GeckoLinker(512): ensure @0x4fe67e91
09-28 13:21:50.745: E/GeckoLinker(512): DecompressChunk #1356 @0x4e483000
(16384/ 16384)
09-28 13:21:50.745: E/GeckoLinker(512): cacheflush(0x4e483000, 0x4e487000)
09-28 13:21:50.745: E/GeckoLinker(512): mprotect @0x4fe65000, 0x4000, 0x5
09-28 13:21:50.745: E/GeckoLinker(512): Caught segmentation fault @0x500010cc
09-28 13:21:50.745: E/GeckoLinker(512): Within the address space of a CustomElf
09-28 13:21:50.745: E/GeckoLinker(512): ensure @0x500010cc
09-28 13:21:50.745: E/GeckoLinker(512): DecompressChunk #1459 @0x4e61f000
(16384/ 16384)
09-28 13:21:50.745: E/GeckoLinker(512): cacheflush(0x4e61f000, 0x4e623000)
09-28 13:21:50.745: E/GeckoLinker(512): mprotect @0x50001000, 0x4000, 0x5
09-28 13:21:50.815: D/GeckoLayerClient(512): Window-size changed to (720,1134)
09-28 13:21:50.965: I/GeckoToolbar(512): zerdatime 1347845 - Throbber start
09-28 13:21:51.226: I/GeckoToolbar(512): zerdatime 1348104 - Throbber stop
09-28 13:21:51.246: E/GeckoLinker(512): Caught segmentation fault @0x4f6cdb26
09-28 13:21:51.266: E/GeckoLinker(512): Within the address space of a CustomElf
09-28 13:21:51.266: E/GeckoLinker(512): ensure @0x4f6cdb26
09-28 13:21:51.266: E/GeckoLinker(512): DecompressChunk #870 @0x4dceb000
(16384/ 16384)
09-28 13:21:51.266: E/GeckoLinker(512): cacheflush(0x4dceb000, 0x4dcef000)
09-28 13:21:51.266: E/GeckoLinker(512): mprotect @0x4f6cd000, 0x4000, 0x5
09-28 13:21:51.266: E/GeckoLinker(512): Caught segmentation fault @0x4f003b50
09-28 13:21:51.266: E/GeckoLinker(512): Within the address space of a CustomElf
09-28 13:21:51.266: E/GeckoLinker(512): ensure @0x4f003b50
09-28 13:21:51.266: E/GeckoLinker(512): DecompressChunk #435 @0x4d61f000
(16384/ 16384)
09-28 13:21:51.286: E/GeckoLinker(512): cacheflush(0x4d61f000, 0x4d623000)
09-28 13:21:51.286: E/GeckoLinker(512): mprotect @0x4f001000, 0x4000, 0x5
09-28 13:21:51.296: E/GeckoLinker(512): Caught segmentation fault @0x4f737f7c
09-28 13:21:51.296: E/GeckoLinker(512): Within the address space of a CustomElf
09-28 13:21:51.296: E/GeckoLinker(512): ensure @0x4f737f7c
09-28 13:21:51.296: E/GeckoLinker(512): DecompressChunk #896 @0x4dd53000
(16384/ 16384)
09-28 13:21:51.306: E/GeckoLinker(512): cacheflush(0x4dd53000, 0x4dd57000)
09-28 13:21:51.306: E/GeckoLinker(512): mprotect @0x4f735000, 0x4000, 0x5
09-28 13:21:51.306: E/GeckoLinker(512): Caught segmentation fault @0x4f79aad8
09-28 13:21:51.306: E/GeckoLinker(512): Within the address space of a CustomElf
09-28 13:21:51.306: E/GeckoLinker(512): ensure @0x4f79aad8
09-28 13:21:51.336: E/GeckoLinker(512): DecompressChunk #921 @0x4ddb7000
(16384/ 16384)
09-28 13:21:51.336: E/GeckoLinker(512): cacheflush(0x4ddb7000, 0x4ddbb000)
09-28 13:21:51.336: E/GeckoLinker(512): mprotect @0x4f799000, 0x4000, 0x5
09-28 13:21:51.336: E/GeckoLinker(512): Caught segmentation fault @0x4f77811c
09-28 13:21:51.336: E/GeckoLinker(512): Within the address space of a CustomElf
09-28 13:21:51.336: E/GeckoLinker(512): ensure @0x4f77811c
09-28 13:21:51.336: E/GeckoLinker(512): DecompressChunk #912 @0x4dd93000
(16384/ 16384)
09-28 13:21:51.336: E/GeckoLinker(512): cacheflush(0x4dd93000, 0x4dd97000)
09-28 13:21:51.336: E/GeckoLinker(512): mprotect @0x4f775000, 0x4000, 0x5
09-28 13:21:51.336: E/GeckoLinker(512): Caught segmentation fault @0x4f77fc14
09-28 13:21:51.346: E/GeckoLinker(512): Within the address space of a CustomElf
09-28 13:21:51.346: E/GeckoLinker(512): ensure @0x4f77fc14
09-28 13:21:51.356: E/GeckoLinker(512): DecompressChunk #914 @0x4dd9b000
(16384/ 16384)
09-28 13:21:51.356: E/GeckoLinker(512): cacheflush(0x4dd9b000, 0x4dd9f000)
09-28 13:21:51.356: E/GeckoLinker(512): mprotect @0x4f77d000, 0x4000, 0x5
09-28 13:21:51.366: E/GeckoLinker(512): Caught segmentation fault @0x4f75d94c
09-28 13:21:51.366: E/GeckoLinker(512): Within the address space of a CustomElf
09-28 13:21:51.366: E/GeckoLinker(512): ensure @0x4f75d94c
09-28 13:21:51.366: E/GeckoLinker(512): DecompressChunk #906 @0x4dd7b000
(16384/ 16384)
09-28 13:21:51.366: E/GeckoLinker(512): cacheflush(0x4dd7b000, 0x4dd7f000)
09-28 13:21:51.366: E/GeckoLinker(512): mprotect @0x4f75d000, 0x4000, 0x5
09-28 13:21:51.366: E/GeckoLinker(512): Caught segmentation fault @0x4f757460
09-28 13:21:51.376: E/GeckoLinker(512): Within the address space of a CustomElf
09-28 13:21:51.376: E/GeckoLinker(512): ensure @0x4f757460
09-28 13:21:51.376: E/GeckoLinker(512): DecompressChunk #904 @0x4dd73000
(16384/ 16384)
09-28 13:21:51.386: E/GeckoLinker(512): cacheflush(0x4dd73000, 0x4dd77000)
09-28 13:21:51.386: E/GeckoLinker(512): mprotect @0x4f755000, 0x4000, 0x5
09-28 13:21:51.386: E/GeckoLinker(512): Caught segmentation fault @0x4f7933f0
09-28 13:21:51.395: E/GeckoLinker(512): Within the address space of a CustomElf
09-28 13:21:51.395: E/GeckoLinker(512): ensure @0x4f7933f0
09-28 13:21:51.395: E/GeckoLinker(512): DecompressChunk #919 @0x4ddaf000
(16384/ 16384)
09-28 13:21:51.395: E/GeckoLinker(512): cacheflush(0x4ddaf000, 0x4ddb3000)
09-28 13:21:51.395: E/GeckoLinker(512): mprotect @0x4f791000, 0x4000, 0x5
09-28 13:21:51.395: E/GeckoLinker(512): Caught segmentation fault @0x4f7a21f0
09-28 13:21:51.395: E/GeckoLinker(512): Within the address space of a CustomElf
09-28 13:21:51.395: E/GeckoLinker(512): ensure @0x4f7a21f0
09-28 13:21:51.395: E/GeckoLinker(512): DecompressChunk #923 @0x4ddbf000
(16384/ 16384)
09-28 13:21:51.416: W/DefaultRequestDirector(512): Authentication error: Unable
to respond to any of these challenges: {negotiate=WWW-Authenticate: Negotiate}
_______________________________________________
mobile-firefox-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/mobile-firefox-dev