Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1498561

Summary: firefox crashes at ContextToFP() on ppc64le f27
Product: [Fedora] Fedora Reporter: Menanteau Guy <menantea>
Component: firefoxAssignee: Martin Stransky <stransky>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 27CC: alexl, gecko-bugs-nobody, hannsj_uhl, jhorak, kengert, menantea, normand, pjasicek, rhughes, rstrode, sandmann, stransky
Target Milestone: ---   
Target Release: ---   
Hardware: ppc64le   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-05-18 10:10:10 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1071880    
Attachments:
Description Flags
msg at screen
none
dmesg
none
journalctl
none
coredump thru gdb
none
firefox with strace
none
start of ppc64le patch which avoid the crash none

Description Menanteau Guy 2017-10-04 15:57:18 UTC
firefox is used in openqa tests for ppc64le and ppc64
since Fedora-27-20171001.n.2 there is segmentation fault when running firefox

I reproduced the problem manually to get some traces (see attachments)
I installed a ppc64le VM with the Fedora-Server-dvd-ppc64le-27-20171003.n.0.iso
Then I start firefox thru a ssh -X session
firefox start but then scratch with a panel "Gah. Your tab just crashed." and the  window disappears.

Note that firefox was running correctly for last time with Fedora-27-20170929.n.0

Comment 1 Menanteau Guy 2017-10-04 15:58:00 UTC
Created attachment 1334363 [details]
msg at screen

Comment 2 Menanteau Guy 2017-10-04 15:58:43 UTC
Created attachment 1334364 [details]
dmesg

Comment 3 Menanteau Guy 2017-10-04 15:59:17 UTC
Created attachment 1334365 [details]
journalctl

Comment 4 Menanteau Guy 2017-10-04 15:59:52 UTC
Created attachment 1334366 [details]
coredump thru gdb

Comment 5 Menanteau Guy 2017-10-04 16:00:23 UTC
Created attachment 1334367 [details]
firefox with strace

Comment 6 Menanteau Guy 2017-10-18 12:55:30 UTC
for info, problem is still there in firefox-57.0-0.4

Comment 7 Michel Normand 2017-10-19 11:31:52 UTC
most probably a duplicate of previous bug #1486737 identified before for fc26 update tests.

Comment 8 Michel Normand 2018-02-14 13:00:08 UTC
*** Bug 1486737 has been marked as a duplicate of this bug. ***

Comment 9 Menanteau Guy 2018-05-16 11:35:47 UTC
Created attachment 1437274 [details]
start of ppc64le patch which avoid the crash

I started to test this patch sometimes ago but get blocked because of different other problems that crash firefox before I reach this code. The problem blocking my test is currently the bug #1578429

So my patch could not be completely satisfactory as is working ok in normal mode but I still have error when I put firefox in debug mode.

Comment 10 Martin Stransky 2018-05-16 11:56:14 UTC
*** Bug 1578429 has been marked as a duplicate of this bug. ***

Comment 11 Martin Stransky 2018-05-16 11:56:54 UTC
I added your patch to firefox-60.0-6.* builds at https://koji.fedoraproject.org/koji/packageinfo?packageID=37

Comment 12 Menanteau Guy 2018-05-17 13:47:26 UTC
firefox-60.0-6 seems working ok so far for ppc64le. I update my openqa environment to have next tests running on rawhide using this new firefox and I will update this bug if tests are ok. 
Also, jemalloc has been disable when building for powerpc, is there a plan to make jemalloc working for powerpc ?

Comment 13 Martin Stransky 2018-05-17 14:03:03 UTC
(In reply to Menanteau Guy from comment #12)
> Also, jemalloc has been disable when building for powerpc, is there a plan
> to make jemalloc working for powerpc ?

I don't have such intention.

Comment 14 Martin Stransky 2018-05-18 07:01:29 UTC
Do you mind to file upstream (at bugzilla.mozilla.org) bug or should I do so? Will be good to have this patch upstreamed.

Comment 15 Menanteau Guy 2018-05-18 08:53:45 UTC
Done, see https://bugzilla.mozilla.org/show_bug.cgi?id=1462566
Please, feel free to add any comments. Thanks