cURL / Mailing Lists / curl-library / Single Mail

curl-library

SIGPIPE from gnutls with NOSIGNAL?

From: Brendan Jurd <bj_at_swords.id.au>
Date: Tue, 31 Oct 2006 17:01:58 +1100

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi guys,

Apologies in advance if this is a stupid question, but I'm getting a
SIGPIPE in my application via libcurl, apparently originating in gnutls.
 I am using the option CURLOPT_NOSIGNAL, but this does appear to make
any difference. I have included my backtrace below:

#0 0xb7ac974c in send () from /lib/tls/libc.so.6
#1 0xb79a5c5c in _gnutls_io_write_buffered () from /usr/lib/libgnutls.so.13
#2 0xb79a600a in _gnutls_io_write_buffered2 () from
/usr/lib/libgnutls.so.13
#3 0xb79a1b8d in _gnutls_send_int () from /usr/lib/libgnutls.so.13
#4 0xb79c0d01 in gnutls_alert_send () from /usr/lib/libgnutls.so.13
#5 0xb79a2ef8 in gnutls_bye () from /usr/lib/libgnutls.so.13
#6 0xb7f0e055 in curl_getdate () from /usr/lib/libcurl-gnutls.so.3
#7 0xb7f0e0b9 in curl_getdate () from /usr/lib/libcurl-gnutls.so.3
#8 0xb7f0ecb6 in curl_getdate () from /usr/lib/libcurl-gnutls.so.3
#9 0xb7ef910f in curl_slist_free_all () from /usr/lib/libcurl-gnutls.so.3
#10 0xb7ef9358 in curl_slist_free_all () from /usr/lib/libcurl-gnutls.so.3
#11 0xb7f06106 in curl_mvsnprintf () from /usr/lib/libcurl-gnutls.so.3
#12 0xb7f067a9 in curl_easy_perform () from /usr/lib/libcurl-gnutls.so.3
#13 0x08059195 in curl::easy::download ()
#14 0x0804d92d in main ()

My application makes the same small HTTPS request every 15 seconds. It
will run fine for anywhere between a few minutes and several hours, with
each request normally taking about one second, and then it will appear
to get "stuck" on a particular request for several minutes, and then
SIGPIPE out.

The application is compiled against Debian package libcurl3-gnutls-dev
version 7.15.5-1.

Any guidance would be greatly appreciated. Thanks for your time.

Cheers,
BJ
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFRubV5YBsbHkuyV0RAuUyAJ43vnTheDTco0DFAnvi8CQBhMW/qACgkjs7
nPVCvvG1r87tNS7J4Pg0vyw=
=e4nj
-----END PGP SIGNATURE-----
Received on 2006-10-31