cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Bug in libcurl in multithreaded program

From: Avery Fay <avery_fay_at_symantec.com>
Date: Fri, 24 May 2002 10:59:43 -0400

Unfortunately, the patch didn't work for me. Same backtrace.

Avery Fay

|---------+---------------------------->
| | "Jacky Lam" |
| | <sylam_at_emsoftltd.|
| | com> |
| | |
| | 05/22/2002 10:02 |
| | PM |
| | |
|---------+---------------------------->
>------------------------------------------------------------------------------------------------------------------------------|
  | |
  | To: <curl-library_at_lists.sourceforge.net>, "Avery Fay" <avery_fay_at_symantec.com> |
  | cc: |
  | Subject: Re: Bug in libcurl in multithreaded program |
>------------------------------------------------------------------------------------------------------------------------------|

Hi,

    Can you try this patch to see any help?

Jacky
----- Original Message -----
From: "Avery Fay" <avery_fay_at_symantec.com>
To: <curl-library_at_lists.sourceforge.net>
Sent: Thursday, May 23, 2002 1:22 AM
Subject: Bug in libcurl in multithreaded program

> Hello,
>
> I recently wrote a program using libcurl that starts up a bunch of
threads
> (default: 16) and has each thread repeatedly get files from an FTP server
> and web server (IIS). The program currently runs on Debian linux with
> kernel 2.4.18. libcurl version is 7.9.7 (latest). Program seg faults
after
> a certain amount of time (very fast if the files are small but takes
longer
> for larger files; small files make connections rapidly etc.). Here is a
> backtrace:
>
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 1026 (LWP 21615)]
> 0x4004555c in Curl_hash_clean_with_criterium () from
/usr/lib/libcurl.so.2
> (gdb) bt
> #0 0x4004555c in Curl_hash_clean_with_criterium () from
> /usr/lib/libcurl.so.2
> #1 0x4002f82f in Curl_global_host_cache_dtor () from
/usr/lib/libcurl.so.2
> #2 0x4002f88c in Curl_resolv () from /usr/lib/libcurl.so.2
> #3 0x4003685a in Curl_ftp_done () from /usr/lib/libcurl.so.2
> #4 0x40036b52 in Curl_ftp_done () from /usr/lib/libcurl.so.2
> #5 0x40037410 in Curl_ftp () from /usr/lib/libcurl.so.2
> #6 0x4003b002 in Curl_do () from /usr/lib/libcurl.so.2
> #7 0x40043ca6 in Curl_perform () from /usr/lib/libcurl.so.2
> #8 0x400440bf in curl_easy_perform () from /usr/lib/libcurl.so.2
> #9 0x08048c7c in get_urls (nothing=0x0) at urlgrab.c:117
> #10 0x4001c0ba in pthread_start_thread () from /lib/libpthread.so.0
> #11 0x4001c101 in pthread_start_thread_event () from /lib/libpthread.so.0
> (gdb)
>
> Please CC as I'm not subscribed.
>
> Thanks,
> Avery Fay
>
>
>
> _______________________________________________________________
>
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
>
(See attached file: patch.txt)

_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

  • application/octet-stream attachment: patch.txt
Received on 2002-05-24