cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: how can i deal with the situation of network interruption while transfering data on FTP?

From: Jogeshwar Karthik Akundi <ajkarthik_at_gmail.com>
Date: Thu, 18 Mar 2010 12:36:44 +0530

Hi,
I have a problem with libcurl here.
We use libcurl to talk to a our HTTP server from our client.
We poll our webserver about every minute for updates.

Envorinment: RHEL latest
Previously we were using libcurl dynamic build version 7.20.0 (we compiled
it on our own). The code was running fine.
Just yesterday we switched to using libcurl static version 7.20.0 (we
compiled it again) which links statically to openssl (compiled on our own).

The same code which was previously working suddenly started crashing.
static libcurl with dynamic linking to openssl also crashes.
The crash doesn't happen immediately. We could successfully poll the server
thrice before crashing while polling the 4th time.

The gdb output of the crash is:

Program received signal SIGSEGV, Segmentation fault.
0x08151a1c in addbyter ()
(gdb) bt
#0 0x08151a1c in addbyter ()
#1 0x08151dd2 in dprintf_formatf ()
#2 0x081531cf in curl_mvsnprintf ()
#3 0x08161772 in Curl_failf ()
#4 0x081597d0 in Curl_resolv_timeout ()
#5 0x0d0a0d37 in ?? ()
#6 0x0a0d2a0a in ?? ()

Any pointers as to where the error can be would help us debugging the issue.

Thanks
Karthik

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-03-18