cURL
Haxx ad
libcurl

Shopping cart software, Online file storage, Online photo storage, Hosted shopping cart, Contact management software, Email marketing software, Project management software, Issue tracking software, Online notepad, Web publishing software

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Archives

Re: Seg fault in curl_perform stack trace

From: Kevin Baughman <curb_pks_at_yahoo.com>
Date: Mon, 9 Nov 2009 10:52:23 -0800 (PST)

>>
>> Hi All,
>>
>>I am seeing a seg fault that seems to happen when errors
occur. It is pretty reproducible so I got a valgrind trace of the
issue occuring.
>>I also have a core file:

Also have a core file here is the stack trace. It looks like lower got corrupted.

#0 0x04000832 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
#1 0x045bb396 in poll () from /lib/libc.so.6
#2 0x0498e106 in ?? () from /lib/libnspr4.so
#3 0x0498f13c in ?? () from /lib/libnspr4.so
#4 0x047f7bc2 in ssl_DefRecv (ss=0x7cf2348, buf=0x7cf25c8 "", len=5, flags=0) at ssldef.c:94
#5 0x047f28c6 in ssl3_GatherData (flags=<value optimized out>, gs=<value optimized out>, ss=<value optimized out>) at ssl3gthr.c:90
#6 ssl3_GatherCompleteHandshake (flags=<value optimized out>, gs=<value optimized out>, ss=<value optimized out>) at ssl3gthr.c:195
#7 0x047f54bb in ssl_GatherRecord1stHandshake (ss=0x7cf2348) at sslcon.c:1258
#8 0x047fb6f5 in ssl_Do1stHandshake (ss=0x7cf2348) at sslsecur.c:151
#9 0x047fcda7 in SSL_ForceHandshake (fd=0x796ab20) at sslsecur.c:407
#10 0x047fce77 in SSL_ForceHandshakeWithTimeout (fd=0x796ab20, timeout=30000) at sslsecur.c:428
#11 0x0437abc8 in Curl_nss_connect (conn=0x674e0e0, sockindex=0) at nss.c:1214
#12 0x04371182 in Curl_ssl_connect (conn=0x674e0e0, sockindex=0) at sslgen.c:185
#13 0x043504f9 in Curl_http_connect (conn=0x674e0e0, done=0x2f49ce7e) at http.c:1792
#14 0x043579ae in Curl_protocol_connect (conn=0x674e0e0, protocol_done=0x2f49ce7e) at url.c:3056
#15 0x0435cc7f in setup_conn (protocol_done=<value optimized out>, hostaddr=<value optimized out>, conn=<value optimized out>) at url.c:4690
#16 Curl_connect (protocol_done=<value optimized out>, hostaddr=<value optimized out>, conn=<value optimized out>) at url.c:4766
#17 0x04365a04 in connect_host (conn=<value optimized out>, data=<value optimized out>) at transfer.c:2481
#18 Curl_perform (conn=<value optimized out>, data=<value optimized out>) at transfer.c:2562
#19 0x04366793 in curl_easy_perform (curl=0x301da188) at easy.c:557

(gdb) frame 4
#4 0x047f7bc2 in ssl_DefRecv (ss=0x7cf2348, buf=0x7cf25c8 "", len=5, flags=0) at ssldef.c:94
94 rv = lower->methods->recv(lower, (void *)buf, len, flags, ss->rTimeout);

(gdb) p lower
$4 = (PRFileDesc *) 0xa8

(gdb) p ss
$5 = (sslSocket *) 0x7cf2348
(gdb) p ss->fd
$6 = (PRFileDesc *) 0x796ab20
(gdb) p ss->fd->lower
$7 = (PRFileDesc *) 0x2fd8ae18
(gdb) p buf
$8 = (unsigned char *) 0x7cf25c8 ""
(gdb) p ss->rTimeout
$9 = 30000
(gdb) p len
$10 = 5
(gdb)

