[Libreoffice-bugs] [Bug 32561] Crash when moving through database types (File > New > Database, open existing)
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Mon Jan 24 12:03:34 PST 2011
https://bugs.freedesktop.org/show_bug.cgi?id=32561
--- Comment #13 from Noel Power <nopower at novell.com> 2011-01-24 12:03:34 PST ---
without my crummy debug statements the location of the crash in
comphelper/source/property/opropertybag.cxx is shown below
510 // there's a property requested which we do not know
511 if ( m_bAutoAddProperties )
512 {
513 // add the property
514 sal_Int16 nAttributes = PropertyAttribute::BOUND |
PropertyAttribute::REMOVEABLE | PropertyAttribute::MAYBEDEFAULT;
515 addProperty( *pName, nAttributes, pProperty->Value );
516 // rPropInfo is invalid, refetch
517 rPropInfo = getInfoHelper();
*518 *pHandle = rPropInfo.getHandleByName( *pName );
519 continue;
520 }
The valgrind log seems to indicate that the rPropInfo returned from
getInfoHelper has been deleted e.g.
==8524== Invalid read of size 8
==8524== at 0x6CD2BF0:
comphelper::OPropertyBag::impl_setPropertyValues_throw(com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue>
const&) (opropertybag.cxx:528)
==8524== by 0x6CD30D0:
comphelper::OPropertyBag::setPropertyValues(com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue>
const&) (opropertybag.cxx:565)
==8524== by 0x20435004: dbaccess::(anonymous
namespace)::lcl_setPropertyValues_resetOrRemoveOther(com::sun::star::uno::Reference<com::sun::star::beans::XPropertyAccess>
const&, com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue>
const&) (datasource.cxx:931)
[...]
==8524== Address 0x17dc66f0 is 0 bytes inside a block of size 32 free'd
==8524== at 0x4C25F7B: free (in
/usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==8524== by 0x6CD4B0F:
std::auto_ptr<cppu::OPropertyArrayHelper>::reset(cppu::OPropertyArrayHelper*)
(auto_ptr.h:242)
==8524== by 0x6CD2320: comphelper::OPropertyBag::addProperty(rtl::OUString
const&, short, com::sun::star::uno::Any const&) (opropertybag.cxx:368)
but this ( afaics ) doesn't tally with the debug output I get :-/ which seems
to indicate we never access 0x17dc66f0 at ( opropertybag.cxx:528 ) I have to
admit I don't get it :-/// something strange is happening here or I am missing
something obvious
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Libreoffice-bugs
mailing list