[Bug 216446] editors/libreoffice: sfx2_classification test crashes during build with clang/libc++ 4.0
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sat Jan 28 16:23:32 UTC 2017
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216446
Dimitry Andric <dim at FreeBSD.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |office at FreeBSD.org
--- Comment #6 from Dimitry Andric <dim at FreeBSD.org> ---
I can reproduce it here. It looks like xDocumentProperties (a member of
SfxClassificationHelper::Impl) is simply not initialized properly:
(gdb) print m_xDocumentProperties._pInterface
$17 = (com::sun::star::uno::XInterface *) 0x800abed48 <aImplEmpty_rtl_uString>
E.g. it is a reference to some common "empty string" instance, while it looks
like it is supposed to be of type css::uno::Reference<
css::document::XDocumentProperties > instead.
It is initialized in SwEditShell::SetClassification() like this:
void SwEditShell::SetClassification(const OUString& rName,
SfxClassificationPolicyType eType)
{
SwDocShell* pDocShell = GetDoc()->GetDocShell();
if (!pDocShell)
return;
SfxClassificationHelper aHelper(pDocShell->getDocProperties());
So for some reason, pDocShell->getDocProperties() is returning this "empty
string" value.
I'm putting office@ on CC, maybe somebody who knows LibreOffice has an idea
what is going wrong here? My assumption is that pDocShell is not initialized
properly yet, or some initialization order fiasco is going on.
--
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
More information about the freebsd-office
mailing list