Steve Kreyer steve.kreyer at
Sat Sep 22 01:15:59 PDT 2007


one of my dbus - applications very seldom crashes getting an unhandled
SIGPIPE signal. Since I have no clue if this could be a bug in my
application, I want to ask some dbus - experts on this issue. Iam sure
DBus uses pipes for IPC, doesn't it? Out in the internet, I've read some
mails, which are related to a non d-bus context, that a simple solution
to this is to just ignore the signal via signal(SIGPIPE, SIG_IGN) at
initialization time. Is this a common "practice" in multi threaded d-bus
This is the stack trace of the application:

   Program received signal SIGPIPE, Broken pipe.
   [Switching to Thread -1221552448 (LWP 3301)]
   0xffffe410 in ?? ()
   (gdb) where
   #0  0xffffe410 in ?? ()
   #1  0xbff56a28 in ?? ()
   #2  0x00000002 in ?? ()
   #3  0xbff56a4c in ?? ()
   #4  0xb74e3c4e in writev () from /lib/tls/i686/cmov/
   #5  0xb790ff8e in dbus_malloc () from /usr/lib/
   #6  0xb790fff7 in dbus_malloc () from /usr/lib/
   #7  0xb7907c7b in dbus_threads_init () from /usr/lib/
   #8  0xb7907ef1 in dbus_threads_init () from /usr/lib/
   #9  0xb79064cc in dbus_threads_init () from /usr/lib/
   #10 0xb78f241b in dbus_connection_set_watch_functions () from
   #11 0xb78f24db in dbus_connection_set_watch_functions () from
   #12 0xb78f4596 in dbus_connection_open () from /usr/lib/
   #13 0xb78f4787 in dbus_connection_send_preallocated () from
   #14 0xb78f480a in dbus_connection_send () from /usr/lib/
   #15 0xb792162a in dbus_g_connection_register_g_object () from
   #16 0xb794498b in g_closure_invoke () from /usr/lib/
   #17 0xb7954f2d in g_signal_chain_from_overridden () from
   #18 0xb7956429 in g_signal_emit_valist () from
   #19 0xb79565d9 in g_signal_emit () from /usr/lib/
   #20 0x08051695 in auxin_DeckStatus_set (self=0x8066000,
IN_DeckStatus=1 '\001', error=0xbff573a4) at auxin-slave.c:1885
   #21 0x080548b8 in dbus_glib_marshal__BOOLEAN__UCHAR_POINTER
(closure=0xbff5736c, return_value=0xbff57330, n_param_values=3,
param_values=0x82a4e38, invocation_hint=0x0, marshal_data=0x8051520)
    at auxin-slave-dbus-gen.h:533
   #22 0xb7922cb0 in dbus_g_method_return_error () from
   #23 0xb78ffde4 in dbus_get_local_machine_id () from
   #24 0xb78f2bc4 in dbus_connection_dispatch () from
   #25 0xb791f5bd in dbus_server_setup_with_g_main () from
   #26 0xb787f731 in g_main_context_dispatch () from
   #27 0xb78827a6 in g_main_context_check () from /usr/lib/
   #28 0xb7882b67 in g_main_loop_run () from /usr/lib/
   #29 0x08055961 in main () at main.c:37
   (gdb) q

Any hints on this issue would be appreciated.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3245 bytes
Desc: S/MIME Cryptographic Signature
Url : 

More information about the dbus mailing list