Segmentation fault with libsoup/prpl

McDonnell, Dave dmcdonnell at csu.edu.au
Mon Oct 8 21:29:02 EDT 2007


Hi all,

I'm just playing around with writing a protocol plugin that can talk to
Microsoft Communicator web access (Live Communications Server). Just
adding to the nullprpl plugin as a bootstrap.

Disclaimer first, I haven't programmed in C for quite a while, and that
was on Windows so I'm not all that familiar with Glib or linux
programming.

Hoping that I can make use of a third party HTTP library rather than
write HTTP support code myself. Libsoup looks like a good candidate but
I have a problem.

I'm creating a SOUP session in my code, using soup_session_async_new,
this appears to work fine and I have been able to make a simple HTTP
request.

The problem is on shutting down, I get a Segv:
(gdb) bt
#0  0xb729d878 in strcmp () from /lib/libc.so.6
#1  0xb75214f4 in g_str_equal () from /usr/lib/libglib-2.0.so.0
#2  0xb74f83f6 in g_hash_table_lookup () from /usr/lib/libglib-2.0.so.0
#3  0xb74f0945 in g_quark_from_string () from /usr/lib/libglib-2.0.so.0
#4  0xb7bc6879 in gtk_accel_group_disconnect ()
   from /usr/lib/libgtk-x11-2.0.so.0
#5  0xb7dbd6fc in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#6  0x0823da20 in ?? ()
#7  0x08262838 in ?? ()
#8  0x08262470 in ?? ()
#9  0xb757def0 in ?? () from /lib/libpthread.so.0
#10 0xb756b3a0 in ?? () from /usr/lib/libglib-2.0.so.0
#11 0x08262470 in ?? ()
#12 0xbfee46b8 in ?? ()
#13 0xb74f2aa7 in g_datalist_id_set_data_full () from
/usr/lib/libglib-2.0.so.0
Backtrace stopped: frame did not save the PC
(gdb) quit

>From what I can tell this doesn't happen on the finch client (or when
killing pidgin with Ctrl-C on the console).

Any ideas?

Cheers,
Dave




More information about the Devel mailing list