Re: BUG reproduced: 6.0.0-RC kernels trigger Firefox snap bug with 6.0.0-rc3 through 6.0.0-rc7

From: Mirsad Todorovac
Date: Wed Oct 12 2022 - 02:05:34 EST


On 10/8/22 18:43, Mirsad Goran Todorovac wrote:

On 10/6/22 14:25, Thorsten Leemhuis wrote:

One more question:

On 06.10.22 14:00, Thorsten Leemhuis wrote:
Were those two vanilla kernels? I asked in #snappy on IRC and was told
that "snapd simply expects some ubuntu bit in patched into the kernel if
it detects that it runs on an official ubuntu install...". This was also
suggested "it probably makes sense to file a but in LP to make the
kernel team aware".
Yes, last time I tried it with git clone from linux_stable on kernel.org
and
config-6.0.0-060000-generic from the official Ubuntu mainline build
You don't want to do that. Better take the config used to build a
working kernel (say 5.19.y) and then build 6.0 with it (after running
"make olddefconfig"), because it might be a new kernel option (say for a
new security technique) that might cause the problem, as explained here:
https://docs.kernel.org/admin-guide/reporting-regressions.html
If I understood well, that would mean building www.kernel.org git
linux_stable
source with Ubuntu's config-5.9.13-051903?
I meant "please download Linux 6.0 (ideally through git, that you have
everything to perform a bisection), add the config from a working kernel
(if config-5.9.13-051903 is one, yeah, then take that) as .config and
then run "make olddefconfig" before compiling and installing the kernel
to see if 6.0 fails with that config that was working.

Hi, Thorsten,

Having done this build with mentioned config-5.19.13-051903-config from
Ubuntu's mainline build and your recommended make option
had produced a kernel that so far did not exhibit the Firefox snap
"tab crash/wrong Verneed record version" bug.

However, the uptime is 1d 18h50min, so it might be too early to draw
a definite general conclusion.

Now, the brave conlusion seems to be that the culprit is one of the modules
added in config-6.0.0-060000-generic.

I am new to this, but is seems that we should look at some compiled-in
modules (147 loadable and 41 compiled-in):

Hi, guys,

I can also confirm the bug with the official RPM build from elrepo stock mainline kernel:

