Firefox's GeckoLinker has intermittent crashes #5

Closed
thestinger opened this Issue Aug 17, 2015 · 16 comments

Comments

Projects
None yet
3 participants
@thestinger
Contributor

thestinger commented Aug 17, 2015

It's not entirely clear what's wrong but it's probably caused by Firefox's custom ELF loader/linker (GeckoLinker). It does crazy things like intentionally causing segmentation faults for lazy library loading and it monkey patches functions in libc.

@polyzen

This comment has been minimized.

Show comment Hide comment
@polyzen

polyzen Sep 17, 2015

Just adding a note that this also affects Fennec F-droid

polyzen commented Sep 17, 2015

Just adding a note that this also affects Fennec F-droid

@thestinger

This comment has been minimized.

Show comment Hide comment
@thestinger

thestinger Sep 17, 2015

Contributor

I'm still not sure why this doesn't work, but I suspect that their custom ELF loader/linker is incompatible with a hardening feature that I'm not going to want to remove for the sake of one very screwed up application. Need to narrow down the cause before I can decide what to do though.

Contributor

thestinger commented Sep 17, 2015

I'm still not sure why this doesn't work, but I suspect that their custom ELF loader/linker is incompatible with a hardening feature that I'm not going to want to remove for the sake of one very screwed up application. Need to narrow down the cause before I can decide what to do though.

@thestinger

This comment has been minimized.

Show comment Hide comment
@thestinger

thestinger Sep 17, 2015

Contributor

Also not really a priority for me because it lacks sandboxing and other hardening features. The default browser will end up being CyanogenMod's new one, which is a fork of Chromium with some added features like built-in ad-blocking.

Contributor

thestinger commented Sep 17, 2015

Also not really a priority for me because it lacks sandboxing and other hardening features. The default browser will end up being CyanogenMod's new one, which is a fork of Chromium with some added features like built-in ad-blocking.

@thestinger

This comment has been minimized.

Show comment Hide comment
@thestinger

thestinger Sep 17, 2015

Contributor

Would be nice if they provided a way to use the normal linker... I expect that it'd work fine.

Contributor

thestinger commented Sep 17, 2015

Would be nice if they provided a way to use the normal linker... I expect that it'd work fine.

@vanitasvitae

This comment has been minimized.

Show comment Hide comment
@vanitasvitae

vanitasvitae Sep 26, 2015

It seems like Orfox (based on Firefox) also doesnt work.

It seems like Orfox (based on Firefox) also doesnt work.

@thestinger

This comment has been minimized.

Show comment Hide comment
@thestinger

thestinger Sep 27, 2015

Contributor

