cURL / Mailing Lists / curl-library / Single Mail

curl-library

Segmentation fault using libcURL

From: Alessio Sangalli <alesan_at_manoweb.com>
Date: Fri, 24 Dec 2010 20:10:47 -0800

I have a multithreaded program running on an embedded system... that
takes pictures and uploads them on the web:

http://escursionisticivatesi.it/webcam/

The program I am writing has a git repo at:
http://gitorious.org/multilapse

In short, I have run it on gdb and when I get a segfault the backtrace is:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x40020b60 (LWP 820)]
0x40147b30 in addbyter () from /usr/lib/libcurl.so.4
(gdb) bt
#0 0x40147b30 in addbyter () from /usr/lib/libcurl.so.4
#1 0x401484f0 in dprintf_formatf () from /usr/lib/libcurl.so.4
#2 0x401497fc in curl_mvsnprintf () from /usr/lib/libcurl.so.4
#3 0x4013df8c in Curl_failf () from /usr/lib/libcurl.so.4
#4 0x40135680 in Curl_resolv_timeout () from /usr/lib/libcurl.so.4
#5 0x00000000 in ?? ()

I am now carefully checking the multi-threading related options. Any
hint in the meanwhile?

Thanks!
Alessio

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-12-25