Date: Sat, 28 Jan 2017 16:23:31 +0000 From: bugzilla-noreply@freebsd.org To: office@FreeBSD.org Subject: [Bug 216446] editors/libreoffice: sfx2_classification test crashes during build with clang/libc++ 4.0 Message-ID: <bug-216446-25061-qbUdNYPHAR@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-216446-25061@https.bugs.freebsd.org/bugzilla/>
index | next in thread | previous in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216446 Dimitry Andric <dim@FreeBSD.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |office@FreeBSD.org --- Comment #6 from Dimitry Andric <dim@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.home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-216446-25061-qbUdNYPHAR>
