<br><br>---------- Forwarded message ----------<br><span class="gmail_quote">From: <b class="gmail_sendername">Vitaly V. Ch</b> <<a href="mailto:vitaly.v.ch@gmail.com">vitaly.v.ch@gmail.com</a>><br>Date: Oct 23, 2007 4:52 PM
<br>Subject: Re: SEGV in dbus-ping-send.c<br>To: Rafaël Carré <<a href="mailto:funman@videolan.org">funman@videolan.org</a>><br><br></span>Hm. It's success. Thanks<br>But At now I have another troubles with dbus-ping-listen.
<br><br>sources and valgrind log is attached<br><br>bash-3.1# gdb ./dbus-ping-listen<span class="q"><br>GNU gdb 6.6<br>Copyright (C) 2006 Free Software Foundation, Inc.
<br>GDB is free software, covered by the GNU General Public License, and you are<br>welcome to change it and/or distribute copies of it under certain conditions.<br>Type "show copying" to see the conditions.<br>
There is absolutely no warranty for GDB. Type "show warranty" for details.<br>This GDB was configured as "i486-slackware-linux"...<br>Using host libthread_db library "/lib/libthread_db.so.1".
<br></span>(gdb) run<br>Starting program: /root/projects.izum/dbus.ping/dbus-ping-listen <br>Ping received: Ping!<span class="q"><br><br>Program received signal SIGSEGV, Segmentation fault.<br></span>0xb7d4e0c7 in free () from /lib/libc.so.6
<br>(gdb) bt
<br>#0 0xb7d4e0c7 in free () from /lib/libc.so.6<br>#1 0xb7f17e91 in dbus_free () from /usr/lib/libdbus-1.so.3<br>#2 0x080488db in signal_filter (connection=0x804b6e8, message=0x804bb10, user_data=0x804ae88) at dbus-ping-listen.c
:57<br>#3 0xb7efea2c in dbus_connection_dispatch () from /usr/lib/libdbus-1.so.3<br>#4 0xb7f2b56d in ?? () from /usr/lib/libdbus-glib-1.so.2<br>#5 0x0804b6e8 in ?? ()<br>#6 0x0804d4b8 in ?? ()<br>#7 0xbfbbf188 in ?? ()
<br>#8 0xb7e69da2 in g_slist_prepend () from /usr/lib/libglib-2.0.so.0<br>#9 0xb7e51b11 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0<br>#10 0xb7e54b86 in ?? () from /usr/lib/libglib-2.0.so.0<br>#11 0x0804a008 in ?? ()
<br>#12 0x00000000 in ?? ()<span class="q"><br>(gdb) quit<br>The program is running. Exit anyway? (y or n) y<br>bash-3.1#<br><br><br><br></span><div><span class="e" id="q_115cd22ca0a885d4_6"><div><span class="gmail_quote">
On 10/23/07, <b class="gmail_sendername">Rafaël Carré</b> <<a href="mailto:funman@videolan.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
funman@videolan.org</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">-----BEGIN PGP SIGNED MESSAGE-----<br>Hash: SHA1<br>
<br>Vitaly V. Ch a écrit :<br>> I receive unexpected SIGSEGV at trying to start dbus-ping-send from<br>> examples.<br>><br>> dbus-ping-send.c is attached.<br>><br>> system slackware-12.0<br>><br>>
bash-3.1# gdb ./dbus-ping-send<br>> GNU gdb 6.6<br>> Copyright (C) 2006 Free Software Foundation, Inc.<br>> GDB is free software, covered by the GNU General Public License, and you are<br>> welcome to change it and/or distribute copies of it under certain
<br>> conditions.<br>> Type "show copying" to see the conditions.<br>> There is absolutely no warranty for GDB. Type "show warranty" for details.<br>> This GDB was configured as "i486-slackware-linux"...
<br>> Using host libthread_db library "/lib/libthread_db.so.1".<br>> (gdb) break send_ping<br>> Breakpoint 1 at 0x80487c7: file dbus-ping-send.c, line 44.<br>> (gdb) run<br>> Starting program: /root/projects.izum/dbus.ping/dbus-ping-send
<br>><br>> Breakpoint 1, send_ping (bus=0x804b6e8) at dbus-ping-send.c:44<br>> 44 message = dbus_message_new_signal ("/com/burtonini/dbus/ping",<br>> (gdb) next<br>> 47 dbus_message_append_args (message,
<br>> (gdb)<br>><br>> Program received signal SIGSEGV, Segmentation fault.<br>> 0xb7cec253 in strlen () from /lib/libc.so.6<br>> (gdb) bt<br>> #0 0xb7cec253 in strlen () from /lib/libc.so.6<br>> #1 0xb7eb2751 in ?? () from /usr/lib/libdbus-
1.so.3<br>> #2 0x676e6950 in ?? ()<br>> #3 0x00000061 in ?? ()<br>> #4 0x0000006c in ?? ()<br>> #5 0xbfe8d398 in ?? ()<br>> #6 0xb7dbbff4 in ?? () from /lib/libc.so.6<br>> #7 0xb7dbd120 in ?? () from /lib/libc.so.6
<br>> #8 0x0000000c in ?? ()<br>> #9 0xb7eb3a3c in ?? () from /usr/lib/libdbus-1.so.3<br>> #10 0xb7ce7b7e in malloc () from /lib/libc.so.6<br>> #11 0xb7e9f4cc in ?? () from /usr/lib/libdbus-1.so.3<br>> #12 0x0804bb50 in ?? ()
<br>> #13 0x00000000 in ?? ()<br>> (gdb) quit<br>> The program is running. Exit anyway? (y or n) y<br>> bash-3.1#<br>><br>><br>> Log of runing under valgrind is attached also<br>><br><br> char *ping = "Ping!";
<br> dbus_message_append_args (message,<br> DBUS_TYPE_STRING, &ping,<br><br>is the correct way to go<br><br>- --<br>Rafaël Carré<br>-----BEGIN PGP SIGNATURE-----<br>Version: GnuPG v1.4.6 (GNU/Linux)
<br>Comment: Using GnuPG with Mozilla - <a href="http://enigmail.mozdev.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://enigmail.mozdev.org</a><br><br>iD8DBQFHHfeiYWCeGMCv8Q8RAh5xAJ4jTutO7trbdMAOQHQ9shRQLlr6wQCZAYWU
<br>LtIq8fHm9ukaqH4ygohzx+Y=<br>=lhVY<br>-----END PGP SIGNATURE-----
<br></blockquote></div><br>
</span></div><br clear="all">