Re: Disconnecting a client



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dan Winship wrote:

> That points to some sort of memory-handling error; something's getting
> freed twice or something. Where exactly does it crash? And does running
> under valgrind tell you anything?

Yes, I found a problem with Valgrind but I don't understand it. My
interpretation is that soup_session_queue_message already cleaned up
session. I simply don't understand why. The same code with libsoup 2.2
works perfectly.

<b>UMR</b> ==27669== Invalid read of size 4
==27669==    at 0x410B2F0: g_source_destroy_internal (gmain.c:693)
==27669==    by 0x436ED48: (within /usr/lib/libsoup-2.4.so.1.2.0)
==27669==    by 0x41A3CE2: g_object_unref (gobject.c:2421)
==27669==    by 0x804E4A6: libsoup_async (in
/tmp/build/libsyncml/tests/libsoup)
==27669==    by 0x8051BE0: srunner_run_all (in
/tmp/build/libsyncml/tests/libsoup)
==27669==    by 0x804EE2C: main (in /tmp/build/libsyncml/tests/libsoup)
==27669==  Address 0x47af168 is 24 bytes inside a block of size 52 free'd
==27669==    at 0x4024E3A: free (vg_replace_malloc.c:323)
==27669==    by 0x4113BC5: g_free (gmem.c:190)
==27669==    by 0x410B0F6: g_source_unref_internal (gmain.c:1193)
==27669==    by 0x43699D2: soup_add_completion (in
/usr/lib/libsoup-2.4.so.1.2.0)
==27669==    by 0x436EDD5: (within /usr/lib/libsoup-2.4.so.1.2.0)
==27669==    by 0x436CC01: soup_session_queue_message (in
/usr/lib/libsoup-2.4.so.1.2.0)
==27669==    by 0x804E2A0: libsoup_async (in
/tmp/build/libsyncml/tests/libsoup)
==27669==    by 0x8051BE0: srunner_run_all (in
/tmp/build/libsyncml/tests/libsoup)
==27669==    by 0x804EE2C: main (in /tmp/build/libsyncml/tests/libsoup)

I hope this gives some more details to you.

Best regards

Michael
- --
___________________________________________________________________

Michael Bell                        Humboldt-Universitaet zu Berlin

Tel.: +49 (0)30-2093 2482           ZE Computer- und Medienservice
Fax:  +49 (0)30-2093 2704           Unter den Linden 6
michael bell cms hu-berlin de       D-10099 Berlin
___________________________________________________________________

PGP Fingerprint: 09E4 3D29 4156 2774 0F2C  C643 D8BD 1918 2030 5AAB
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJx7b02L0ZGCAwWqsRAg1pAKCRgTB0MxfmqWWDEM1U5rvBvmqR2QCfTFcM
/1wBaJHFgozE0851IxCT3X4=
=Q257
-----END PGP SIGNATURE-----


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]