Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 804324 - www-client/microsoft-edge-beta crashes after sys-libs/glibc upgraded to 2.33-r4
Summary: www-client/microsoft-edge-beta crashes after sys-libs/glibc upgraded to 2.33-r4
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Chromium Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-07-26 05:31 UTC by timemars
Modified: 2021-07-27 20:27 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description timemars 2021-07-26 05:31:14 UTC
Same issue described here:
https://forum.endeavouros.com/t/microsoft-edge-beta-crashes-upon-open/16007

The discussion indicates that the issue might be related to /etc/nsswitch.conf:
https://forum.endeavouros.com/t/microsoft-edge-beta-crashes-upon-open/16007/4

/etc/nsswitch.conf belongs to sys-libs/glibc:

# equery b /etc/nsswitch.conf 
 * Searching for /etc/nsswitch.conf ... 
sys-libs/glibc-2.33-r4 (/etc/nsswitch.conf)

Downgrading glibc to 2.33-r3 or using the nsswitch.conf from glibc-2.33-r3 solves the issue.

diff of nsswitch.conf between glibc-2.33-r3 and glibc-2.33-r4:

diff -urN nsswitch.conf-2.33-r*
--- nsswitch.conf-2.33-r3	2021-07-26 14:58:07.975332783 +1000
+++ nsswitch.conf-2.33-r4	2021-07-26 14:47:08.450702909 +1000
@@ -58,11 +58,12 @@
 # See also https://bugs.gentoo.org/773436
 
 # In alphabetical order. Re-order as required to optimize peformance.
+
 aliases:    files
 ethers:     files
 group:      files [SUCCESS=merge] systemd
 gshadow:    files systemd
-hosts:      files dns
+hosts:      mymachines resolve [!UNAVAIL=return] files myhostname dns
 # Allow initgroups to default to the setting for group.
 # initgroups: files
 netgroup:   files

Reproducible: Always

Steps to Reproduce:
1. Upgrade glibc to 2.33-r4
2. Lanuch microsoft-edge-beta from terminal
Actual Results:  
microsoft-edge-beta crashes:

[0726/152546.700635:ERROR:elf_dynamic_array_reader.h(61)] tag not found
[0726/152546.701118:WARNING:minidump_to_upload_parameters.cc(36)] duplicate key guid, discarding value 7894649b9fe340edb76d428266ece673
Segmentation fault (core dumped)

Expected Results:  
microsoft-edge-beta starts successfully

Another discussion from Microsoft Community thinks it could be related to /usr/lib/libnss_resolve.so.2 (which belongs to systemd)

https://techcommunity.microsoft.com/t5/discussions/linux-edge-beta-problem-with-systemd-249/m-p/2550466

equery b /usr/lib64/libnss_resolve.so.2
 * Searching for /usr/lib64/libnss_resolve.so.2 ... 
sys-apps/systemd-249.1 (/usr/lib64/libnss_resolve.so.2)
Comment 1 Stephan Hartmann (RETIRED) gentoo-dev 2021-07-26 06:04:35 UTC
Not much we can do. Upstream has approved the fix for M93 (current dev channel), but no release so far. Microsoft needs to pick this CL:
  https://crrev.com/c/3042177
Comment 2 timemars 2021-07-26 06:50:59 UTC
(In reply to Stephan Hartmann from comment #1)
> Not much we can do. Upstream has approved the fix for M93 (current dev
> channel), but no release so far. Microsoft needs to pick this CL:
>   https://crrev.com/c/3042177

Hi Stephan,

Is it possible to use nsswitch.conf from glibc-2.33-r3 as a temporary workaround? I understand that may not be proper to do so as the bug indeed is in chromium/Edge.
Comment 3 Stephan Hartmann (RETIRED) gentoo-dev 2021-07-26 07:15:38 UTC
(In reply to timemars from comment #2)
> (In reply to Stephan Hartmann from comment #1)
> > Not much we can do. Upstream has approved the fix for M93 (current dev
> > channel), but no release so far. Microsoft needs to pick this CL:
> >   https://crrev.com/c/3042177
> 
> Hi Stephan,
> 
> Is it possible to use nsswitch.conf from glibc-2.33-r3 as a temporary
> workaround? I understand that may not be proper to do so as the bug indeed
> is in chromium/Edge.

floppym suggested in the google-chrome bug:
In the meantime, I would suggest disabling nss-resolve (remove it from /etc/nsswitch.conf).
Comment 4 timemars 2021-07-26 23:25:27 UTC
(In reply to Stephan Hartmann from comment #3)
> (In reply to timemars from comment #2)
> > (In reply to Stephan Hartmann from comment #1)
> > > Not much we can do. Upstream has approved the fix for M93 (current dev
> > > channel), but no release so far. Microsoft needs to pick this CL:
> > >   https://crrev.com/c/3042177
> > 
> > Hi Stephan,
> > 
> > Is it possible to use nsswitch.conf from glibc-2.33-r3 as a temporary
> > workaround? I understand that may not be proper to do so as the bug indeed
> > is in chromium/Edge.
> 
> floppym suggested in the google-chrome bug:
> In the meantime, I would suggest disabling nss-resolve (remove it from
> /etc/nsswitch.conf).

Hi Stephan,

Thanks for the suggestion. I remove the "resolve" option from the hosts line and the issue is fixed.
Comment 5 Larry the Git Cow gentoo-dev 2021-07-27 20:27:56 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3958d7f0251a4f4246a1e6f716e62e827dec40ac

commit 3958d7f0251a4f4246a1e6f716e62e827dec40ac
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: 2021-07-27 19:08:07 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: 2021-07-27 20:27:39 +0000

    sys-libs/glibc: Revbump for Microsoft Edge ...
    
    Closes: https://bugs.gentoo.org/804324
    Package-Manager: Portage-3.0.20, Repoman-3.0.3
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 sys-libs/glibc/Manifest                                       | 1 +
 sys-libs/glibc/{glibc-2.33-r4.ebuild => glibc-2.33-r5.ebuild} | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)