Subject: Re: bug#38565: Cannot run pre-compiled Firefox

From: Arne Babenhauserheide <[email-masked]>
Date: Wed, 11 Dec 2019 17:07:26 +0100

Efraim Flashner <[email-masked]> writes:

> If it worked until about 2 months ago it might be related to the glibc
> bump. One thing you could do is create a profile from before the
> core-updates merge and LD_PRELOAD from there.

How can I do that? Can I simply specify the commit to use?

> Not an immediate solution, but it would be nice if they provided a
> flatpack image.

Looks like this already exists:
https://firefox-flatpak.mojefedora.cz/

Thank you!

… but it segfaults:

$ guix install flatpak
$ gdb --args /gnu/store/x7gab23a49z1fnyikj6gbrz6hl0widv4-flatpak-1.4.3/bin/.flatpak-real remote-add --from org.mozilla.FirefoxRepo https://firefox-flatpak.mojefedora.cz/org.mozilla.FirefoxRepo.flatpakrepo
GNU gdb (GDB) 8.3.1
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /gnu/store/x7gab23a49z1fnyikj6gbrz6hl0widv4-flatpak-1.4.3/bin/.flatpak-real...
(No debugging symbols found in /gnu/store/x7gab23a49z1fnyikj6gbrz6hl0widv4-flatpak-1.4.3/bin/.flatpak-real)
(gdb) run
Starting program: /gnu/store/x7gab23a49z1fnyikj6gbrz6hl0widv4-flatpak-1.4.3/bin/.flatpak-real remote-add --from org.mozilla.FirefoxRepo https://firefox-flatpak.mojefedora.cz/org.mozilla.FirefoxRepo.flatpakrepo
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/lib/libthread_db.so.1".
[New Thread 0x7ffff68a0700 (LWP 20416)]
[New Thread 0x7ffff609f700 (LWP 20417)]

Note that the directories 

'/var/lib/flatpak/exports/share'
'/home/arne/.local/share/flatpak/exports/share'

are not in the search path set by the XDG_DATA_DIRS environment variable, so
applications installed by Flatpak may not appear on your desktop until the
session is restarted.

[New Thread 0x7ffff550e700 (LWP 20418)]
[New Thread 0x7ffff4d0d700 (LWP 20419)]

Thread 1 ".flatpak-real" received signal SIGSEGV, Segmentation fault.
0x00007ffff73bc9e5 in g_mutex_lock () from /gnu/store/b8pr2k0i2zd07zmb7kpffmcimqi337if-glib-2.60.6/lib/libglib-2.0.so.0
(gdb) bt
#0  0x00007ffff73bc9e5 in g_mutex_lock () from /gnu/store/b8pr2k0i2zd07zmb7kpffmcimqi337if-glib-2.60.6/lib/libglib-2.0.so.0
#1  0x00007ffff7eba137 in _ostree_repo_get_remote () from /gnu/store/w7gmjf76wi66k60jwzxd9nd1s32bp9bq-libostree-2019.3/lib/libostree-1.so.1
#2  0x00007ffff7eba6f3 in ostree_repo_get_remote_option () from /gnu/store/w7gmjf76wi66k60jwzxd9nd1s32bp9bq-libostree-2019.3/lib/libostree-1.so.1
#3  0x00007ffff7ebbecc in ostree_repo_remote_get_url () from /gnu/store/w7gmjf76wi66k60jwzxd9nd1s32bp9bq-libostree-2019.3/lib/libostree-1.so.1
#4  0x000000000045d426 in flatpak_dir_cleanup_remote_for_url_change ()
#5  0x000000000046c778 in flatpak_dir_modify_remote ()
#6  0x000000000041b00f in flatpak_builtin_remote_add ()
#7  0x0000000000419755 in main ()

Best wishes,
Arne