Yeah, that's expected. I'll spend some time narrowing down the cause of this problem in the next week or two. I have a strong feeling that it's an incompatibility between a hardening feature and their linker though, and I'm not going to want to revert it for their sake. Perhaps they can be convinced to use the regular linker in some cases but I don't think they're going to care... :[

Contributor

thestinger commented Sep 27, 2015

Yeah, that's expected. I'll spend some time narrowing down the cause of this problem in the next week or two. I have a strong feeling that it's an incompatibility between a hardening feature and their linker though, and I'm not going to want to revert it for their sake. Perhaps they can be convinced to use the regular linker in some cases but I don't think they're going to care... :[

@thestinger

This comment has been minimized.

Show comment Hide comment
@thestinger

thestinger Oct 15, 2015

Contributor

Starting to make some good progress on this. It appears there are two issues here. There's a crash due to a probably intentional memory access error that they intend to catch. I reverted a bunch of features to narrow it down, and I successfully avoided it. There's another intermittent start-up error that's not actually a crash, just an abort/exit, but I'll file a new bug for that when the crash is dealt with.

Contributor

thestinger commented Oct 15, 2015

Starting to make some good progress on this. It appears there are two issues here. There's a crash due to a probably intentional memory access error that they intend to catch. I reverted a bunch of features to narrow it down, and I successfully avoided it. There's another intermittent start-up error that's not actually a crash, just an abort/exit, but I'll file a new bug for that when the crash is dealt with.

@thestinger thestinger changed the title from Firefox doesn't start to Firefox crashes at start-up with a SEGV_ACCERR signal Oct 15, 2015

@thestinger

This comment has been minimized.

Show comment Hide comment
@thestinger

thestinger Oct 16, 2015

Contributor

This is fixed and will be included in the next set of releases (likely tonight).

Contributor

thestinger commented Oct 16, 2015

This is fixed and will be included in the next set of releases (likely tonight).

@thestinger thestinger closed this Oct 16, 2015

@thestinger thestinger changed the title from Firefox crashes at start-up with a SEGV_ACCERR signal to Firefox's GeckoLinker has intermittent crashes Oct 16, 2015

@thestinger

This comment has been minimized.

Show comment Hide comment
@thestinger

thestinger Oct 17, 2015

Contributor

Orfox will still be broken since I only worked around the issue for the Firefox and Firefox Beta app names, so I'll have to deal with that too.

Contributor

thestinger commented Oct 17, 2015

Orfox will still be broken since I only worked around the issue for the Firefox and Firefox Beta app names, so I'll have to deal with that too.

@vanitasvitae

This comment has been minimized.

Show comment Hide comment
@vanitasvitae

vanitasvitae Oct 17, 2015

It would be nice if Fennec would be fixed too.

It would be nice if Fennec would be fixed too.

@thestinger

This comment has been minimized.

Show comment Hide comment
@thestinger

thestinger Oct 17, 2015

Contributor

Yeah, that will be fixed too, I just exported the environment variables globally since it's hard to know how many Firefox-based apps there are.

Contributor

thestinger commented Oct 17, 2015

Yeah, that will be fixed too, I just exported the environment variables globally since it's hard to know how many Firefox-based apps there are.

@polyzen

This comment has been minimized.

Show comment Hide comment
@polyzen

polyzen Oct 19, 2015

Firefox seems to work fine. Fennec is still crashing.

polyzen commented Oct 19, 2015

Firefox seems to work fine. Fennec is still crashing.

@thestinger

This comment has been minimized.

Show comment Hide comment
@thestinger

thestinger Oct 19, 2015

Contributor

I know, I haven't released a new ROM with the fix for Fennec and Orfox yet. It is fixed though.

Contributor

thestinger commented Oct 19, 2015

I know, I haven't released a new ROM with the fix for Fennec and Orfox yet. It is fixed though.

@thestinger

This comment has been minimized.

Show comment Hide comment
@thestinger

thestinger Oct 19, 2015

Contributor

The new ROM is published for the Nexus 5 now.

Contributor

thestinger commented Oct 19, 2015

The new ROM is published for the Nexus 5 now.

@vanitasvitae

This comment has been minimized.

Show comment Hide comment
@vanitasvitae

vanitasvitae Oct 19, 2015

Works for me for Firefox, Fennec, Orfox. Nice :)

Works for me for Firefox, Fennec, Orfox. Nice :)

@polyzen

This comment has been minimized.

Show comment Hide comment
@polyzen

polyzen Oct 19, 2015

Thank you :)

On Mon, Oct 19, 2015 at 5:12 PM, vanitasvitae notifications@github.com
wrote:

Works for me for Firefox, Fennec, Orfox. Nice :)


Reply to this email directly or view it on GitHub
copperhead#5 (comment).

polyzen commented Oct 19, 2015

Thank you :)

On Mon, Oct 19, 2015 at 5:12 PM, vanitasvitae notifications@github.com
wrote:

Works for me for Firefox, Fennec, Orfox. Nice :)


Reply to this email directly or view it on GitHub
copperhead#5 (comment).

@polyzen polyzen referenced this issue in LotarProject/dokuwiki-template-bootstrap3 Nov 7, 2015

Closed

Some text gets cut off in responsive mode (certain browsers) #104

@zongo zongo referenced this issue Jan 8, 2017

Closed

webview crash #555

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment