Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 382023 - mail-client/thunderbird-3.1.12 net-libs/xulrunner-1.9.2.20 crash with -march=native on sandybridge / gcc-4.4.5
Summary: mail-client/thunderbird-3.1.12 net-libs/xulrunner-1.9.2.20 crash with -march=...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal minor (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-06 09:17 UTC by Christian Speckner
Modified: 2012-01-28 13:54 UTC (History)
0 users

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


Attachments
emerge --info (emerge.info,5.32 KB, text/plain)
2011-09-06 22:13 UTC, Christian Speckner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Speckner 2011-09-06 09:17:23 UTC
When thunderbird and xulrunner (possibly also firefox itself, didn't check separately) are copiled with -march=native on my core-i7, they fail to launch (thunderbird) or crash frequently (firefox). Setting -march=core2 fixes the issue. As others seem to observe the same issue http://forums.gentoo.org/viewtopic-t-893300-start-0-postdays-0-postorder-asc-highlight-thunderbird.html , it might be worthwhile to add an ewarn message if -march=native is detected.

NB: The problem was absent in previous versions of the packages.

Reproducible: Always

Steps to Reproduce:
1. Emerge packages with -march=native on a sandybridge system
2. Start thunderbird
Actual Results:  
Nothing.

Expected Results:  
Start up and show my mail folders. ;)
Comment 1 Mike Gilbert gentoo-dev 2011-09-06 21:19:44 UTC
Please provide emerge --info.
Comment 2 Christian Speckner 2011-09-06 22:13:03 UTC
Created attachment 285731 [details]
emerge --info
Comment 3 Christian Speckner 2011-09-06 22:13:57 UTC
Sorry, forgot it, there you go. For completeness sake (it's already in the description), here's gcc --version

gcc (Gentoo 4.4.5 p1.3, pie-0.4.5) 4.4.5
Comment 4 Michael Hofmann 2011-09-07 23:46:53 UTC
Just for completeness: the problem is not the option "-march=native" by itself - the problem is, that "-march=native" results in the gcc option "-mavx" on Core i7 and some Sandy Bridge CPUs.

https://bugs.gentoo.org/show_bug.cgi?id=352495

https://bugzilla.mozilla.org/show_bug.cgi?id=680547

As Christian suggested, it would be nice to have a warning if Thunderbird or xulrunner/Firefox are compiled with "-march=native". It would even be better if we could issue a warning or even an error if Thunderbird or xulrunner/Firefox are compiled with "-mavx" - but I have no idea if there is a way to detect a "-mavx" that results from "-march=native".
Comment 5 Jory A. Pratt gentoo-dev 2012-01-28 13:54:26 UTC
tb/fx-4 pass -mno-avx on gcc versions that support it >=4.4. bug is resolved.