Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Segfault with mobile/xul

26 views
Skip to first unread message

Emmanuel Engelhart

unread,
Jan 7, 2012, 5:01:49 PM1/7/12
to dev-platfo...@lists.mozilla.org
Hi,

Currently I'm trying to compile by myself FF mobile for Android using
mozilla-central.

I have achieved to compile & run on the Android emulator FF mobile with
the native UI (although it dies if I try to open a Web page).

But, I'm more interested in the mobile/xul code because I want to port a
XUL app. (currently running with xulrunner) to Android.

It seems to compile fine, but at the execution I have a sefault:

E/GeckoLibLoad( 548): resolved libxul.so to
/data/data/org.mozilla.fennec_kelson/cache/libxul.so
W/NetworkManagementSocketTagger( 79): setKernelCountSet(10005, 0)
failed with errno -2
W/InputManagerService( 79): Starting input on non-focused client
com.android.internal.view.IInputMethodClient$Stub$Proxy@414c3528
(uid=10005 pid=185)
F/libc ( 548): Fatal signal 11 (SIGSEGV) at 0x00000004 (code=1)
I/DEBUG ( 34): *** *** *** *** *** *** *** *** *** *** *** *** ***
*** *** ***
I/DEBUG ( 34): Build fingerprint:
'generic/sdk/generic:4.0.2/ICS_MR0/229537:eng/test-keys'
I/DEBUG ( 34): pid: 548, tid: 564 >>> org.mozilla.fennec_kelson <<<
I/DEBUG ( 34): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr
00000004
I/DEBUG ( 34): r0 00000004 r1 0000ffff r2 0000ffff r3 00000004
I/DEBUG ( 34): r4 4b6ea648 r5 00000071 r6 00000004 r7 474e96b8
I/DEBUG ( 34): r8 b0012fa8 r9 4b72c000 10 02751000 fp 49024000
I/DEBUG ( 34): ip 4929aa5d sp 474e96b8 lr 4a7af84b pc 4929aa5c
cpsr 60000030
I/DEBUG ( 34): d0 3f7aaaab3f800000 d1 3ff0000043160000
I/DEBUG ( 34): d2 437e8000000000fe d3 000000003f000000
I/DEBUG ( 34): d4 000001fd00000000 d5 3fe999999999999a
I/DEBUG ( 34): d6 3fe8000000000000 d7 000000003f800000
I/DEBUG ( 34): d8 0000000000000000 d9 0000000000000000
I/DEBUG ( 34): d10 0000000000000000 d11 0000000000000000
I/DEBUG ( 34): d12 0000000000000000 d13 0000000000000000
I/DEBUG ( 34): d14 0000000000000000 d15 0000000000000000
I/DEBUG ( 34): scr 60000012
I/DEBUG ( 34):
I/DEBUG ( 34): #00 pc 00276a5c
/data/data/org.mozilla.fennec_kelson/cache/libxul.so
I/DEBUG ( 34): #01 lr 4a7af84b
/data/data/org.mozilla.fennec_kelson/cache/libxul.so
I/DEBUG ( 34):
I/DEBUG ( 34): code around pc:
I/DEBUG ( 34): 4929aa3c e28cca50 e5bcf888 e28fc624 e28cca50
I/DEBUG ( 34): 4929aa4c e5bcf880 e28fc624 e28cca50 e5bcf878
I/DEBUG ( 34): 4929aa5c e28fc624 e28cca50 e5bcf870 e28fc624
I/DEBUG ( 34): 4929aa6c e28cca50 e5bcf868 e28fc624 e28cca50
I/DEBUG ( 34): 4929aa7c e5bcf860 e28fc624 e28cca50 e5bcf858
I/DEBUG ( 34):
I/DEBUG ( 34): code around lr:
I/DEBUG ( 34): 4a7af828 f107eb66 46180310 edd0f2c0 447b4b1e
I/DEBUG ( 34): 4a7af838 2b00681b f04fd10f 623b0304 f2c46a38
I/DEBUG ( 34): 4a7af848 4603e80c 4623461c f5f84618 4622fd3f
I/DEBUG ( 34): 4a7af858 447b4b16 4b16601a 681b447b 020cf107
I/DEBUG ( 34): 4a7af868 46194610 fd72f5f8 0318f04f 6a78627b
I/DEBUG ( 34):
I/DEBUG ( 34): stack:
I/DEBUG ( 34): 474e9678 4772d70c
I/DEBUG ( 34): 474e967c 4b901420
I/DEBUG ( 34): 474e9680 474e9688
I/DEBUG ( 34): 474e9684 477083af
/mnt/asec/org.mozilla.fennec_kelson-1/lib/libmozutils.so
I/DEBUG ( 34): 474e9688 4b77c040
I/DEBUG ( 34): 474e968c 00000005
I/DEBUG ( 34): 474e9690 4772d70c
I/DEBUG ( 34): 474e9694 00000074
I/DEBUG ( 34): 474e9698 474e96a0
I/DEBUG ( 34): 474e969c 4b9020a8
I/DEBUG ( 34): 474e96a0 00000004
I/DEBUG ( 34): 474e96a4 4b5af7d0
I/DEBUG ( 34): 474e96a8 4b5af7d0
I/DEBUG ( 34): 474e96ac 47708331
/mnt/asec/org.mozilla.fennec_kelson-1/lib/libmozutils.so
I/DEBUG ( 34): 474e96b0 df0027ad
I/DEBUG ( 34): 474e96b4 00000000
I/DEBUG ( 34): #00 474e96b8 4004755c
I/DEBUG ( 34): 474e96bc 4b73cacc
I/DEBUG ( 34): 474e96c0 474e96c8
I/DEBUG ( 34): 474e96c4 4b73cac4
I/DEBUG ( 34): 474e96c8 474e96d0
I/DEBUG ( 34): 474e96cc 494844cd
/data/data/org.mozilla.fennec_kelson/cache/libxul.so
I/DEBUG ( 34): 474e96d0 00000004
I/DEBUG ( 34): 474e96d4 4b73cac4
I/DEBUG ( 34): 474e96d8 00000004
I/DEBUG ( 34): 474e96dc 4b5af7d8
I/DEBUG ( 34): 474e96e0 474e96e8
I/DEBUG ( 34): 474e96e4 4b6ea648
I/DEBUG ( 34): 474e96e8 474e96f0
I/DEBUG ( 34): 474e96ec 4a2fca69
/data/data/org.mozilla.fennec_kelson/cache/libxul.so
I/DEBUG ( 34): 474e96f0 0000ffff
I/DEBUG ( 34): 474e96f4 00000001
I/DEBUG ( 34): 474e96f8 0000ffff
I/DEBUG ( 34): 474e96fc 4b5af7dc
D/Zygote ( 37): Process 548 terminated by signal (11)
I/ActivityManager( 79): Process org.mozilla.fennec_kelson (pid 548)
has died.

