[Bug 35747] Crash on contactPtr->id() and contactPtr is not 0

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Apr 4 10:17:59 CEST 2011


https://bugs.freedesktop.org/show_bug.cgi?id=35747

Olli Salli <ollisal at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
         AssignedTo|telepathy-bugs at lists.freede |jeremias.bosch at gmail.com
                   |sktop.org                   |

--- Comment #1 from Olli Salli <ollisal at gmail.com> 2011-04-04 01:17:58 PDT ---
A dangling pointer or other memory corruption. Now, as Tp::ContactPtr is a
reference-counted shared pointer, unless you're somewhere digging out the bare
pointers from them and/or deleting the pointed-to contacts, both of which would
be incorrect usage, the only way one could have a dangling Tp::ContactPtr is
also memory corruption of the reference count field in the Contact or the
pointer structure itself.

So, could you please run your application in Valgrind (memcheck tool) to spot
the source of the memory corruption? Failing that, could you post a minimal
testcase reproducing this?

One other reason how the reference counting could fail could be use of threads.
All TpQt4 functionality must be used from a single thread only. This includes
even delayed slot connections across threads for Tp::PendingOperation finishes
etc.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.



More information about the telepathy-bugs mailing list