Guys- I have an occasional problem with multi interface and ftp. I
have two easy handles active, and I remove them from the multi after I
have finished, so I can change a few settings, and then add them back.
this works fine most of them time. but maybe one transfer out of 100,
curl segfaults, either when adding the url to the easy, or when adding
the easy to the multi. valgrind output from the latter case is
attached.

this only happens on certain machines, but with both 7.19.0 and
7.19.5. Other machines have no problem, but always after the message:

Delayed kill of easy handle ...

any ideas on what to look at next?

allan
-- 
"The truth is an offense, but not a sin"
* Delayed kill of easy handle 0x44182e8
other side done?
Loop Sleeping .1 sec
Status: daemon config curl sane scandef=1 batch side=1
Starting scan
Clearing zblocks
Getting side
Getting params
Getting block 
rblock: si0 s65536 u34913
zblock: s512000 u34913 copy
add error buffer to curl object
==1715== 
==1715== Invalid write of size 4
==1715==    at 0x407873C: Curl_setopt (url.c:1400)
==1715==    by 0x40870C3: curl_easy_setopt (easy.c:392)
==1715==    by 0x804B53E: initZcurl (in /root/scanbox/fusb-4.0.0/fusb)
==1715==    by 0x804C546: main (in /root/scanbox/fusb-4.0.0/fusb)
==1715==  Address 0x44183fc is 276 bytes inside a block of size 34,232 free'd
==1715==    at 0x401988C: free (vg_replace_malloc.c:323)
==1715==    by 0x40792E8: Curl_close (url.c:526)
==1715==    by 0x408BADD: curl_multi_remove_handle (multi.c:2218)
==1715==    by 0x804C4BB: main (in /root/scanbox/fusb-4.0.0/fusb)
add error level to curl object
==1715== 
==1715== Invalid write of size 1
==1715==    at 0x4078819: Curl_setopt (url.c:882)
==1715==    by 0x40870C3: curl_easy_setopt (easy.c:392)
==1715==    by 0x804B5A4: initZcurl (in /root/scanbox/fusb-4.0.0/fusb)
==1715==    by 0x804C546: main (in /root/scanbox/fusb-4.0.0/fusb)
==1715==  Address 0x4418559 is 625 bytes inside a block of size 34,232 free'd
==1715==    at 0x401988C: free (vg_replace_malloc.c:323)
==1715==    by 0x40792E8: Curl_close (url.c:526)
==1715==    by 0x408BADD: curl_multi_remove_handle (multi.c:2218)
==1715==    by 0x804C4BB: main (in /root/scanbox/fusb-4.0.0/fusb)
add upload direction to curl object
==1715== 
==1715== Invalid write of size 1
==1715==    at 0x407826C: Curl_setopt (url.c:890)
==1715==    by 0x40870C3: curl_easy_setopt (easy.c:392)
==1715==    by 0x804B614: initZcurl (in /root/scanbox/fusb-4.0.0/fusb)
==1715==    by 0x804C546: main (in /root/scanbox/fusb-4.0.0/fusb)
==1715==  Address 0x4418561 is 633 bytes inside a block of size 34,232 free'd
==1715==    at 0x401988C: free (vg_replace_malloc.c:323)
==1715==    by 0x40792E8: Curl_close (url.c:526)
==1715==    by 0x408BADD: curl_multi_remove_handle (multi.c:2218)
==1715==    by 0x804C4BB: main (in /root/scanbox/fusb-4.0.0/fusb)
==1715== 
==1715== Invalid write of size 4
==1715==    at 0x407827F: Curl_setopt (url.c:893)
==1715==    by 0x40870C3: curl_easy_setopt (easy.c:392)
==1715==    by 0x804B614: initZcurl (in /root/scanbox/fusb-4.0.0/fusb)
==1715==    by 0x804C546: main (in /root/scanbox/fusb-4.0.0/fusb)
==1715==  Address 0x44184e4 is 508 bytes inside a block of size 34,232 free'd
==1715==    at 0x401988C: free (vg_replace_malloc.c:323)
==1715==    by 0x40792E8: Curl_close (url.c:526)
==1715==    by 0x408BADD: curl_multi_remove_handle (multi.c:2218)
==1715==    by 0x804C4BB: main (in /root/scanbox/fusb-4.0.0/fusb)
add url to curl object ftp://192.168.1.1/tmp/0015F245C60E-1244312501-0.jpg
==1715== 
==1715== Invalid read of size 1
==1715==    at 0x4077A75: Curl_setopt (url.c:1492)
==1715==    by 0x40870C3: curl_easy_setopt (easy.c:392)
==1715==    by 0x804B67C: initZcurl (in /root/scanbox/fusb-4.0.0/fusb)
==1715==    by 0x804C546: main (in /root/scanbox/fusb-4.0.0/fusb)
==1715==  Address 0x4418624 is 828 bytes inside a block of size 34,232 free'd
==1715==    at 0x401988C: free (vg_replace_malloc.c:323)
==1715==    by 0x40792E8: Curl_close (url.c:526)
==1715==    by 0x408BADD: curl_multi_remove_handle (multi.c:2218)
==1715==    by 0x804C4BB: main (in /root/scanbox/fusb-4.0.0/fusb)
==1715== 
==1715== Invalid read of size 4
==1715==    at 0x4076D13: setstropt (url.c:306)
==1715==    by 0x4077A8E: Curl_setopt (url.c:1497)
==1715==    by 0x40870C3: curl_easy_setopt (easy.c:392)
==1715==    by 0x804B67C: initZcurl (in /root/scanbox/fusb-4.0.0/fusb)
==1715==    by 0x804C546: main (in /root/scanbox/fusb-4.0.0/fusb)
==1715==  Address 0x44185e8 is 768 bytes inside a block of size 34,232 free'd
==1715==    at 0x401988C: free (vg_replace_malloc.c:323)
==1715==    by 0x40792E8: Curl_close (url.c:526)
==1715==    by 0x408BADD: curl_multi_remove_handle (multi.c:2218)
==1715==    by 0x804C4BB: main (in /root/scanbox/fusb-4.0.0/fusb)
==1715== 
==1715== Invalid free() / delete / delete[]
==1715==    at 0x401988C: free (vg_replace_malloc.c:323)
==1715==    by 0x4076D5A: setstropt (url.c:307)
==1715==    by 0x4077A8E: Curl_setopt (url.c:1497)
==1715==    by 0x40870C3: curl_easy_setopt (easy.c:392)
==1715==    by 0x804B67C: initZcurl (in /root/scanbox/fusb-4.0.0/fusb)
==1715==    by 0x804C546: main (in /root/scanbox/fusb-4.0.0/fusb)
==1715==  Address 0x6396578 is 0 bytes inside a block of size 52 free'd
==1715==    at 0x401988C: free (vg_replace_malloc.c:323)
==1715==    by 0x4076CB3: Curl_safefree (url.c:283)
==1715==    by 0x4076CEF: Curl_freeset (url.c:298)
==1715==    by 0x40792DD: Curl_close (url.c:525)
==1715==    by 0x408BADD: curl_multi_remove_handle (multi.c:2218)
==1715==    by 0x804C4BB: main (in /root/scanbox/fusb-4.0.0/fusb)
==1715== 
==1715== Invalid write of size 4
==1715==    at 0x4076D5B: setstropt (url.c:308)
==1715==    by 0x4077A8E: Curl_setopt (url.c:1497)
==1715==    by 0x40870C3: curl_easy_setopt (easy.c:392)
==1715==    by 0x804B67C: initZcurl (in /root/scanbox/fusb-4.0.0/fusb)
==1715==    by 0x804C546: main (in /root/scanbox/fusb-4.0.0/fusb)
==1715==  Address 0x44185e8 is 768 bytes inside a block of size 34,232 free'd
==1715==    at 0x401988C: free (vg_replace_malloc.c:323)
==1715==    by 0x40792E8: Curl_close (url.c:526)
==1715==    by 0x408BADD: curl_multi_remove_handle (multi.c:2218)
==1715==    by 0x804C4BB: main (in /root/scanbox/fusb-4.0.0/fusb)
==1715== Invalid write of size 4
==1715==    at 0x4076D3E: setstropt (url.c:317)
==1715==    by 0x4077A8E: Curl_setopt (url.c:1497)
==1715==    by 0x40870C3: curl_easy_setopt (easy.c:392)
==1715==    by 0x804B67C: initZcurl (in /root/scanbox/fusb-4.0.0/fusb)
==1715==    by 0x804C546: main (in /root/scanbox/fusb-4.0.0/fusb)
==1715==  Address 0x44185e8 is 768 bytes inside a block of size 34,232 free'd
==1715==    at 0x401988C: free (vg_replace_malloc.c:323)
==1715==    by 0x40792E8: Curl_close (url.c:526)
==1715==    by 0x408BADD: curl_multi_remove_handle (multi.c:2218)
==1715==    by 0x804C4BB: main (in /root/scanbox/fusb-4.0.0/fusb)
==1715== 
==1715== Invalid read of size 4
==1715==    at 0x4077A92: Curl_setopt (url.c:1499)
==1715==    by 0x40870C3: curl_easy_setopt (easy.c:392)
==1715==    by 0x804B67C: initZcurl (in /root/scanbox/fusb-4.0.0/fusb)
==1715==    by 0x804C546: main (in /root/scanbox/fusb-4.0.0/fusb)
==1715==  Address 0x44185e8 is 768 bytes inside a block of size 34,232 free'd
==1715==    at 0x401988C: free (vg_replace_malloc.c:323)
==1715==    by 0x40792E8: Curl_close (url.c:526)
==1715==    by 0x408BADD: curl_multi_remove_handle (multi.c:2218)
==1715==    by 0x804C4BB: main (in /root/scanbox/fusb-4.0.0/fusb)
==1715== 
==1715== Invalid write of size 4
==1715==    at 0x4077A98: Curl_setopt (url.c:1499)
==1715==    by 0x40870C3: curl_easy_setopt (easy.c:392)
==1715==    by 0x804B67C: initZcurl (in /root/scanbox/fusb-4.0.0/fusb)
==1715==    by 0x804C546: main (in /root/scanbox/fusb-4.0.0/fusb)
==1715==  Address 0x4418620 is 824 bytes inside a block of size 34,232 free'd
==1715==    at 0x401988C: free (vg_replace_malloc.c:323)
==1715==    by 0x40792E8: Curl_close (url.c:526)
==1715==    by 0x408BADD: curl_multi_remove_handle (multi.c:2218)
==1715==    by 0x804C4BB: main (in /root/scanbox/fusb-4.0.0/fusb)
added url to curl object
add verbosity to curl object
==1715== 
==1715== Invalid write of size 1
==1715==    at 0x4078BBB: Curl_setopt (url.c:846)
==1715==    by 0x40870C3: curl_easy_setopt (easy.c:392)
==1715==    by 0x804B6D5: initZcurl (in /root/scanbox/fusb-4.0.0/fusb)
==1715==    by 0x804C546: main (in /root/scanbox/fusb-4.0.0/fusb)
==1715==  Address 0x4418568 is 640 bytes inside a block of size 34,232 free'd
==1715==    at 0x401988C: free (vg_replace_malloc.c:323)
==1715==    by 0x40792E8: Curl_close (url.c:526)
==1715==    by 0x408BADD: curl_multi_remove_handle (multi.c:2218)
==1715==    by 0x804C4BB: main (in /root/scanbox/fusb-4.0.0/fusb)
add user/pass to curl object
==1715== 
==1715== Invalid read of size 4
==1715==    at 0x4076D13: setstropt (url.c:306)
==1715==    by 0x4078C1B: Curl_setopt (url.c:1534)
==1715==    by 0x40870C3: curl_easy_setopt (easy.c:392)
==1715==    by 0x804B722: initZcurl (in /root/scanbox/fusb-4.0.0/fusb)
==1715==    by 0x804C546: main (in /root/scanbox/fusb-4.0.0/fusb)
==1715==  Address 0x441860c is 804 bytes inside a block of size 34,232 free'd
==1715==    at 0x401988C: free (vg_replace_malloc.c:323)
==1715==    by 0x40792E8: Curl_close (url.c:526)
==1715==    by 0x408BADD: curl_multi_remove_handle (multi.c:2218)
==1715==    by 0x804C4BB: main (in /root/scanbox/fusb-4.0.0/fusb)
==1715== 
==1715== Invalid free() / delete / delete[]
==1715==    at 0x401988C: free (vg_replace_malloc.c:323)
==1715==    by 0x4076D5A: setstropt (url.c:307)
==1715==    by 0x4078C1B: Curl_setopt (url.c:1534)
==1715==    by 0x40870C3: curl_easy_setopt (easy.c:392)
==1715==    by 0x804B722: initZcurl (in /root/scanbox/fusb-4.0.0/fusb)
==1715==    by 0x804C546: main (in /root/scanbox/fusb-4.0.0/fusb)
==1715==  Address 0x6396898 is 0 bytes inside a block of size 11 free'd
==1715==    at 0x401988C: free (vg_replace_malloc.c:323)
==1715==    by 0x4076CB3: Curl_safefree (url.c:283)
==1715==    by 0x4076CEF: Curl_freeset (url.c:298)
==1715==    by 0x40792DD: Curl_close (url.c:525)
==1715==    by 0x408BADD: curl_multi_remove_handle (multi.c:2218)
==1715==    by 0x804C4BB: main (in /root/scanbox/fusb-4.0.0/fusb)
==1715== 
==1715== Invalid write of size 4
==1715==    at 0x4076D5B: setstropt (url.c:308)
==1715==    by 0x4078C1B: Curl_setopt (url.c:1534)
==1715==    by 0x40870C3: curl_easy_setopt (easy.c:392)
==1715==    by 0x804B722: initZcurl (in /root/scanbox/fusb-4.0.0/fusb)
==1715==    by 0x804C546: main (in /root/scanbox/fusb-4.0.0/fusb)
==1715==  Address 0x441860c is 804 bytes inside a block of size 34,232 free'd
==1715==    at 0x401988C: free (vg_replace_malloc.c:323)
==1715==    by 0x40792E8: Curl_close (url.c:526)
==1715==    by 0x408BADD: curl_multi_remove_handle (multi.c:2218)
==1715==    by 0x804C4BB: main (in /root/scanbox/fusb-4.0.0/fusb)
==1715== 
==1715== Invalid write of size 4
==1715==    at 0x4076D3E: setstropt (url.c:317)
==1715==    by 0x4078C1B: Curl_setopt (url.c:1534)
==1715==    by 0x40870C3: curl_easy_setopt (easy.c:392)
==1715==    by 0x804B722: initZcurl (in /root/scanbox/fusb-4.0.0/fusb)
==1715==    by 0x804C546: main (in /root/scanbox/fusb-4.0.0/fusb)
==1715==  Address 0x441860c is 804 bytes inside a block of size 34,232 free'd
==1715==    at 0x401988C: free (vg_replace_malloc.c:323)
==1715==    by 0x40792E8: Curl_close (url.c:526)
==1715==    by 0x408BADD: curl_multi_remove_handle (multi.c:2218)
==1715==    by 0x804C4BB: main (in /root/scanbox/fusb-4.0.0/fusb)
add connect timeout to curl object
==1715== 
==1715== Invalid write of size 4
==1715==    at 0x407841E: Curl_setopt (url.c:1523)
==1715==    by 0x40870C3: curl_easy_setopt (easy.c:392)
==1715==    by 0x804B768: initZcurl (in /root/scanbox/fusb-4.0.0/fusb)
==1715==    by 0x804C546: main (in /root/scanbox/fusb-4.0.0/fusb)
==1715==  Address 0x4418484 is 412 bytes inside a block of size 34,232 free'd
==1715==    at 0x401988C: free (vg_replace_malloc.c:323)
==1715==    by 0x40792E8: Curl_close (url.c:526)
==1715==    by 0x408BADD: curl_multi_remove_handle (multi.c:2218)
==1715==    by 0x804C4BB: main (in /root/scanbox/fusb-4.0.0/fusb)
add read data ptr to curl object
==1715== 
==1715== Invalid write of size 4
==1715==    at 0x40780D7: Curl_setopt (url.c:1442)
==1715==    by 0x40870C3: curl_easy_setopt (easy.c:392)
==1715==    by 0x804B7AD: initZcurl (in /root/scanbox/fusb-4.0.0/fusb)
==1715==    by 0x804C546: main (in /root/scanbox/fusb-4.0.0/fusb)
==1715==  Address 0x4418408 is 288 bytes inside a block of size 34,232 free'd
==1715==    at 0x401988C: free (vg_replace_malloc.c:323)
==1715==    by 0x40792E8: Curl_close (url.c:526)
==1715==    by 0x408BADD: curl_multi_remove_handle (multi.c:2218)
==1715==    by 0x804C4BB: main (in /root/scanbox/fusb-4.0.0/fusb)
add read callback to curl object
==1715== 
==1715== Invalid write of size 4
==1715==    at 0x4078EBE: Curl_setopt (url.c:825)
==1715==    by 0x40870C3: curl_easy_setopt (easy.c:392)
==1715==    by 0x804B816: initZcurl (in /root/scanbox/fusb-4.0.0/fusb)
==1715==    by 0x804C546: main (in /root/scanbox/fusb-4.0.0/fusb)
==1715==  Address 0x4418448 is 352 bytes inside a block of size 34,232 free'd
==1715==    at 0x401988C: free (vg_replace_malloc.c:323)
==1715==    by 0x40792E8: Curl_close (url.c:526)
==1715==    by 0x408BADD: curl_multi_remove_handle (multi.c:2218)
==1715==    by 0x804C4BB: main (in /root/scanbox/fusb-4.0.0/fusb)
add curl easy handle
==1715== 
==1715== Invalid read of size 4
==1715==    at 0x408BC2A: curl_multi_add_handle (multi.c:413)
==1715==    by 0x804B861: initZcurl (in /root/scanbox/fusb-4.0.0/fusb)
==1715==    by 0x804C546: main (in /root/scanbox/fusb-4.0.0/fusb)
==1715==  Address 0x442089c is 34,228 bytes inside a block of size 34,232 free'd
==1715==    at 0x401988C: free (vg_replace_malloc.c:323)
==1715==    by 0x40792E8: Curl_close (url.c:526)
==1715==    by 0x408BADD: curl_multi_remove_handle (multi.c:2218)
==1715==    by 0x804C4BB: main (in /root/scanbox/fusb-4.0.0/fusb)
Could not add curl easy handle: 2

Reply via email to