Bug 25051

Summary: invalid unclassed pointer in cast to `TpAccountManager in _tp_account_manager_account_presence_changed_cb
Product: Telepathy Reporter: Guillaume Desmottes <guillaume.desmottes>
Component: tp-glibAssignee: David Laban <alsuren>
Status: RESOLVED FIXED QA Contact: Telepathy bugs list <telepathy-bugs>
Severity: blocker    
Priority: high Keywords: patch
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Bug Depends on:    
Bug Blocks: 24209    

Description Guillaume Desmottes 2009-11-12 08:11:45 UTC
I have this error when I start  test-empathy-account-assistant  (I was not connected and Empathy wasn't running).

(test-empathy-account-assistant:4219): tp-glib/manager-DEBUG: tp_connection_manager_end_introspection: End of introspection, info source 2
(test-empathy-account-assistant:4219): tp-glib/proxy-DEBUG: tp_proxy_borrow_interface_by_id: 0x999e80: org.freedesktop.Telepathy.AccountManager DBusGProxy is 0xbfe420
(test-empathy-account-assistant:4219): tp-glib/proxy-DEBUG: tp_proxy_borrow_interface_by_id: 0x999e80: org.freedesktop.DBus.Properties DBusGProxy is 0xb9fe30
(test-empathy-account-assistant:4219): tp-glib/proxy-DEBUG: tp_proxy_borrow_interface_by_id: 0xc2c000: org.freedesktop.Telepathy.Account DBusGProxy is 0xc2b090
(test-empathy-account-assistant:4219): tp-glib/proxy-DEBUG: tp_proxy_borrow_interface_by_id: 0xc2c000: org.freedesktop.DBus.Properties DBusGProxy is 0xc2b1e0
(test-empathy-account-assistant:4219): tp-glib/proxy-DEBUG: tp_proxy_borrow_interface_by_id: 0xc2c120: org.freedesktop.Telepathy.Account DBusGProxy is 0xc2b250
(test-empathy-account-assistant:4219): tp-glib/proxy-DEBUG: tp_proxy_borrow_interface_by_id: 0xc2c120: org.freedesktop.DBus.Properties DBusGProxy is 0xc2b430
(test-empathy-account-assistant:4219): tp-glib/proxy-DEBUG: tp_proxy_borrow_interface_by_id: 0xc2c240: org.freedesktop.Telepathy.Account DBusGProxy is 0xc2b4a0
(test-empathy-account-assistant:4219): tp-glib/proxy-DEBUG: tp_proxy_borrow_interface_by_id: 0xc2c240: org.freedesktop.DBus.Properties DBusGProxy is 0xc2b5f0
(test-empathy-account-assistant:4219): tp-glib/accounts-DEBUG: _tp_account_got_all_cb: Got whole set of properties for /org/freedesktop/Telepathy/Account/salut/local_2dxmpp/account0
(test-empathy-account-assistant:4219): tp-glib/accounts-DEBUG: _tp_account_got_all_cb: Got whole set of properties for /org/freedesktop/Telepathy/Account/salut/local_2dxmpp/account0
(test-empathy-account-assistant:4219): tp-glib/accounts-DEBUG: _tp_account_got_all_cb: Got whole set of properties for /org/freedesktop/Telepathy/Account/idle/irc/dev20
(test-empathy-account-assistant:4219): tp-glib/accounts-DEBUG: _tp_account_got_all_cb: Got whole set of properties for /org/freedesktop/Telepathy/Account/idle/irc/dev20
(test-empathy-account-assistant:4219): tp-glib/accounts-DEBUG: _tp_account_got_all_cb: Got whole set of properties for /org/freedesktop/Telepathy/Account/gabble/jabber/cassidy_2dtest2_40jabber_2ebelnet_2ebe0
(test-empathy-account-assistant:4219): tp-glib/proxy-DEBUG: tp_proxy_dispose: 0xc2c000
(test-empathy-account-assistant:4219): tp-glib/proxy-DEBUG: tp_proxy_invalidate: 0xc2c000: Proxy unreferenced
(test-empathy-account-assistant:4219): tp-glib/proxy-DEBUG: tp_proxy_signal_connection_proxy_invalidated: 0xc2b100: TpProxy 0xc2c000 invalidated (I have 0xc2c000): Proxy unreferenced
(test-empathy-account-assistant:4219): tp-glib/proxy-DEBUG: tp_proxy_signal_connection_proxy_invalidated: 0xc2b170: TpProxy 0xc2c000 invalidated (I have 0xc2c000): Proxy unreferenced
(test-empathy-account-assistant:4219): tp-glib/proxy-DEBUG: tp_proxy_signal_connection_lost_weak_ref: 0xc2b170: lost weak ref to 0xc2c000
(test-empathy-account-assistant:4219): tp-glib/proxy-DEBUG: tp_proxy_finalize: 0xc2c000
(test-empathy-account-assistant:4219): tp-glib/proxy-DEBUG: tp_proxy_dispose: 0xc2c120
(test-empathy-account-assistant:4219): tp-glib/proxy-DEBUG: tp_proxy_invalidate: 0xc2c120: Proxy unreferenced
(test-empathy-account-assistant:4219): tp-glib/proxy-DEBUG: tp_proxy_signal_connection_proxy_invalidated: 0xc2b2c0: TpProxy 0xc2c120 invalidated (I have 0xc2c120): Proxy unreferenced
(test-empathy-account-assistant:4219): tp-glib/proxy-DEBUG: tp_proxy_signal_connection_proxy_invalidated: 0xc2b330: TpProxy 0xc2c120 invalidated (I have 0xc2c120): Proxy unreferenced
(test-empathy-account-assistant:4219): tp-glib/proxy-DEBUG: tp_proxy_signal_connection_lost_weak_ref: 0xc2b330: lost weak ref to 0xc2c120
(test-empathy-account-assistant:4219): tp-glib/proxy-DEBUG: tp_proxy_finalize: 0xc2c120
(test-empathy-account-assistant:4219): tp-glib/proxy-DEBUG: tp_proxy_dispose: 0x999e80
(test-empathy-account-assistant:4219): tp-glib/proxy-DEBUG: tp_proxy_invalidate: 0x999e80: Proxy unreferenced
(test-empathy-account-assistant:4219): tp-glib/proxy-DEBUG: tp_proxy_signal_connection_proxy_invalidated: 0xb9fae0: TpProxy 0x999e80 invalidated (I have 0x999e80): Proxy unreferenced
(test-empathy-account-assistant:4219): tp-glib/proxy-DEBUG: tp_proxy_signal_connection_lost_weak_ref: 0xb9fae0: lost weak ref to 0x999e80
(test-empathy-account-assistant:4219): tp-glib/proxy-DEBUG: tp_proxy_finalize: 0x999e80
(test-empathy-account-assistant:4219): tp-glib/accounts-DEBUG: _tp_account_got_all_cb: Got whole set of properties for /org/freedesktop/Telepathy/Account/gabble/jabber/cassidy_2dtest2_40jabber_2ebelnet_2ebe0

GLib-GObject-WARNING **: invalid unclassed pointer in cast to `TpAccountManager'


