Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Jan 2020 08:51:49 -0800
From:      David Wolfskill <david@catwhisker.org>
To:        gecko@freebsd.org
Subject:   www/firefox: Segmentation fault (core dumped) [firefox-72.0.2_1,1]
Message-ID:  <20200126165149.GV1292@albert.catwhisker.org>

next in thread | raw e-mail | index | archive | help

--ZmhFiefXzlUVJ9B6
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

This is on my laptop; yesterday, firefox worked.  It was running:

FreeBSD g1-55.catwhisker.org 12.1-STABLE FreeBSD 12.1-STABLE #586 r357111M/=
357113: Sat Jan 25 03:38:42 PST 2020     root@g1-55.catwhisker.org:/common/=
S1/obj/usr/src/amd64.amd64/sys/CANARY  amd64 1201510 1201510

Ports (head) had been updated to r524026, and www/firefox was at
firefox-72.0.2,1.

(The kernel "CANARY" includes GENERIC; removes support for some
devices I'm unlikely to have on the laptop, such as ATAPI tape
drives; adds SMB Bus & I2C support; add IPFW without "default to
accept" support, and add DEBUG_MEMGUARD.)


This morning, I updated the base system to:

FreeBSD g1-55.catwhisker.org 12.1-STABLE FreeBSD 12.1-STABLE #587 r357132M/=
357143: Sun Jan 26 03:33:49 PST 2020     root@g1-55.catwhisker.org:/common/=
S1/obj/usr/src/amd64.amd64/sys/CANARY  amd64 1201510 1201510

and ports (head) to r524169.  This involved several updates, one of which
was www/firefox; here is the list:

=3D=3D=3D>>> The following actions were performed:
        Upgrade of usbids-20191105 to usbids-20200109
        Upgrade of aom-1.0.0.2985 to aom-1.0.0.3002
        Upgrade of ca_root_nss-3.49.1 to ca_root_nss-3.49.2
        Upgrade of libuv-1.34.1 to libuv-1.34.2
        Upgrade of pciids-20191223 to pciids-20200125
        Upgrade of qtchooser-66 to qtchooser-66_1
        Upgrade of re2-20191201 to re2-20200101
        Upgrade of ffmpeg-4.2.2_1,1 to ffmpeg-4.2.2_3,1
        Upgrade of lensfun-0.3.2_2 to lensfun-0.3.95
        Upgrade of libpci-3.6.2 to libpci-3.6.3
        Upgrade of sqlite3-3.30.1 to sqlite3-3.31.0
        Upgrade of nss-3.49.1 to nss-3.49.2
        Upgrade of qt5-qmake-5.13.2_1 to qt5-qmake-5.13.2_2
        Upgrade of qt5-buildtools-5.13.2 to qt5-buildtools-5.13.2_1
        Upgrade of qt5-core-5.13.2 to qt5-core-5.13.2_1
        Upgrade of qt5-dbus-5.13.2 to qt5-dbus-5.13.2_1
        Upgrade of qt5-xmlpatterns-5.13.2 to qt5-xmlpatterns-5.13.2_1
        Installation of devel/evdev-proto (evdev-proto-5.3)
        Upgrade of qt5-gui-5.13.2_2 to qt5-gui-5.13.2_3
        Upgrade of qt5-widgets-5.13.2 to qt5-widgets-5.13.2_1
        Upgrade of qt5-declarative-5.13.2 to qt5-declarative-5.13.2_1
        Upgrade of darktable-3.0.0 to darktable-3.0.0_1
        Installation of audio/celt (celt-0.11.3_3)
        Installation of audio/libsamplerate (libsamplerate-0.1.9)
        Installation of audio/jack (jackit-0.125.0_9)
        Installation of databases/py-sqlite3@py27 (py27-sqlite3-2.7.17_7)
        Installation of devel/autoconf213 (autoconf213-2.13.000227_7)
        Installation of security/libssh2 (libssh2-1.8.2,3)
        Installation of devel/libgit2 (libgit2-0.28.4)
        Installation of lang/rust (rust-1.40.0)
        Installation of devel/rust-cbindgen (rust-cbindgen-0.12.2)
        Upgrade of firefox-72.0.2,1 to firefox-72.0.2_1,1
        Upgrade of qt5-linguisttools-5.13.2 to qt5-linguisttools-5.13.2_1

In order to see what was going on, I tried invoking firefox from
the command line; here's what I see:

g1-55(12.1-S)[1] firefox
JavaScript error: resource://gre/modules/XULStore.jsm, line 66: Error: Can'=
t find profile directory.
JavaScript error: resource://gre/modules/XULStore.jsm, line 66: Error: Can'=
t find profile directory.
JavaScript error: resource://gre/modules/XULStore.jsm, line 66: Error: Can'=
t find profile directory.
JavaScript error: resource://gre/modules/XULStore.jsm, line 66: Error: Can'=
t find profile directory.
JavaScript error: resource://gre/modules/XULStore.jsm, line 66: Error: Can'=
t find profile directory.
JavaScript error: resource://gre/modules/XULStore.jsm, line 66: Error: Can'=
t find profile directory.
JavaScript error: resource://gre/modules/XULStore.jsm, line 66: Error: Can'=
t find profile directory.
JavaScript error: resource://gre/modules/XULStore.jsm, line 66: Error: Can'=
t find profile directory.
JavaScript error: resource://gre/modules/XULStore.jsm, line 66: Error: Can'=
t find profile directory.
JavaScript error: resource://gre/modules/XULStore.jsm, line 66: Error: Can'=
t find profile directory.

# [dhw] At this point, a window pops up to ask me which profile I
# [dhw] wish to use -- I normally have a couple of instances of firefox
# [dhw] running concurrently, each with its own profile; for this, I'll
# [dhw] only us one, and I'll create a new one, fresh for this exercise,
# [dhw] so there should be no "pollution" from a krufty old profile.

# [dhw] I created a profile called "test_ff" for this.

1580055327921   addons.webextension.doh-rollout@mozilla.org     WARN    Loa=
ding extension 'doh-rollout@mozilla.org': Reading manifest: Invalid extensi=
on permission: networkStatus
1580055328054   addons.webextension.screenshots@mozilla.org     WARN    Loa=
ding extension 'screenshots@mozilla.org': Reading manifest: Invalid extensi=
on permission: mozillaAddons
1580055328055   addons.webextension.screenshots@mozilla.org     WARN    Loa=
ding extension 'screenshots@mozilla.org': Reading manifest: Invalid extensi=
on permission: telemetry
1580055328055   addons.webextension.screenshots@mozilla.org     WARN    Loa=
ding extension 'screenshots@mozilla.org': Reading manifest: Invalid extensi=
on permission: resource://pdf.js/
1580055328055   addons.webextension.screenshots@mozilla.org     WARN    Loa=
ding extension 'screenshots@mozilla.org': Reading manifest: Invalid extensi=
on permission: about:reader*
Segmentation fault (core dumped)

# [dhw] Reality-checking a few things:

g1-55(12.1-S)[2] pkg info -o firefox\*
firefox-72.0.2_1,1             www/firefox
g1-55(12.1-S)[3] file `which firefox`
/usr/local/bin/firefox: symbolic link to /usr/local/lib/firefox/firefox
g1-55(12.1-S)[4] file -L `which firefox`
/usr/local/bin/firefox: ELF 64-bit LSB shared object, x86-64, version 1 (Fr=
eeBSD), dynamically linked, interpreter /libexec/ld-elf.so.1, for FreeBSD 1=
2.1 (1201510), FreeBSD-style, BuildID[sha1]=3D5237d7df546595f30dac526bbc5d0=
072cdecc457, not stripped
g1-55(12.1-S)[5] gdb /usr/local/lib/firefox/firefox firefox.core=20
GNU gdb (GDB) 8.3.1 [GDB v8.3.1 for FreeBSD]
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.htm=
l>
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-portbld-freebsd12.1".
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 /usr/local/lib/firefox/firefox...
(No debugging symbols found in /usr/local/lib/firefox/firefox)
[New LWP 102075]
[New LWP 101309]
[New LWP 100185]
[New LWP 100396]
[New LWP 100401]
[New LWP 100411]
[New LWP 100417]
[New LWP 100430]
[New LWP 100433]
[New LWP 100453]
[New LWP 100491]
[New LWP 100533]
[New LWP 100551]
[New LWP 100556]
[New LWP 100732]
[New LWP 100784]
[New LWP 100820]
[New LWP 100831]
[New LWP 100606]
[New LWP 100841]
[New LWP 101563]
[New LWP 101590]
[New LWP 101688]
[New LWP 101703]
[New LWP 101756]
[New LWP 101823]
[New LWP 101876]
[New LWP 101877]
[New LWP 101878]
[New LWP 101897]
[New LWP 102065]
[New LWP 102066]
[New LWP 102068]
[New LWP 102072]
[New LWP 102093]
[New LWP 102094]
[New LWP 102095]
[New LWP 102096]
[New LWP 102097]
[New LWP 102098]
[New LWP 102099]
[New LWP 102100]
[New LWP 102101]
Core was generated by `firefox'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00000008013da0fa in thr_kill () from /lib/libc.so.7
[Current thread is 1 (LWP 102075)]
(gdb) bt
#0  0x00000008013da0fa in thr_kill () at /lib/libc.so.7
#1  0x00000008013d8534 in raise () at /lib/libc.so.7
#2  0x0000000809325155 in nsProfileLock::FatalSignalHandler(int, __siginfo*=
, void*) () at /usr/local/lib/firefox/libxul.so
#3  0x0000000809d4d98a in WasmTrapHandler(int, __siginfo*, void*) ()
    at /usr/local/lib/firefox/libxul.so
#4  0x000000080120b3be in  () at /lib/libthr.so.3
#5  0x000000080120a97f in  () at /lib/libthr.so.3
#6  0x00007ffffffff193 in <signal handler called> ()
#7  0x00000008063f72a0 in (anonymous namespace)::DatabasePathFromWALPath(ch=
ar const*) () at /usr/local/lib/firefox/libxul.so
#8  0x00000008063ef3f3 in (anonymous namespace)::xOpen(sqlite3_vfs*, char c=
onst*, sqlite3_file*, int, int*) () at /usr/local/lib/firefox/libxul.so
#9  0x000000080c3fdcc9 in  () at /usr/local/lib/libsqlite3.so.0
#10 0x000000080c3d6319 in  () at /usr/local/lib/libsqlite3.so.0
#11 0x000000080c41a3d0 in  () at /usr/local/lib/libsqlite3.so.0
#12 0x000000080c3eb3ef in  () at /usr/local/lib/libsqlite3.so.0
#13 0x000000080c464101 in  () at /usr/local/lib/libsqlite3.so.0
#14 0x000000080c43588c in  () at /usr/local/lib/libsqlite3.so.0
#15 0x000000080c3e4051 in  () at /usr/local/lib/libsqlite3.so.0
#16 0x000000080c42b1ba in  () at /usr/local/lib/libsqlite3.so.0
#17 0x000000080c3e297f in  () at /usr/local/lib/libsqlite3.so.0
#18 0x000000080c3e1455 in sqlite3_exec () at /usr/local/lib/libsqlite3.so.0
#19 0x00000008063e95f9 in mozilla::storage::Connection::executeSql(sqlite3*=
, char const*) () at /usr/local/lib/firefox/libxul.so
#20 0x00000008063e8d5f in mozilla::storage::Connection::initializeInternal(=
) () at /usr/local/lib/firefox/libxul.so
#21 0x00000008063e933f in mozilla::storage::Connection::initialize(nsIFileU=
RL*) () at /usr/local/lib/firefox/libxul.so
#22 0x00000008063fa6f6 in mozilla::storage::Service::OpenDatabaseWithFileUR=
L(nsIFileURL*, mozIStorageConnection**) () at /usr/local/lib/firefox/libxul=
=2Eso
#23 0x0000000807db1a6d in nsresult mozilla::dom::indexedDB::(anonymous name=
space)::OpenDatabaseAndHandleBusy<nsCOMPtr<nsIFileURL> >(mozIStorageService=
*, nsCOMPtr<nsIFileURL>, mozIStorageConnection**) () at /usr/local/lib/fire=
fox/libxul.so
#24 0x0000000807db145e in mozilla::dom::indexedDB::(anonymous namespace)::G=
etStorageConnection(nsIFile*, long, unsigned int, mozIStorageConnection**) =
() at /usr/local/lib/firefox/libxul.so
#25 0x0000000807db0d01 in mozilla::dom::indexedDB::(anonymous namespace)::T=
ransactionDatabaseOperationBase::RunOnConnectionThread() () at /usr/local/l=
ib/firefox/libxul.so
#26 0x0000000807db06ee in mozilla::dom::indexedDB::(anonymous namespace)::T=
ransactionDatabaseOperationBase::Run() () at /usr/local/lib/firefox/libxul.=
so
#27 0x0000000805b9d68c in nsThread::ProcessNextEvent(bool, bool*) () at /us=
r/local/lib/firefox/libxul.so
#28 0x0000000805ba01cb in NS_ProcessNextEvent(nsIThread*, bool) () at /usr/=
local/lib/firefox/libxul.so
#29 0x0000000807da7cb4 in mozilla::dom::indexedDB::(anonymous namespace)::C=
onnectionPool::ThreadRunnable::Run() () at /usr/local/lib/firefox/libxul.so
#30 0x0000000805b9d68c in nsThread::ProcessNextEvent(bool, bool*) () at /us=
r/local/lib/firefox/libxul.so
#31 0x0000000805ba01cb in NS_ProcessNextEvent(nsIThread*, bool) () at /usr/=
local/lib/firefox/libxul.so
#32 0x0000000805fe7138 in mozilla::ipc::MessagePumpForNonMainThreads::Run(b=
ase::MessagePump::Delegate*) () at /usr/local/lib/firefox/libxul.so
#33 0x0000000805fa1948 in MessageLoop::Run() () at /usr/local/lib/firefox/l=
ibxul.so
#34 0x0000000805b9b450 in nsThread::ThreadFunc(void*) () at /usr/local/lib/=
firefox/libxul.so
#35 0x0000000803ddea6d in  () at /usr/local/lib/libnspr4.so
#36 0x0000000801205736 in  () at /lib/libthr.so.3
#37 0x0000000000000000 in  ()
(gdb)=20

g1-55(12.1-S)[6] ldd /usr/local/lib/firefox/firefox
/usr/local/lib/firefox/firefox:
        libc++.so.1 =3D> /usr/lib/libc++.so.1 (0x8006d6000)
        libcxxrt.so.1 =3D> /lib/libcxxrt.so.1 (0x8007a4000)
        libm.so.5 =3D> /lib/libm.so.5 (0x8007c4000)
        libgcc_s.so.1 =3D> /lib/libgcc_s.so.1 (0x800e00000)
        libthr.so.3 =3D> /lib/libthr.so.3 (0x800e19000)
        libc.so.7 =3D> /lib/libc.so.7 (0x80024b000)
g1-55(12.1-S)[7]=20

As noted, sqlite3 was also updated; as it's mentioned in the above
backtrace, I (also) note that its update included a new option
(TRUSTED_SCHEMA_DESC).  As that defaulted to off, I left it off.

All that said, I retrieved a package for firefox-72.0.2,1 from my
package-builder machine and tried installing that (replacing the
built firefox-72.0.2_1,1): it also terminated similarly.  So I
suspect that the fundamental issue may not be firefox at all.

Finally, I note that chrome still seems to be working.  I don't
have any other graphical Web browsers installed on the machine just
now.

Any suggestions for resolving this?

Thanks!

Peace,
david
--=20
David H. Wolfskill				david@catwhisker.org
"Now, with me, there's no lying." -- Donald J. Trump   ["??!?" -- me]

See http://www.catwhisker.org/~david/publickey.gpg for my public key.

--ZmhFiefXzlUVJ9B6
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQGTBAEBCgB9FiEE4owz2QxMJyaxAefyQLJg+bY2PckFAl4tw6VfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEUy
OEMzM0Q5MEM0QzI3MjZCMTAxRTdGMjQwQjI2MEY5QjYzNjNEQzkACgkQQLJg+bY2
Pcn4OQf/aGNzr+MYOB4pz4h3OseIEcWE/smsOCeOuxKja0R8IqX+dxpdQf0485AG
2x9PqBkzHEAzKjEuWpcHh6AiWQQD7lQ0+y+e53qz54B+hXpJr2sDgL+D8uWfwI4q
zGHmSg0w+AvaoMrR8B75MNjCbpYLJ0lXWOhKxTL0ixAkLZTdP4A/CkOQlmSZyqLW
rdl3xnCne6dlmQaRI5fFZ0GI367v3nvJaewiA4bu66GummmEbv1lSSVjBij845Tr
FMKqa2oG10UgF/7BNun5NS9cnkil/NFRnFxIObThsr4j7gv9mvkyRqECa108AZMr
JED1gJWYRfunaVtkoUchKE7LOgRZWQ==
=p+Jt
-----END PGP SIGNATURE-----

--ZmhFiefXzlUVJ9B6--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20200126165149.GV1292>