cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: SMTP application hangs if CABundleFile points to non-existent path

From: Alona Rossen <arossen_at_opentext.com>
Date: Thu, 17 Feb 2011 16:55:08 -0500

 

A call to smtp_quit() makes smtp_disconnect() make in vain.

 

This is the stack of the hanging process:

 

$> pstack 16211

16211: ./curlSMTP

ff11e238 poll (ffbff160, 1, 3e8)

feddd254 poll (ffbff160, 1, 3e8, 4d5d8d93, 0, 1402d8) + 5c

feecc9e8 Curl_socket_ready (4, ffffffff, 3e8, 1, ffbff148, ffffffff) +
16c

feedabfc Curl_pp_easy_statemach (5e1b0, ffbfede0, 1acd9e, 0, ff00cb58,
5e1d0) + 8c

feeda0f0 smtp_easy_statemach (5ddf8, e, ff00cb58, 5e1b0, e, e) + 1c

feeda5c8 smtp_quit (5ddf8, fffd6170, 29c00, ff00cb58, fffd6158, 0) + 58

feeda60c smtp_disconnect (5ddf8, 0, 0, feeda5ec, 5e1b0, 5ddf8) + 20

feeae8fc Curl_disconnect (5ddf8, 0, 4d, 55680, 8400, ff00cb58) + 11c

feeb1bc0 Curl_connect (4d, ffbff494, ffbff420, ffbff424, 0, 5ddf8) + a0

feebee44 connect_host (55680, ffbff494, 85a0, 0, 0, 1) + 24

feebf108 Curl_do_perform (55680, 0, 1, 0, ff00cb58, 1) + 4c

000114b0 main (1, ffbff57c, 11770, 21800, 28f58, 55680) + 1a8

00010e08 _start (0, 0, 0, 0, 0, 0) + 108

 

 

Libcurl-7.21.3

$ ./configure CC=cc LDFLAGS=-ldl
--with-ssl=/export/home/users/sambuild/ssl --

with-libssh2=/export/home/users/sambuild/CURL_SSH2/ssh2
--prefix=/export/home/us

ers/sambuild/curl723 --enable-static=no

 

 

 

Application shows "QUIT" and hangs in case a fully qualified name of the
certificate file is incorrect:

 

/export/home/sambuild/TESTS/MAIL/SMTPS> ./curlSMTP

* About to connect() to smtp.gmail.com port 587 (#0)

* Trying 209.85.225.109... * connected

* Connected to smtp.gmail.com (209.85.225.109) port 587 (#0)

< 220 mx.google.com ESMTP 8sm2992589iba.10

> EHLO geniosol9

< 250-mx.google.com at your service, [199.85.101.2]

< 250-SIZE 35651584

< 250-8BITMIME

< 250-STARTTLS

< 250-ENHANCEDSTATUSCODES

< 250 PIPELINING

> STARTTLS

< 220 2.0.0 Ready to start TLS

* error setting certificate verify locations:

  CAfile: /____export/home/sambuild/certs/cacert.pem

  CApath: none

 

> QUIT

 

 

The application can be terminated by Ctrl-C.

 

 

Regards,

Alona Rossen

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