Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 228957 - www-client/mozilla-firefox-3.0-r1 segmentation fault on ppc and ppc64/32ul (glibc-2.8)
Summary: www-client/mozilla-firefox-3.0-r1 segmentation fault on ppc and ppc64/32ul (g...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC Linux
: High normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
: 228999 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-06-22 20:45 UTC by Markus Rothe (RETIRED)
Modified: 2008-06-26 18:09 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
backtrace from powerbook g4 (firefox-3.0-r1_backtrace.txt,9.88 KB, text/plain)
2008-06-22 20:46 UTC, Markus Rothe (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Rothe (RETIRED) gentoo-dev 2008-06-22 20:45:01 UTC
Firefox 3.0 compiled with -O2/-O3 will segfault on ppc32 and ppc64/32ul if compiled with the follwoing packages:

www-client/mozilla-firefox-3.0-r1
sys-devel/gcc-4.3.1
sys-libs/glibc-2.8_p20080602

Compiling with -O1 fixes the problem. I'll attach a backtrace from my G4.

[ first mentioned at http://forums.gentoo.org/viewtopic-t-697303.html ]
Comment 1 Markus Rothe (RETIRED) gentoo-dev 2008-06-22 20:46:15 UTC
Created attachment 158041 [details]
backtrace from powerbook g4
Comment 2 Brian Tarricone 2008-06-23 02:37:11 UTC
*** Bug 228999 has been marked as a duplicate of this bug. ***
Comment 3 Brian Tarricone 2008-06-23 02:39:05 UTC
Backtrace with debug symbols in attachment 158061 [details]
Comment 4 Brian Tarricone 2008-06-23 20:03:27 UTC
I'm not sure your root cause is quite correct.  I still have gcc 4.2.4 on my system, so I recompiled xulrunner, mozilla-firefox, and even glibc using gcc 4.2.4, but firefox still crashes on startup.

Going to give a -O1 compile a try next.  I hesitate to try a glibc downgrade, as I have no desire to accidentally trash my system.
Comment 5 Raúl Porcel (RETIRED) gentoo-dev 2008-06-24 12:41:36 UTC
So everyone here has glibc-2.8? Because i don't get that on glibc-2.6.1 and gcc-4.1.2.
Comment 6 Markus Rothe (RETIRED) gentoo-dev 2008-06-24 13:55:49 UTC
(In reply to comment #5)
> So everyone here has glibc-2.8?

Correct.

> Because i don't get that on glibc-2.6.1 and gcc-4.1.2.

I'm currently on the road and cannot test firefox-3.0 on my "almost stable" system at home using gcc-4.3.1 or gcc-4.2.3, but I'll do once I'm home again.
Comment 7 Brian Tarricone 2008-06-24 16:57:35 UTC
(In reply to comment #5)
> So everyone here has glibc-2.8?

Right.

> Because i don't get that on glibc-2.6.1 and gcc-4.1.2.

Not surprised.  This bug seems to be related to some combination of glibc-2.8, gcc-4.3.x, and -O2.  I tried rebuilding with -O1 last night (though I realised I forgot to switch back to gcc 4.3, so this was with 4.2), and I get no segfault.

I'll try a couple more combinations to see what comes out of this, but don't expect much in the way of results before the weekend.  I'll undoubtedly slow down a bit since I have something that works now...
Comment 8 Raúl Porcel (RETIRED) gentoo-dev 2008-06-26 09:30:51 UTC
its not gcc related, occurs the same with 4.1.2 && glibc-2.8. However it doesn't occur with gcc-4.1.2 && glibc-2.6, glibc-2.7.
Comment 9 Raúl Porcel (RETIRED) gentoo-dev 2008-06-26 09:52:27 UTC
Can i get `emerge --verbose --info | grep ARCH` from a ppc64/32bitul?

Thanks
Comment 10 Raúl Porcel (RETIRED) gentoo-dev 2008-06-26 16:46:28 UTC
I've added the workaround for this in the mozcoreconf-2.eclass

Thanks to Brent Baude for giving me the output.
Comment 11 Brian Tarricone 2008-06-26 17:37:55 UTC
(In reply to comment #10)
> I've added the workaround for this in the mozcoreconf-2.eclass

Isn't that backwards?

elif [[ ${ARCH} == ppc ]] && ! has_version '>=sys-libs/glibc-2.8'; then
    mozconfig_annotate "more than -O1 segfaults on ppc with glibc-2.8" \
        --enable-optimize=-O1

Why the negation before has_version?
Comment 12 Raúl Porcel (RETIRED) gentoo-dev 2008-06-26 18:09:15 UTC
(In reply to comment #11)
> (In reply to comment #10)
> > I've added the workaround for this in the mozcoreconf-2.eclass
> 
> Isn't that backwards?
> 
> elif [[ ${ARCH} == ppc ]] && ! has_version '>=sys-libs/glibc-2.8'; then
>     mozconfig_annotate "more than -O1 segfaults on ppc with glibc-2.8" \
>         --enable-optimize=-O1
> 
> Why the negation before has_version?
> 

Yeah, fixed now, i just put that to test it.