[Libreoffice-bugs] [Bug 129895] LOOL: downloading as pdf causes CRASH
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Thu Jan 30 16:34:41 UTC 2020
https://bugs.documentfoundation.org/show_bug.cgi?id=129895
--- Comment #3 from Martin Milata <martin at martinmilata.cz> ---
Thanks for the NSS pointer! The problem was similar to #121429 in that libnss
tried to load libsoftokn3.so at runtime which it couldn't find, resulting in
segfault.
The reason that the file couldn't be found is that in my systemplate the
library was located under "lib" directory with "lib64" symlink to it. During
the child root initialization this symlink was lost, then NSS tried to look for
the library under "lib64" and failed.
The symlink was lost because in kit/Kit.cpp, the nftw() function is used to
populate child roots with systemplate contents. According to its manual page,
without the FTW_PHYS flag, "symbolic links are followed, but no file is
reported twice". What makes it worse is that the order of the traversal is not
defined so sometimes the right directory existed and sometimes not.
This is not a problem for existing installations because
loolwsd-systemplate-setup creates systemplate without symlinks. Still I think
this source of nondeterminism might bite someone else in the future so I'm
going to submit a patch that changes linkOrCopy to use the FTW_PHYS flag.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20200130/cb4d7366/attachment-0001.htm>
More information about the Libreoffice-bugs
mailing list