* gcc 4.7: -march=corei7-avx bug?
@ 2012-03-29 7:54 Dâniel Fraga
2012-03-29 8:27 ` Jakub Jelinek
2012-04-15 9:24 ` Ryan Hill
0 siblings, 2 replies; 4+ messages in thread
From: Dâniel Fraga @ 2012-03-29 7:54 UTC (permalink / raw)
To: gcc
I tried to compile Firefox 11 with gcc 4.7 optimized with:
-O3 -march=corei7-avx (I have a core i7 2700k)
But Firefox segfaults (backtrace provided, although it seems
not very useful):
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52762
If I compile with -march=corei7 it runs perfectly.
Maybe a gcc bug?
How can I help you to debug this?
Thanks!
--
Linux 3.3.0: Saber-toothed Squirrel
http://www.youtube.com/DanielFragaBR
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: gcc 4.7: -march=corei7-avx bug?
2012-03-29 7:54 gcc 4.7: -march=corei7-avx bug? Dâniel Fraga
@ 2012-03-29 8:27 ` Jakub Jelinek
2012-03-29 17:43 ` Dâniel Fraga
2012-04-15 9:24 ` Ryan Hill
1 sibling, 1 reply; 4+ messages in thread
From: Jakub Jelinek @ 2012-03-29 8:27 UTC (permalink / raw)
To: Dâniel Fraga; +Cc: gcc
On Thu, Mar 29, 2012 at 04:53:45AM -0300, Dâniel Fraga wrote:
> I tried to compile Firefox 11 with gcc 4.7 optimized with:
>
> -O3 -march=corei7-avx (I have a core i7 2700k)
>
> But Firefox segfaults (backtrace provided, although it seems
> not very useful):
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52762
>
> If I compile with -march=corei7 it runs perfectly.
>
> Maybe a gcc bug?
Maybe. Or maybe firefox bug.
> How can I help you to debug this?
Build with debug info, try to understand why it crashed, build
a minimal testcase out of it, attach it to the PR.
Or you could use a brute force method, if -march=corei7 works,
but -march=corei7-avx doesn't, do a binary search on firefox built with
some corei7 and some corei7-avx object files, until you find the problematic
compilation unit.
Jakub
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: gcc 4.7: -march=corei7-avx bug?
2012-03-29 8:27 ` Jakub Jelinek
@ 2012-03-29 17:43 ` Dâniel Fraga
0 siblings, 0 replies; 4+ messages in thread
From: Dâniel Fraga @ 2012-03-29 17:43 UTC (permalink / raw)
To: Jakub Jelinek; +Cc: gcc
On Thu, 29 Mar 2012 10:26:47 +0200
Jakub Jelinek <jakub@redhat.com> wrote:
> > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52762
> Build with debug info, try to understand why it crashed, build
> a minimal testcase out of it, attach it to the PR.
> Or you could use a brute force method, if -march=corei7 works,
> but -march=corei7-avx doesn't, do a binary search on firefox built with
> some corei7 and some corei7-avx object files, until you find the problematic
> compilation unit.
Hi Jakub, I posted a new backtrace with --enable-debug to
the above bug report. I hope it helps.
If you need more testing or want em to apply some patch, just
ask. Thanks.
--
Linux 3.3.0: Saber-toothed Squirrel
http://www.youtube.com/DanielFragaBR
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: gcc 4.7: -march=corei7-avx bug?
2012-03-29 7:54 gcc 4.7: -march=corei7-avx bug? Dâniel Fraga
2012-03-29 8:27 ` Jakub Jelinek
@ 2012-04-15 9:24 ` Ryan Hill
1 sibling, 0 replies; 4+ messages in thread
From: Ryan Hill @ 2012-04-15 9:24 UTC (permalink / raw)
To: gcc
[-- Attachment #1: Type: text/plain, Size: 675 bytes --]
On Thu, 29 Mar 2012 04:53:45 -0300
Dâniel Fraga <fragabr@gmail.com> wrote:
> I tried to compile Firefox 11 with gcc 4.7 optimized with:
>
> -O3 -march=corei7-avx (I have a core i7 2700k)
>
> But Firefox segfaults (backtrace provided, although it seems
> not very useful):
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52762
>
> If I compile with -march=corei7 it runs perfectly.
>
> Maybe a gcc bug?
>
> How can I help you to debug this?
We've had to disable -mavx for firefox builds due to numerous issues like
this. Search the mozilla bugzilla for stack alignment issues.
--
fonts, gcc-porting
toolchain, wxwidgets
@ gentoo.org
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-04-15 9:24 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-29 7:54 gcc 4.7: -march=corei7-avx bug? Dâniel Fraga
2012-03-29 8:27 ` Jakub Jelinek
2012-03-29 17:43 ` Dâniel Fraga
2012-04-15 9:24 ` Ryan Hill
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).