<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - macOS -- LibreOffice crash within 40s after opening app when online update automatically enabled, or with check from the Extension manager -- https certificate issues"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=127619#c41">Comment # 41</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - macOS -- LibreOffice crash within 40s after opening app when online update automatically enabled, or with check from the Extension manager -- https certificate issues"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=127619">bug 127619</a>
from <span class="vcard"><a class="email" href="mailto:fxcoudert@gmail.com" title="fxcoudert@gmail.com">fxcoudert@gmail.com</a>
</span></b>
<pre>TL,DR: if you're a user affected by this, and have Homebrew installed, you can
run `brew unlink nss` and it should go away. That is a work-around, and the
LibreOffice issue should still be fixed, of course.
-------
It appears not everyone can reproduce this, and I think I know why: it may be
related to the presence of Homebrew (<a href="https://brew.sh">https://brew.sh</a>), and particularly
Homebrew's install of the nss package:
<a href="https://github.com/Homebrew/homebrew-core/issues/49058">https://github.com/Homebrew/homebrew-core/issues/49058</a>
The timing of this first bug report for this issue (2019-09-18) is shortly
after Homebrew modified the way it installs nss (committed by me on 2019-09-07:
<a href="https://github.com/Homebrew/homebrew-core/pull/43959">https://github.com/Homebrew/homebrew-core/pull/43959</a>). Before that date, we did
not install the nss shared libraries in /usr/local/opt; now, we do:
$ ls /usr/local/lib/*nss*.dylib
/usr/local/lib/libevent_openssl-2.1.7.dylib
/usr/local/lib/libnssckbi-testlib.dylib
/usr/local/lib/libnssutil3.dylib
/usr/local/lib/libevent_openssl.dylib
/usr/local/lib/libnssckbi.dylib
/usr/local/lib/libnss3.dylib
/usr/local/lib/libnssdbm3.dylib
Most of Homebrew's software gets its libraries installed in /usr/local/lib,
because it is useful for our users. The reason why nss previously was
blacklisted from this is that it caused a crash in some Firefox extensions:
<a href="https://bugzilla.mozilla.org/show_bug.cgi?id=1142646">https://bugzilla.mozilla.org/show_bug.cgi?id=1142646</a>
I suspect that the issue is the same here: something in LibreOffice must be
loading one of the nss shared libraries, in a way that LibreOffice's own copy
is not loaded, but the /usr/local/lib version is loaded.
-------
To confirm that the bug is triggered by nss libraries in /usr/local/lib, I
opened LibreOffice with nss installed, then triggered an update check =>
LibreOffice crashed (I'd like to provide the logs, but I do not know where they
are).
Then, I ran `brew unlink nss` (which removes the nss libraries from
/usr/local/lib). Starting LibreOffice again, I can now run an update check, and
use the software with no crash.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>