cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Crash in curl_hash_add in iOS

From: JOHAN LANTZ <johan.lantz_at_telefonica.com>
Date: Fri, 8 Jul 2016 18:33:28 +0000

Hi Daniel

Thanks for the reply.

I put it through Valgrind and it came out ok. The nice thing was that it gave me a reason to build a test app for CentOS (the results from Valgrind in mac-os was really confusing).

Finally I managed to find it out with a bit of persistence and some luck. The error seems to have been caused by that in some very rare conditions 2 worker threads was created. With some minor pthread fixes and assuring that curl was only started and stopped with the complete lifecycle of the app, the problems went away. There are some extremely rare crashes around resolve failures but we are talking about 10 in total over the last 5 days so its nothing and I also have no info to go on.

In general it looks good now, a real pleasure using curl so far.

Have a nice vacation and thanks for all the help

Johan

On 02/07/16 12:00, "curl-library on behalf of curl-library-request_at_cool.haxx.se" <curl-library-bounces_at_cool.haxx.se on behalf of curl-library-request_at_cool.haxx.se> wrote:

>I don't know what tooling you have at hand, but a valgrind style tool would be
>handy. Other than that, try to make an as dumbed-down version as possible of
>your app that still shows the problems and start sprinkling printf/logging
>code or something to see if you can narrow things down.
>
>If I were you, I'd also try an as similar app as possible under macos as it
>might be an easier environment to debug things in if you just manage to
>trigger the same problem there.

________________________________

Este mensaje y sus adjuntos se dirigen exclusivamente a su destinatario, puede contener información privilegiada o confidencial y es para uso exclusivo de la persona o entidad de destino. Si no es usted. el destinatario indicado, queda notificado de que la lectura, utilización, divulgación y/o copia sin autorización puede estar prohibida en virtud de la legislación vigente. Si ha recibido este mensaje por error, le rogamos que nos lo comunique inmediatamente por esta misma vía y proceda a su destrucción.

The information contained in this transmission is privileged and confidential information intended only for the use of the individual or entity named above. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this transmission in error, do not read it. Please immediately reply to the sender that you have received this communication in error and then delete it.

Esta mensagem e seus anexos se dirigem exclusivamente ao seu destinatário, pode conter informação privilegiada ou confidencial e é para uso exclusivo da pessoa ou entidade de destino. Se não é vossa senhoria o destinatário indicado, fica notificado de que a leitura, utilização, divulgação e/ou cópia sem autorização pode estar proibida em virtude da legislação vigente. Se recebeu esta mensagem por erro, rogamos-lhe que nos o comunique imediatamente por esta mesma via e proceda a sua destruição

-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2016-07-08