SIGPIPE and DBus

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


Hi,

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
applications?
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/libc.so.6
   #5  0xb790ff8e in dbus_malloc () from /usr/lib/libdbus-1.so.3
   #6  0xb790fff7 in dbus_malloc () from /usr/lib/libdbus-1.so.3
   #7  0xb7907c7b in dbus_threads_init () from /usr/lib/libdbus-1.so.3
   #8  0xb7907ef1 in dbus_threads_init () from /usr/lib/libdbus-1.so.3
   #9  0xb79064cc in dbus_threads_init () from /usr/lib/libdbus-1.so.3
   #10 0xb78f241b in dbus_connection_set_watch_functions () from
/usr/lib/libdbus-1.so.3
   #11 0xb78f24db in dbus_connection_set_watch_functions () from
/usr/lib/libdbus-1.so.3
   #12 0xb78f4596 in dbus_connection_open () from /usr/lib/libdbus-1.so.3
   #13 0xb78f4787 in dbus_connection_send_preallocated () from
/usr/lib/libdbus-1.so.3
   #14 0xb78f480a in dbus_connection_send () from /usr/lib/libdbus-1.so.3
   #15 0xb792162a in dbus_g_connection_register_g_object () from
/usr/lib/libdbus-glib-1.so.2
   #16 0xb794498b in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
   #17 0xb7954f2d in g_signal_chain_from_overridden () from
/usr/lib/libgobject-2.0.so.0
   #18 0xb7956429 in g_signal_emit_valist () from
/usr/lib/libgobject-2.0.so.0
   #19 0xb79565d9 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
   #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
/usr/lib/libdbus-glib-1.so.2
   #23 0xb78ffde4 in dbus_get_local_machine_id () from
/usr/lib/libdbus-1.so.3
   #24 0xb78f2bc4 in dbus_connection_dispatch () from
/usr/lib/libdbus-1.so.3
   #25 0xb791f5bd in dbus_server_setup_with_g_main () from
/usr/lib/libdbus-glib-1.so.2
   #26 0xb787f731 in g_main_context_dispatch () from
/usr/lib/libglib-2.0.so.0
   #27 0xb78827a6 in g_main_context_check () from /usr/lib/libglib-2.0.so.0
   #28 0xb7882b67 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
   #29 0x08055961 in main () at main.c:37
   (gdb) q

Any hints on this issue would be appreciated.

TIA,
Steve
-------------- 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 : http://lists.freedesktop.org/archives/dbus/attachments/20070922/59106131/attachment-0001.bin 


More information about the dbus mailing list