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/> References: <bug-216446-25061@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D216446 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 =3D (com::sun::star::uno::XInterface *) 0x800abed48 <aImplEmpty_rtl_uSt= ring> E.g. it is a reference to some common "empty string" instance, while it loo= ks 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 =3D 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 initializ= ed properly yet, or some initialization order fiasco is going on. --=20 You are receiving this mail because: You are on the CC list for the bug. You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-216446-25061-qbUdNYPHAR>