Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 908412 - www-client/firefox-114.0: Illegal Instruction in libxul.so (vshufps)
Summary: www-client/firefox-114.0: Illegal Instruction in libxul.so (vshufps)
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-12 15:56 UTC by Reuben Martin
Modified: 2024-01-08 08:10 UTC (History)
3 users (show)

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


Attachments
emerge --info (emerge-info.txt,8.59 KB, text/plain)
2023-06-12 15:59 UTC, Reuben Martin
Details
equery uses firefox (firefox_uses.txt,1.20 KB, text/plain)
2023-06-12 16:00 UTC, Reuben Martin
Details
backtrace (gdb.txt,5.79 KB, text/plain)
2023-06-12 16:25 UTC, Reuben Martin
Details
Backtrace with debug symbols (backtrace_debug.txt,3.17 KB, text/plain)
2023-06-13 01:07 UTC, Reuben Martin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Reuben Martin 2023-06-12 15:56:52 UTC
On an older AMD Phenom II box, firefox-114 is getting built with AVX instructions. Checking with gdb, the offending instructions start with a "vshufps" located in /usr/lib64/firefox/libxul.so

Built using gcc-13.1.1_p20230527

lto, pgo, hardened USE flags are set

The compiler flags are somewhat agressive, so I'll be rebuilding with something more tame to see if that changes anything. In the meantime though, something is broke with AVX instructions being generated on this platform with march=native


Reproducible: Always
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-06-12 15:58:22 UTC
I'm guessing this *isn't* the nss-3.90 thing (please double check that's not installed) if it's in libxul.so.

Could you give us a backtrace in full when it gets SIGILL'd please, as well as emerge --info? Thanks.
Comment 2 Reuben Martin 2023-06-12 15:59:09 UTC
Created attachment 863739 [details]
emerge --info
Comment 3 Reuben Martin 2023-06-12 16:00:19 UTC
Created attachment 863740 [details]
equery uses firefox
Comment 4 Reuben Martin 2023-06-12 16:24:44 UTC
(In reply to Sam James from comment #1)
> I'm guessing this *isn't* the nss-3.90 thing (please double check that's not
> installed) if it's in libxul.so.

No, that had already been downgraded to dev-libs/nss-3.89.1

> 
> Could you give us a backtrace in full when it gets SIGILL'd please, as well
> as emerge --info? Thanks.

I'm attaching backtrace
Comment 5 Reuben Martin 2023-06-12 16:25:47 UTC
Created attachment 863742 [details]
backtrace
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-06-12 16:28:33 UTC
Could you build firefox+glibc with debugging symbols (-ggdb3 + installsources ideally, see https://wiki.gentoo.org/wiki/Debugging#Per-package) please?
Comment 7 Reuben Martin 2023-06-12 16:29:43 UTC
(In reply to Sam James from comment #6)
> Could you build firefox+glibc with debugging symbols (-ggdb3 +
> installsources ideally, see
> https://wiki.gentoo.org/wiki/Debugging#Per-package) please?

Yes, will take a little while
Comment 8 Reuben Martin 2023-06-13 01:07:08 UTC
Created attachment 863754 [details]
Backtrace with debug symbols

Hope 13 layers into the stack is sufficient. This machine does not have the memory needed to do a proper backtrace on a codebase this large, so I killed it after churning through swap for 20min.
Comment 9 Joonas Niilola gentoo-dev 2023-06-14 07:05:11 UTC
Hmm wonder if this is skia related, saw they had made tons of updates there (e.g. hopefully fixing bug 838373)
https://bugs.gentoo.org/838373#c57
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-06-17 18:07:52 UTC
Yeah, I think it is. Can someone hitting this give me the full build.log, per chance?
Comment 11 jospezial 2023-06-17 20:40:09 UTC
I had a crashing firefox 114.0.1 on opensuse tumbleweed today after update.
https://bugzilla.opensuse.org/show_bug.cgi?id=1212101
https://bugzilla.mozilla.org/show_bug.cgi?id=1838323
Comment 12 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-06-17 20:46:54 UTC
(In reply to jospezial from comment #11)
> I had a crashing firefox 114.0.1 on opensuse tumbleweed today after update.
> https://bugzilla.opensuse.org/show_bug.cgi?id=1212101
> https://bugzilla.mozilla.org/show_bug.cgi?id=1838323

Thank you for sharing those!
Comment 13 jospezial 2023-06-26 07:19:12 UTC
firefox works now on opensuse tumbleweed on old CPUs that have no AVX.

Changelog:
2023-06-20 - Andreas Stieger <Andreas.Stieger@gmx.de>
- Mozilla Firefox 114.0.2:
* Several crash fixes
* Web Extensions: Fixes for 114 regressions in Native Messaging
support

2023-06-20 - Wolfgang Rosenauer <wr@rosenauer.org>
- do not enable LTO as it caused crashes now (boo#1212101)


The GCC bug develops on.
Comment 14 Larry the Git Cow gentoo-dev 2023-07-04 16:32:05 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=03ee26bcb2e7fece7f04f18f39c3cd153f06ce5d

commit 03ee26bcb2e7fece7f04f18f39c3cd153f06ce5d
Author:     Joonas Niilola <juippis@gentoo.org>
AuthorDate: 2023-07-04 16:30:32 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2023-07-04 16:32:02 +0000

    www-client/firefox: add 115.0
    
     - drop ~ppc64 keyword due to patches not applying before a rebase.
    
    Bug: https://bugs.gentoo.org/908297
    Bug: https://bugs.gentoo.org/908979
    Bug: https://bugs.gentoo.org/908412
    Bug: https://bugs.gentoo.org/908992
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 www-client/firefox/Manifest             |  101 +++
 www-client/firefox/firefox-115.0.ebuild | 1458 +++++++++++++++++++++++++++++++
 2 files changed, 1559 insertions(+)