Closed Bug 789807 Opened 12 years ago Closed 12 years ago

Gecko crashes with Siyah kernel in SGS2

Categories

(Firefox OS Graveyard :: General, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: _AtilA_, Unassigned)

Details

Gecko crashes with SIGSEGV in dlfree() (bionic) few seconds after showing initial lock screen. I couldn't get the stack trace to see where exactly explodes cause gdb reports a stack corrpution.

It's being happening since I installed Siyha kernel (the one used for dual-booting in our SGS2, it's recommended in the wiki page[1]).

I checked that using the kernel image from the build system (device/samsung/galaxys2/kernel)fixes the problem.

Real dual-booting is an excellent tool for those like me that uses their own phone to contribute to the project.


[1] https://developer.mozilla.org/en-US/docs/Mozilla/Boot_to_Gecko/Dual_boot_of_B2G_and_Android_on_SGS2
I haven't checked but the kernel probably needs to be rebuilt with a rootfs that has an updated init.b2g.rc.
Specifically, you need to ensure that either b2g is launched with this preloaded lib

export LD_PRELOAD=/system/b2g/libmozglue.so

or, that it's built with --disable-jemalloc (put that in your mozconfig).
Ok, I compiled Gecko with --disable-jemalloc, and it worked!
Just type: DISABLE_JEMALLOC=1 ./build.sh gecko

:)
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Ok, this is not a fix, just a workaround.
Michael Wu tolds me that init.b2g.rc need to be fixed. 
I'm on it.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
So I updated Gokhanmoral's Siyah kernel init.rc scripts and made a pull-request, he marged it, so I hope he uploads new kernel soon. In the meantime, anyone can clone both: https://github.com/gokhanmoral/initramfs3 and https://github.com/gokhanmoral/siyahkernel3 and generates the kernel by himself.
There's a ./build_kernel.sh script that will do the job, it only needs to be modified to point to the toolchain.
Ok, new release of Siyah kernel (5.0) is out! [1]
Now b2g service launches properly, so we can close this bug.
Maybe the doc on MDN should be updated.
Status: REOPENED → RESOLVED
Closed: 12 years ago12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.