community/firefox: segfaults on arm7
firefox-120.0-r0, postmarketOS Edge on Microsoft Surface RT. firefox-119.0.1-r0 worked fine.
(gdb) bt
#0 0x000206e4 in ?? ()
#1 0xb6fb4f3a in do_init_fini (queue=<optimized out>) at ldso/dynlink.c:1606
#2 0xb6fb6686 in dlopen (file=0xbeffcac8 "/usr/lib/firefox/libmozsqlite3.so", mode=257) at ldso/dynlink.c:2219
#3 0x00424a74 in mozilla::GetBootstrap(char const*, mozilla::LibLoadingStrategy) ()
#4 0x00423854 in InitXPCOMGlue(mozilla::LibLoadingStrategy) ()
#5 0x00423374 in main ()
I assumed this is not related to #15512 (closed) since PGO was already disabled on arm7 before the update to 120.0 and is still disabled. However the strace:
...
open("/usr/lib/firefox/libmozsqlite3.so", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 7
fcntl64(7, F_SETFD, FD_CLOEXEC) = 0
statx(7, "", AT_STATX_SYNC_AS_STAT|AT_EMPTY_PATH, STATX_BASIC_STATS, {stx_mask=STATX_BASIC_STATS|STATX_MNT_ID, stx_attributes=0, stx_mode=S_IFREG|0755, stx_size=1106140, ...}) = 0
read(7, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\0\0\0\0004\0\0\0"..., 936) = 936
mmap2(NULL, 1302528, PROT_READ, MAP_PRIVATE, 7, 0) = 0xb6a33000
mmap2(0xb6a53000, 1028096, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 7, 0x10000) = 0xb6a53000
mmap2(0xb6b5d000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 7, 0x10a000) = 0xb6b5d000
mmap2(0xb6b6e000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 7, 0x10b000) = 0xb6b6e000
close(7) = 0
mprotect(0xb6b5d000, 8192, PROT_READ) = 0
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x206e4} ---
+++ killed by SIGSEGV +++
... is exactly the same as this comment so maybe the issue is the same and independent of PGO.
Edited by Arnav Singh