SEGV in dbus-ping-send.c

Vitaly V. Ch vitaly.v.ch at gmail.com
Tue Oct 23 06:16:19 PDT 2007


I receive unexpected SIGSEGV at trying to start dbus-ping-send from
examples.

dbus-ping-send.c is attached.

system slackware-12.0

bash-3.1# gdb ./dbus-ping-send
GNU gdb 6.6
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i486-slackware-linux"...
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) break send_ping
Breakpoint 1 at 0x80487c7: file dbus-ping-send.c, line 44.
(gdb) run
Starting program: /root/projects.izum/dbus.ping/dbus-ping-send

Breakpoint 1, send_ping (bus=0x804b6e8) at dbus-ping-send.c:44
44        message = dbus_message_new_signal ("/com/burtonini/dbus/ping",
(gdb) next
47        dbus_message_append_args (message,
(gdb)

Program received signal SIGSEGV, Segmentation fault.
0xb7cec253 in strlen () from /lib/libc.so.6
(gdb) bt
#0  0xb7cec253 in strlen () from /lib/libc.so.6
#1  0xb7eb2751 in ?? () from /usr/lib/libdbus-1.so.3
#2  0x676e6950 in ?? ()
#3  0x00000061 in ?? ()
#4  0x0000006c in ?? ()
#5  0xbfe8d398 in ?? ()
#6  0xb7dbbff4 in ?? () from /lib/libc.so.6
#7  0xb7dbd120 in ?? () from /lib/libc.so.6
#8  0x0000000c in ?? ()
#9  0xb7eb3a3c in ?? () from /usr/lib/libdbus-1.so.3
#10 0xb7ce7b7e in malloc () from /lib/libc.so.6
#11 0xb7e9f4cc in ?? () from /usr/lib/libdbus-1.so.3
#12 0x0804bb50 in ?? ()
#13 0x00000000 in ?? ()
(gdb) quit
The program is running.  Exit anyway? (y or n) y
bash-3.1#


Log of runing under valgrind is attached also
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freedesktop.org/archives/dbus/attachments/20071023/e8a0e872/attachment.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dbus-ping-send.c
Type: application/octet-stream
Size: 1729 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/dbus/attachments/20071023/e8a0e872/attachment-0002.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: valgrind.log
Type: application/octet-stream
Size: 286928 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/dbus/attachments/20071023/e8a0e872/attachment-0003.obj 


More information about the dbus mailing list