cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Crash with SMTP if easy handle is removed from multi handle early

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 13 Jan 2012 09:31:23 +0100 (CET)

On Thu, 12 Jan 2012, Gokhan Sengun wrote:

> Please do not tell me to run the application with a debugger or valgrind to
> see the backtrace because then the error does not happen because it is
> probably a timing issue with my code causing easy handle to be removed from
> the multi handle.

Even if you just run it with a debugger until it crashes?

> Unfortunately, I do not have enough time to adapt an example code to
> reproduce the issue for easy debugging. However I am almost sure that easy
> handle is removed before pp->conn is set to a valid conn struct.

I'm very curious what the multi state is when you experience this crash.

> Ps: If I have some time available, I will create a test case and hopefully
> reproduce this error.

Great!

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2012-01-13