[marvin@pc-mtodorov linux_torvalds]$ uname -rms
Linux 6.0.0-1.el8.elrepo.x86_64 x86_64
[marvin@pc-mtodorov linux_torvalds]$ /snap/bin/firefox &
/snap/firefox/1883/usr/lib/firefox/firefox: /snap/firefox/1883/usr/lib/firefox/firefox: no version information available (required by /snap/firefox/1883/usr/lib/firefox/libmozsandbox.so)
/snap/firefox/1883/usr/lib/firefox/firefox: /snap/firefox/1883/usr/lib/firefox/firefox: no version information available (required by /snap/firefox/1883/usr/lib/firefox/libmozsandbox.so)
/snap/firefox/1883/usr/lib/firefox/firefox: /snap/firefox/1883/usr/lib/firefox/firefox: no version information available (required by /snap/firefox/1883/usr/lib/firefox/libmozsandbox.so)
/snap/firefox/1883/usr/lib/firefox/firefox: /lib/x86_64-linux-gnu/libpthread.so.0: version `' not found (required by /snap/firefox/1883/usr/lib/firefox/libmozsandbox.so)
/snap/firefox/1883/usr/lib/firefox/firefox: /lib/x86_64-linux-gnu/libpthread.so.0: version `' not found (required by /snap/firefox/1883/usr/lib/firefox/libmozsandbox.so)
/snap/firefox/1883/usr/lib/firefox/firefox: /lib/x86_64-linux-gnu/librt.so.1: version `' not found (required by /snap/firefox/1883/usr/lib/firefox/libmozsandbox.so)
/snap/firefox/1883/usr/lib/firefox/firefox: /lib/x86_64-linux-gnu/librt.so.1: version `' not found (required by /snap/firefox/1883/usr/lib/firefox/libmozsandbox.so)
/snap/firefox/1883/usr/lib/firefox/firefox: /lib/x86_64-linux-gnu/libdl.so.2: unsupported version 0 of Verdef record
/snap/firefox/1883/usr/lib/firefox/firefox: /lib/x86_64-linux-gnu/libdl.so.2: unsupported version 0 of Verdef record
/snap/firefox/1883/usr/lib/firefox/firefox: /lib/x86_64-linux-gnu/libdl.so.2: unsupported version 0 of Verdef record
/snap/firefox/1883/usr/lib/firefox/firefox: /lib/x86_64-linux-gnu/libdl.so.2: unsupported version 0 of Verdef record
/snap/firefox/1883/usr/lib/firefox/firefox: error while loading shared libraries: /lib/x86_64-linux-gnu/libdl.so.2: unsupported version 0 of Verneed record
/snap/firefox/1883/usr/lib/firefox/firefox: error while loading shared libraries: /lib/x86_64-linux-gnu/libdl.so.2: unsupported version 0 of Verneed record
/snap/firefox/1883/usr/lib/firefox/firefox: /lib/x86_64-linux-gnu/libdl.so.2: unsupported version 0 of Verdef record
/snap/firefox/1883/usr/lib/firefox/firefox: /lib/x86_64-linux-gnu/libdl.so.2: unsupported version 0 of Verdef record
/snap/firefox/1883/usr/lib/firefox/firefox: /lib/x86_64-linux-gnu/libdl.so.2: unsupported version 0 of Verdef record
/snap/firefox/1883/usr/lib/firefox/firefox: error while loading shared libraries: /lib/x86_64-linux-gnu/libdl.so.2: unsupported version 0 of Verneed record
/snap/firefox/1883/usr/lib/firefox/firefox: /lib/x86_64-linux-gnu/libdl.so.2: unsupported version 0 of Verdef record
/snap/firefox/1883/usr/lib/firefox/firefox: /lib/x86_64-linux-gnu/libdl.so.2: unsupported version 0 of Verdef record
/snap/firefox/1883/usr/lib/firefox/firefox: /lib/x86_64-linux-gnu/libdl.so.2: unsupported version 0 of Verdef record
/snap/firefox/1883/usr/lib/firefox/firefox: error while loading shared libraries: /lib/x86_64-linux-gnu/libdl.so.2: unsupported version 0 of Verneed record
/snap/firefox/1883/usr/lib/firefox/firefox: /lib/x86_64-linux-gnu/libdl.so.2: unsupported version 0 of Verdef record
/snap/firefox/1883/usr/lib/firefox/firefox: /lib/x86_64-linux-gnu/libdl.so.2: unsupported version 0 of Verdef record
/snap/firefox/1883/usr/lib/firefox/firefox: /lib/x86_64-linux-gnu/libdl.so.2: unsupported version 0 of Verdef record
/snap/firefox/1883/usr/lib/firefox/firefox: error while loading shared libraries: /lib/x86_64-linux-gnu/libdl.so.2: unsupported version 0 of Verneed record
/snap/firefox/1883/usr/lib/firefox/firefox: /lib/x86_64-linux-gnu/libdl.so.2: unsupported version 0 of Verdef record
/snap/firefox/1883/usr/lib/firefox/firefox: /lib/x86_64-linux-gnu/libdl.so.2: unsupported version 0 of Verdef record
/snap/firefox/1883/usr/lib/firefox/firefox: /lib/x86_64-linux-gnu/libdl.so.2: unsupported version 0 of Verdef record
/snap/firefox/1883/usr/lib/firefox/firefox: error while loading shared libraries: /lib/x86_64-linux-gnu/libdl.so.2: unsupported version 0 of Verneed record
/snap/firefox/1883/usr/lib/firefox/firefox: /lib/x86_64-linux-gnu/libdl.so.2: unsupported version 0 of Verdef record
/snap/firefox/1883/usr/lib/firefox/firefox: /lib/x86_64-linux-gnu/libdl.so.2: unsupported version 0 of Verdef record
/snap/firefox/1883/usr/lib/firefox/firefox: /lib/x86_64-linux-gnu/libdl.so.2: unsupported version 0 of Verdef record
/snap/firefox/1883/usr/lib/firefox/firefox: error while loading shared libraries: /lib/x86_64-linux-gnu/libdl.so.2: unsupported version 0 of Verneed record
Missing chrome or resource URL: resource://gre/modules/UpdateListener.sys.mjs
/snap/firefox/1883/usr/lib/firefox/firefox: /lib/x86_64-linux-gnu/libdl.so.2: unsupported version 0 of Verdef record
/snap/firefox/1883/usr/lib/firefox/firefox: /lib/x86_64-linux-gnu/libdl.so.2: unsupported version 0 of Verdef record
/snap/firefox/1883/usr/lib/firefox/firefox: /lib/x86_64-linux-gnu/libdl.so.2: unsupported version 0 of Verdef record
/snap/firefox/1883/usr/lib/firefox/firefox: error while loading shared libraries: /lib/x86_64-linux-gnu/libdl.so.2: unsupported version 0 of Verneed record
/snap/firefox/1883/usr/lib/firefox/pingsender: /lib/x86_64-linux-gnu/libdl.so.2: unsupported version 0 of Verdef record
/snap/firefox/1883/usr/lib/firefox/pingsender: /lib/x86_64-linux-gnu/libdl.so.2: unsupported version 0 of Verdef record
/snap/firefox/1883/usr/lib/firefox/pingsender: error while loading shared libraries: /lib/x86_64-linux-gnu/libdl.so.2: unsupported version 0 of Verneed record
/snap/firefox/1883/usr/lib/firefox/firefox: symbol lookup error: /snap/firefox/1883/usr/lib/firefox/libxul.so: undefined symbol: PL_strcmp

[1]+  Done                    /snap/bin/firefox  (wd: ~/Downloads)
(wd now: ~/linux/kernel/linux_torvalds)
[marvin@pc-mtodorov linux_torvalds]$

However, I haven't yet done informing the Ubuntu developers.

I will try to do that later today.

-Mirsad

--
Mirsad Goran Todorovac
Sistem inženjer
Grafički fakultet | Akademija likovnih umjetnosti
Sveučilište u Zagrebu
--
System engineer
Faculty of Graphic Arts | Academy of Fine Arts
University of Zagreb, Republic of Croatia