#0  0x00007fffeee8d4b5 in *__GI_raise (sig=<value optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#1  0x00007fffeee90f50 in *__GI_abort () at abort.c:92
#2  0x00007fffef20edfa in IA__g_logv (log_domain=<value optimized out>, log_level=<value optimized out>, format=<value optimized out>, args1=0x7fffffffdcf0)
    at /build/buildd/glib2.0-2.22.2/glib/gmessages.c:549
#3  0x00007fffef20ee93 in IA__g_log (log_domain=0x6219 <Address 0x6219 out of bounds>, log_level=25113, format=0x6 <Address 0x6 out of bounds>) at /build/buildd/glib2.0-2.22.2/glib/gmessages.c:569
#4  0x00007fffef8d441d in IA__g_type_check_instance_cast (type_instance=0x6de680, iface_type=<value optimized out>) at /build/buildd/glib2.0-2.22.2/gobject/gtype.c:3745
#5  0x00007ffff2d8f2e0 in _tp_account_manager_account_presence_changed_cb (account=0x96f240, presence=TP_CONNECTION_PRESENCE_TYPE_OFFLINE, status=0x9629e0 "offline", status_message=0x96ea20 "", 
    user_data=0x6de680) at account-manager.c:897
#6  0x00007fffef8b65ae in IA__g_closure_invoke (closure=0x9747b0, return_value=0x0, n_param_values=4, param_values=0x9656a0, invocation_hint=0x7fffffffdf80)
    at /build/buildd/glib2.0-2.22.2/gobject/gclosure.c:767
#7  0x00007fffef8cb983 in signal_emit_unlocked_R (node=0x96cca0, detail=<value optimized out>, instance=<value optimized out>, emission_return=<value optimized out>, 
    instance_and_params=<value optimized out>) at /build/buildd/glib2.0-2.22.2/gobject/gsignal.c:3247
#8  0x00007fffef8ccd39 in IA__g_signal_emit_valist (instance=0x96f240, signal_id=<value optimized out>, detail=0, var_args=0x7fffffffe170) at /build/buildd/glib2.0-2.22.2/gobject/gsignal.c:2980
#9  0x00007fffef8cd283 in IA__g_signal_emit (instance=0x6219, signal_id=25113, detail=6) at /build/buildd/glib2.0-2.22.2/gobject/gsignal.c:3037
#10 0x00007ffff2d89345 in _tp_account_update (account=0x96f240, properties=0x7c30a0) at account.c:525
#11 0x00007ffff2e09da8 in _tp_cli_dbus_properties_invoke_callback_get_all (self=0x96f240, error=0x0, args=0x7a2ea0, generic_callback=0x7ffff2d89af0 <_tp_account_got_all_cb>, 
    user_data=<value optimized out>, weak_object=0x24) at _gen/tp-cli-generic-body.h:1421
#12 0x00007ffff2e0c8e7 in tp_proxy_pending_call_idle_invoke (p=0x965360) at proxy-methods.c:153
#13 0x00007fffef204bbe in g_main_dispatch (context=0x699710) at /build/buildd/glib2.0-2.22.2/glib/gmain.c:1960
#14 IA__g_main_context_dispatch (context=0x699710) at /build/buildd/glib2.0-2.22.2/glib/gmain.c:2513
#15 0x00007fffef208588 in g_main_context_iterate (context=0x699710, block=<value optimized out>, dispatch=<value optimized out>, self=<value optimized out>) at /build/buildd/glib2.0-2.22.2/glib/gmain.c:2591
#16 0x00007fffef2089e5 in IA__g_main_loop_run (loop=0x9492a0) at /build/buildd/glib2.0-2.22.2/glib/gmain.c:2799
#17 0x00007ffff15f9177 in IA__gtk_main () at /build/buildd/gtk+2.0-2.18.3/gtk/gtkmain.c:1218
#18 0x0000000000413833 in main (argc=1, argv=0x7fffffffe5c8) at test-empathy-account-assistant.c:22
Comment 1 Simon McVittie 2009-11-16 05:46:59 UTC
The signal callbacks connected in _tp_account_manager_account_ready_cb do not ref or weak-ref the TpAccountManager, and are never disconnected.
Comment 3 David Laban 2009-11-23 02:21:02 UTC
Fix merged to master.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.