cURL / Mailing Lists / curl-library / Single Mail

curl-library

Segmentation fault when ftps failed to upload continuously for 20mins up to 8 hours

From: Gran Ville Van Lintao <granvillelintao_at_gmail.com>
Date: Tue, 28 Jun 2011 22:16:14 +0800

Hello,

I basically use curl to upload realtime images to a remote server

and somehow there's a segmentation fault occuring inside.

I attached the stack trace, the way I use it and versions and other software
I integrate it with.

I've also seen a crash bug similar to this in sourceforge. It said use
version

7.21.0 because it already has a lot of fixes in Curl_Expire , but I'm
already using 7.21.1

=========================

APPLICATION-PSEUDO-CODE

=========================

1. init ftp_curl_handle

2. setup the following for ftp_curl_handle

CURLOPT_PORT,

CURLOPT_USERNAME,

CURLOPT_PASSWORD,

CURLOPT_FTP_CREATE_MISSING_DIRS,

CURLOPT_APPEND,

CURLOPT_READFUNCTION,

CURLOPT_CONNECTTIMEOUT,

CURLOPT_TIMEOUT,

CURLOPT_NOSIGNAL,

CURLOPT_FTP_FILEMETHOD,

CURLOPT_CAPATH,

CURLOPT_CRLFILE,

CURLOPT_SSL_VERIFYHOST,

CURLOPT_SSL_VERIFYPEER

3.

while not signaled to exit

  update CURLOPT_READDATA

              CURLOPT_UPLOAD

              CURLOPT_INFILESIZE_LARGE

              CURLOPT_URL

  curl_easy_perform() // after 20 mins - 8 hrs that this fails libcurl will
segfault

end

======================

SEGFAULT BACK TRACE

======================

signal 11 (Segmentation fault), address is 0x108 from 0xb7dc6251

[bt]: (1) /lib/libc.so.6(fwrite+0x31) [0xb7dc6251]

[bt]: (2) /usr/lib/libcurl.so.4 [0xb7ffeb9b]

[bt]: (3) /usr/lib/libcurl.so.4(Curl_debug+0x74) [0xb7ffec34]

[bt]: (4) /usr/lib/libcurl.so.4(Curl_infof+0x69) [0xb7fff6d9]

[bt]: (5) /usr/lib/libcurl.so.4(Curl_expire+0x1ef) [0xb801b80f]

[bt]: (6) /usr/lib/libcurl.so.4(Curl_done+0x2a) [0xb800689a]

[bt]: (7) /usr/lib/libcurl.so.4 [0xb80167d2]

[bt]: (8) /usr/lib/libcurl.so.4(curl_easy_perform+0x56) [0xb8017166]

[bt]: (9) /wcru/bin/wcru-sysd [0x805e779]

[bt]: (10) /wcru/bin/wcru-sysd(realtime_uploader_thread_func+0x3d0)
[0x805f0f0]

[bt]: (11) /lib/libpthread.so.0 [0xb803a369]

[bt]: (12) /lib/libc.so.6(clone+0x5e) [0xb7e3fcfe]

==============

DEPENDENCIES

=============

openssl-0.9.8

c-ares-1.7.1

curl-7.21.1

Linux slax 2.6.27.27

Thanks,

Gran

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-06-28