[darcs-devel] darcs patch: Libwww new API: waitUrl, copyUrlFirst added; copyUrls ...

David Roundy droundy at darcs.net
Tue Jan 22 15:55:11 UTC 2008


On Tue, Jan 22, 2008 at 08:12:21AM -0700, zooko wrote:
> >If I run under valgrind, I don't get a segfault.
> 
> I would be very surprised if you had a program with memory management
> errors, and you ran it under valgrind, and valgrind didn't print out a
> warning showing you precisely where memory was being accessed incorrectly
> -- even if the program didn't crash.  What did valgrind emit when you
> tried this?

I get this very early, in the initialization state:  (that and some
gethostbyname errors in libc)

==13558==
==13558== Invalid read of size 8
==13558==    at 0x6E0F220: HTNetCall_executeAfter (in /usr/lib/libwwwcore.so.0.1.0)
==13558==    by 0x6E0F54B: HTNet_executeAfterAll (in /usr/lib/libwwwcore.so.0.1.0)
==13558==    by 0x6E0FC49: HTNet_delete (in /usr/lib/libwwwcore.so.0.1.0)
==13558==    by 0x63AB0E5: (within /usr/lib/libwwwhttp.so.0.1.0)
==13558==    by 0x63AC1AA: (within /usr/lib/libwwwhttp.so.0.1.0)
==13558==    by 0x6E0B795: (within /usr/lib/libwwwcore.so.0.1.0)
==13558==    by 0x5F79A8C: EventOrder_executeAndDelete (in /usr/lib/libwwwapp.so.0.1.0)
==13558==    by 0x5F7A4C6: HTEventList_loop (in /usr/lib/libwwwapp.so.0.1.0)
==13558==    by 0x7A3319: libwww_wait_next_url (in /home/droundy/darcs-unstable/darcs)
==13558==    by 0x412949: (within /home/droundy/darcs-unstable/darcs)
==13558==  Address 0x79E4548 is 8 bytes inside a block of size 16 free'd
==13558==    at 0x4A1B46D: free (vg_replace_malloc.c:233)
==13558==    by 0x6F2A43B: HTList_delete (in /usr/lib/libwwwutils.so.0.1.0)
==13558==    by 0x6E0F175: HTNetCall_deleteAfterAll (in /usr/lib/libwwwcore.so.0.1.0)
==13558==    by 0x6E12361: HTRequest_delete (in /usr/lib/libwwwcore.so.0.1.0)
==13558==    by 0x7A359F: terminate_handler (in /home/droundy/darcs-unstable/darcs)
==13558==    by 0x6E0F273: HTNetCall_executeAfter (in /usr/lib/libwwwcore.so.0.1.0)
==13558==    by 0x6E0F54B: HTNet_executeAfterAll (in /usr/lib/libwwwcore.so.0.1.0)
==13558==    by 0x6E0FC49: HTNet_delete (in /usr/lib/libwwwcore.so.0.1.0)
==13558==    by 0x63AB0E5: (within /usr/lib/libwwwhttp.so.0.1.0)
==13558==    by 0x63AC1AA: (within /usr/lib/libwwwhttp.so.0.1.0)
==13558==    by 0x6E0B795: (within /usr/lib/libwwwcore.so.0.1.0)
==13558==    by 0x5F79A8C: EventOrder_executeAndDelete (in /usr/lib/libwwwapp.so.0.1.0)


-- 
David Roundy
Department of Physics
Oregon State University


More information about the darcs-devel mailing list