Does someone know why?

Regards
Emmanuel

signature.asc

Doug Turner

unread,
Jan 7, 2012, 9:14:10 PM1/7/12
to emma...@engelhart.org, dev-platfo...@lists.mozilla.org
Sorry, I don't. Have you tried looking at the crash in GDB? Jim Chen made
doing this very easy.

https://wiki.mozilla.org/Mobile/Fennec/Android/GDB
On Jan 7, 2012 2:03 PM, "Emmanuel Engelhart" <emma...@engelhart.org>
wrote:
> _______________________________________________
> dev-platforms-mobile mailing list
> dev-platfo...@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-platforms-mobile
>
>

Chris Peterson

unread,
Jan 8, 2012, 1:47:51 AM1/8/12
to emma...@engelhart.org, dev-platfo...@lists.mozilla.org
hi Emmanuel, since you have been building both the native and XUL
versions of Firefox Mobile, you might want to delete your OBJDIR to
ensure your build does not inadvertently link incompatible object files.

Also, what Android NDK version are you using? I have seen similar
startup crashes when using NDK r7 (the current version). The crashes
"went away" when reverted to an older NDK version like r6b or r5c (which
is the version used on Mozilla's build machine).

chris


On 1/7/12 2:01 PM, Emmanuel Engelhart wrote:
> Hi,
>
> Currently I'm trying to compile by myself FF mobile for Android using
> mozilla-central.
>
> I have achieved to compile& run on the Android emulator FF mobile with
--

chris

Emmanuel Engelhart

unread,
Jan 8, 2012, 6:19:33 AM1/8/12
to Chris Peterson, dev-platfo...@lists.mozilla.org
Hi

Doug's assumption was right: I was using android-ndk-r7 and with
android-ndk-r6b it works!

Thank you for your help.

Regards
Emmanuel
signature.asc
0 new messages