>>==2499== Process terminating with default action of signal 11 (SIGSEGV): dumping core
>>==2499== Access not within mapped region at address 0x8
>>==2499== at 0x47F7BA1: ssl_DefRecv (ssldef.c:91)
>>==2499== by 0x47F28C5: ssl3_GatherCompleteHandshake (ssl3gthr.c:90)
>>==2499== by 0x47F54BA: ssl_GatherRecord1stHandshake (sslcon.c:1258)
>>==2499== by 0x47FB6F4: ssl_Do1stHandshake (sslsecur.c:151)
>>==2499== by 0x47FCDA6: SSL_ForceHandshake (sslsecur.c:407)
>>==2499== by 0x47FCE76: SSL_ForceHandshakeWithTimeout (sslsecur.c:428)
>>==2499== by 0x437ABC7: Curl_nss_connect (nss.c:1214)
>>==2499== by 0x4371181: Curl_ssl_connect (sslgen.c:185)
>>==2499== by 0x43504F8: Curl_http_connect (http.c:1792)
>>==2499== by 0x43579AD: Curl_protocol_connect (url.c:3056)
>>==2499== by 0x435CC7E: Curl_connect (url.c:4690)
>>==2499== by 0x4365A03: Curl_perform (transfer.c:2481)
>>
>>curl 7.19.6 (i686-pc-linux-gnu) libcurl/7.19.6 NSS/3.12.4.5 zlib/1.2.3 libidn/1.9 libssh2/1.0
>>Protocols: tftp ftp telnet dict ldap ldaps http file https ftps scp sftp
>>Features: GSS-Negotiate IDN IPv6 Largefile SSL libz
>>
>>Thanks,
>>Kevin

________________________________
From: Kevin Baughman <curb_pks_at_yahoo.com>
To: Curl Library <curl-library_at_cool.haxx.se>
Sent: Mon, November 9, 2009 1:46:43 PM
Subject: Seg fault in curl_perform stack trace

Hi All,

I am seeing a seg fault that seems to happen when errors occur. It is pretty reproducible so I got a valgrind trace of the issue occuring. Please let me know if you want any more information from me:

==2499== Process terminating with default action of signal 11 (SIGSEGV): dumping core
==2499== Access not within mapped region at address 0x8
==2499== at 0x47F7BA1: ssl_DefRecv (ssldef.c:91)
==2499== by 0x47F28C5: ssl3_GatherCompleteHandshake (ssl3gthr.c:90)
==2499== by 0x47F54BA: ssl_GatherRecord1stHandshake (sslcon.c:1258)
==2499== by 0x47FB6F4: ssl_Do1stHandshake (sslsecur.c:151)
==2499== by 0x47FCDA6: SSL_ForceHandshake (sslsecur.c:407)
==2499== by 0x47FCE76: SSL_ForceHandshakeWithTimeout (sslsecur.c:428)
==2499== by 0x437ABC7: Curl_nss_connect (nss.c:1214)
==2499== by 0x4371181: Curl_ssl_connect (sslgen.c:185)
==2499== by 0x43504F8: Curl_http_connect (http.c:1792)
==2499== by 0x43579AD: Curl_protocol_connect (url.c:3056)
==2499== by 0x435CC7E: Curl_connect (url.c:4690)
==2499== by 0x4365A03: Curl_perform (transfer.c:2481)

curl 7.19.6 (i686-pc-linux-gnu) libcurl/7.19.6 NSS/3.12.4.5 zlib/1.2.3 libidn/1.9 libssh2/1.0
Protocols: tftp ftp telnet dict ldap ldaps http file https ftps scp sftp
Features: GSS-Negotiate IDN IPv6 Largefile SSL libz

Thanks,
Kevin

      

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2009-11-09

These mail archives are generated by hypermail.

donate! Page updated November 16, 2009.
web site info

File upload with ASP.NET