Created attachment 863363 [details] emerge --info Hi, after installing dev-libs/nss-3.90 my installed thunderbird-102.11.2 crashed on start with "Program terminated with signal SIGILL, Illegal instruction."
Created attachment 863364 [details] systemd-coredump output
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6a1969b930326da4570e348d4f6879eb7125ca3a commit 6a1969b930326da4570e348d4f6879eb7125ca3a Author: Sam James <sam@gentoo.org> AuthorDate: 2023-06-06 04:32:07 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-06-06 04:32:07 +0000 profiles: mask =dev-libs/nss-3.90 Causes "illegal instruction" (SIGILL) errors for some users, pending investigation. Bug: https://bugs.gentoo.org/907932 Signed-off-by: Sam James <sam@gentoo.org> profiles/package.mask | 5 +++++ 1 file changed, 5 insertions(+)
From josef: ``` Program terminated with signal SIGILL, Illegal instruction. #0 0x00007f734e6883dc in ?? () from /usr/lib64/libc.so.6 [Current thread is 1 (Thread 0x7f733b2be6c0 (LWP 377211))] (gdb) bt #0 0x00007f734e6883dc in () at /usr/lib64/libc.so.6 #1 0x00007f734e63ac42 in raise () at /usr/lib64/libc.so.6 #2 0x00007f7349f6ed24 in () at /usr/lib64/thunderbird/libxul.so #3 0x00007f734abebeac in () at /usr/lib64/thunderbird/libxul.so #4 0x00007f734e63ace0 in <signal handler called> () at /usr/lib64/libc.so.6 #5 0x00007f73396aee9d in fadd (f2=0x7f733b2bc870, f1=0x7f733b2bc850, out=0x7f733b2bc8d0) at verified/curve25519-inline.h:40 #6 fadd0 (f2=0x7f733b2bc870, f1=0x7f733b2bc850, out=0x7f733b2bc8d0) at verified/Hacl_Curve25519_64.c:44 #7 point_add_and_double (q=q@entry=0x7f733b2bc780, p01_tmp1=p01_tmp1@entry=0x7f733b2bc850, tmp2=tmp2@entry=0x7f733b2bc7d0) at verified/Hacl_Curve25519_64.c:136 #8 0x00007f73396af513 in montgomery_ladder (init=0x7f733b2bc780, key=0x7f731e6c7a70 "\275Π\217\033;\346\323l2\323'\223\345\025\346\333\3663\306\363\\\016J\033HIv\353\005C\017", '\345' <repeats 167 times>, <incomplete sequence \345>..., out=0x7f733b2bc780) at verified/Hacl_Curve25519_64.c:216 #9 Hacl_Curve25519_64_scalarmult (out=out@entry=0x7f731e6c7a50 '\345' <repeats 32 times>, "\275Π\217\033;\346\323l2\323'\223\345\025\346\333\3663\306\363\\\016J\033HIv\353\005C\017", '\345' <repeats 135 times>, <incomplete sequence \345>..., priv=0x7f731e6c7a70 "\275Π\217\033;\346\323l2\323'\223\345\025\346\333\3663\306\363\\\016J\033HIv\353\005C\017", '\345' <repeats 167 times>, <incomplete sequence \345>..., pub=<optimized out>) at verified/Hacl_Curve25519_64.c:371 #10 0x00007f73396afc19 in Hacl_Curve25519_64_ecdh (out=0x7f731e6c7a50 '\345' <repeats 32 times>, "\275Π\217\033;\346\323l2\323'\223\345\025\346\333\3663\306\363\\\016J\033HIv\353\005C\017", '\345' <repeats 135 times>, <incomplete sequence \345>..., priv=<optimized out>, pub=<optimized out>) at verified/Hacl_Curve25519_64.c:391 #11 0x00007f73396adfd9 in ec_Curve25519_mul (mypublic=<optimized out>, secret=<optimized out>, basepoint=<optimized out>) at ecl/curve25519_64.c:18 #12 0x00007f733969c3c6 in ec_Curve25519_pt_mul (X=X@entry=0x7f731e6c7918, k=k@entry=0x7f731e6c7930, P=P@entry=0x0) at ecl/ecp_25519.c:121 #13 0x00007f733966a7d9 in ec_NewKey (ecParams=ecParams@entry=0x7f731e6ce020, privKey=privKey@entry=0x7f733b2bcb20, privKeyBytes=privKeyBytes@entry=0x7f731ef5d780 "\275Π\217\033;\346\323l2\323'\223\345\025\346\333\3663\306\363\\\016J\033HIv\353\005C\017", privKeyLen=privKeyLen@entry=32) at ec.c:289 #14 0x00007f733966a943 in EC_NewKey (ecParams=0x7f731e6ce020, privKey=privKey@entry=0x7f733b2bcb20) at ec.c:411 #15 0x00007f733988e170 in NSC_GenerateKeyPair (hSession=1, pMechanism=0x7f733b2bce80, pPublicKeyTemplate=<optimized out>, ulPublicKeyAttributeCount=<optimized out>, pPrivateKeyTemplate=0x7f733b2bcfa0, ulPrivateKeyAttributeCount=<optimized out>, phPublicKey=0x7f733b2bce78, phPrivateKey=0x7f733b2bce70) at pkcs11c.c:5611 #16 0x00007f7342e18526 in PK11_GenerateKeyPairWithOpFlags (slot=slot@entry=0x7f733a8e5400, type=type@entry=4160, param=param@entry=0x7f733b2bd3d0, pubKey=pubKey@entry=0x7f733b2bd3c8, attrFlags=attrFlags@entry=138, opFlags=opFlags@entry=524288, opFlagsMask=526336, wincx=0x7f7321d9fe08) at pk11akey.c:1537 #17 0x00007f7342e1027b in SECKEY_CreateECPrivateKey (param=param@entry=0x7f733b2bd3d0, pubk=pubk@entry=0x7f733b2bd3c8, cx=0x7f7321d9fe08) at seckey.c:218 #18 0x00007f7342f69f25 in ssl_CreateECDHEphemeralKeyPair (ss=ss@entry=0x7f731de15000, ecGroup=0x7f7342f99920 <ssl_named_groups>, keyPair=keyPair@entry=0x7f733b2bd420) at ssl3ecc.c:448 #19 0x00007f7342f6a010 in ssl3_SendECDHClientKeyExchange (ss=ss@entry=0x7f731de15000, svrPubKey=svrPubKey@entry=0x7f731e6d1020) at ssl3ecc.c:192 #20 0x00007f7342f62b2b in ssl3_SendClientKeyExchange (ss=0x7f731de15000) at ssl3con.c:6478 #21 ssl3_SendClientSecondRound (ss=ss@entry=0x7f731de15000) at ssl3con.c:8231 #22 0x00007f7342f652d8 in ssl3_HandleServerHelloDone (ss=0x7f731de15000) at ssl3con.c:8155 #23 ssl3_HandlePostHelloHandshakeMessage (length=0, b=0x7f731e5cd004 'N' <repeats 200 times>..., ss=0x7f731de15000) at ssl3con.c:12715 #24 ssl3_HandleHandshakeMessage (ss=ss@entry=0x7f731de15000, b=b@entry=0x7f731e5cd004 'N' <repeats 200 times>..., length=0, endOfRecord=1) at ssl3con.c:12623 #25 0x00007f7342f67da5 in ssl3_HandleHandshake (origBuf=0x7f731de152c0, ss=0x7f731de15000) at ssl3con.c:12800 #26 ssl3_HandleNonApplicationData (ss=ss@entry=0x7f731de15000, rType=<optimized out>, epoch=<optimized out>, seqNum=<optimized out>, databuf=databuf@entry=0x7f731de152c0) at ssl3con.c:13335 #27 0x00007f7342f6883b in ssl3_HandleRecord (ss=ss@entry=0x7f731de15000, cText=cText@entry=0x7f733b2bd7d0) at ssl3con.c:13680 #28 0x00007f7342f6eabf in ssl3_GatherCompleteHandshake (flags=<optimized out>, ss=<optimized out>) at ssl3gthr.c:561 #29 ssl3_GatherCompleteHandshake (ss=ss@entry=0x7f731de15000, flags=flags@entry=0) at ssl3gthr.c:449 #30 0x00007f7342f75d79 in SSL_ForceHandshake (fd=<optimized out>) at sslsecur.c:417 #31 0x00007f7349d954f1 in () at /usr/lib64/thunderbird/libxul.so #32 0x00007f7346bcb69d in () at /usr/lib64/thunderbird/libxul.so #33 0x00007f7346c02a9c in () at /usr/lib64/thunderbird/libxul.so #34 0x00007f7346c081b0 in () at /usr/lib64/thunderbird/libxul.so #35 0x00007f7346a0030d in () at /usr/lib64/thunderbird/libxul.so #36 0x00007f7346a03fbd in () at /usr/lib64/thunderbird/libxul.so #37 0x00007f7346a0b2ee in () at /usr/lib64/thunderbird/libxul.so #38 0x00007f7346a0cbad in () at /usr/lib64/thunderbird/libxul.so --Type <RET> for more, q to quit, c to continue without paging-- #39 0x00007f73468bd4f7 in () at /usr/lib64/thunderbird/libxul.so #40 0x00007f73468c1faa in () at /usr/lib64/thunderbird/libxul.so #41 0x00007f7346db2318 in () at /usr/lib64/thunderbird/libxul.so #42 0x00007f7346d74eb7 in () at /usr/lib64/thunderbird/libxul.so #43 0x00007f73468ba981 in () at /usr/lib64/thunderbird/libxul.so #44 0x00007f734e2c3abf in _pt_root (arg=0x7f734e330700) at /usr/src/debug/dev-libs/nspr-4.35-r1/nspr-4.35/nspr/pr/src/pthreads/ptthread.c:201 #45 0x00007f734e6866fc in () at /usr/lib64/libc.so.6 #46 0x00007f734e706cac in () at /usr/lib64/libc.so.6 (gdb) (gdb) frame 5 #5 0x00007f73396aee9d in fadd (f2=0x7f733b2bc870, f1=0x7f733b2bc850, out=0x7f733b2bc8d0) at verified/curve25519-inline.h:40 40 __asm__ volatile( ``` This file is new in 3.90: https://github.com/nss-dev/nss/commit/7d84215b4ed8dd09a67b62b72d859b18e8c31985#diff-1e937c376ccf3beace8682eda92b5d148056bd0c9298a1004760c6d12df42651. It's inline asm. There's a relevantish upstream commit in https://github.com/nss-dev/nss/commit/c07c4e073d95a25343cbf56b4a830a71e432869e which fixes bug 907901 at least.
I don't really see how it's in that inline bit, so I think gdb is maybe being misleading / confusing me with the output there.
soap hit it and it's adcx, whoops! https://en.wikipedia.org/wiki/Intel_ADX?useskin=vector
Reported upstream ast https://bugzilla.mozilla.org/show_bug.cgi?id=1836925.
The latest version of proposed fix referenced in the upstream bug report fixes the issue for me.
May not be helpful, but no crash for me with nss-3.90 and thunderbird-102.11.0 (stable) or firefox-113.0.2 (~). This is with an AMD CPU (Ryzen 5 2600). The thunderbird referenced above is newer (~), but my firefox is the latest (~).
(In reply to tka from comment #7) > The latest version of proposed fix referenced in the upstream bug report > fixes the issue for me. Can you give an url to it? Thanks.
(In reply to Vitaliy Perekhovy from comment #9) > (In reply to tka from comment #7) > > The latest version of proposed fix referenced in the upstream bug report > > fixes the issue for me. > > Can you give an url to it? Thanks. https://bugzilla.mozilla.org/show_bug.cgi?id=1836925 -> https://phabricator.services.mozilla.com/D180068 -> https://d2mfgivbiy2fiw.cloudfront.net/file/data/ecovqx7gm3b2ou6qdog7/PHID-FILE-rdumhp7mfqc7fzsf5azc/D180068.diff you can wget the diff and utilize /etc/portage/patches to try it out with nss-3.90 (note that it's currently package.masked)
(In reply to Joonas Niilola from comment #10) > https://d2mfgivbiy2fiw.cloudfront.net/file/data/ecovqx7gm3b2ou6qdog7/PHID- > FILE-rdumhp7mfqc7fzsf5azc/D180068.diff As a second data point, that patch also fixes the issue for me on an AMD FX-9590.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=16ec5117a26f79e42741ba18a1b75fe2fac93269 commit 16ec5117a26f79e42741ba18a1b75fe2fac93269 Author: Joonas Niilola <juippis@gentoo.org> AuthorDate: 2023-07-02 16:46:51 +0000 Commit: Joonas Niilola <juippis@gentoo.org> CommitDate: 2023-07-02 16:46:51 +0000 profiles: unmask nss-3.90, version removed from the tree Closes: https://bugs.gentoo.org/907932 Signed-off-by: Joonas Niilola <juippis@gentoo.org> profiles/package.mask | 5 ----- 1 file changed, 5 deletions(-) https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=76dc2166c56050fbb03b31c7fce26dc4340057c2 commit 76dc2166c56050fbb03b31c7fce26dc4340057c2 Author: Joonas Niilola <juippis@gentoo.org> AuthorDate: 2023-07-02 16:45:03 +0000 Commit: Joonas Niilola <juippis@gentoo.org> CommitDate: 2023-07-02 16:45:03 +0000 dev-libs/nss: add 3.91 Closes: https://bugs.gentoo.org/907932 Closes: https://bugs.gentoo.org/845273 Signed-off-by: Joonas Niilola <juippis@gentoo.org> dev-libs/nss/Manifest | 1 + dev-libs/nss/nss-3.91.ebuild | 414 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 415 insertions(+)
Yes, dev-libs/nss-3.91 works now fine for me. Thanks