Bug 12675 - [patch] replace invalid assert in dbus_g_proxy_begin_call_internal
Summary: [patch] replace invalid assert in dbus_g_proxy_begin_call_internal
Status: RESOLVED FIXED
Alias: None
Product: dbus
Classification: Unclassified
Component: GLib (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Rob Taylor
QA Contact: John (J5) Palmieri
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-04 05:33 UTC by Kimmo Hämäläinen
Modified: 2008-05-27 11:21 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
proposed patch (558 bytes, patch)
2007-10-04 05:34 UTC, Kimmo Hämäläinen
Details | Splinter Review
new, tested patch (1.11 KB, patch)
2007-10-19 07:15 UTC, Kimmo Hämäläinen
Details | Splinter Review

Description Kimmo Hämäläinen 2007-10-04 05:33:57 UTC
We've had several core dumps for this g_assert(), and I found out why it triggers:  pending == NULL can be returned when the connection has been disconnected (it's in the API documentation). I'll attach a patch.
Comment 1 Kimmo Hämäläinen 2007-10-04 05:34:55 UTC
Created attachment 11898 [details] [review]
proposed patch
Comment 2 Kimmo Hämäläinen 2007-10-19 04:28:56 UTC
The patch needs a small fix: use g_debug() instead of g_error()...
Comment 3 Kimmo Hämäläinen 2007-10-19 07:15:14 UTC
Created attachment 12122 [details] [review]
new, tested patch
Comment 4 Colin Walters 2008-05-27 11:21:09 UTC
I tweaked this patch slightly by removing the g_debug (we don't have any other ones in the code) and adding a comment linking back to this bug.

Thanks for all the patches by the way, and sorry about taking so long to add them!

commit ad35bf13f93d18b0b0e8f930ff79af9dcc1c8508
Author: Colin Walters <walters@verbum.org>
Date:   Tue May 27 14:18:49 2008 -0400

    Bug 12675: Handle disconnected connections in calls (Kimmo Hämäläinen)



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.