cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: crash in libcurl

From: Jason Pump <jason_at_healthdash.com>
Date: Fri, 21 Oct 2005 16:35:11 -0700

What version of libcurl?

J D wrote:

>Hi,
>I need a quick https client but it crashes every time
>I call cury_easy_cleanup. It looks like a bad pointer
>being freed. But I suspect I did something wrong while
>cross-compling libcurl.
>
>Here's the crash log:
>[Switching to Thread 1392642]
>__pthread_mutex_lock (mutex=0x126c67dc) at mutex.c:102
> in mutex.c
>(gdb) bt
>#0 __pthread_mutex_lock (mutex=0x126c67dc) at
>mutex.c:102
>#1 0x10a2b0f0 in __libc_free (mem=0x126c67dc) at
>malloc.c:3353
>#2 0x108e14b4 in Curl_safefree (ptr=0x10a2b0f0) at
>url.c:185
>#3 0x108e43e8 in Curl_disconnect (conn=0x126c67dc) at
>url.c:1537
>#4 0x108e47a8 in ConnectionKillOne (data=0x128a6848)
>at url.c:1730
>#5 0x108e14f4 in Curl_close (data=0x128a6848) at
>url.c:204
>#6 0x108dcc24 in curl_easy_cleanup (curl=0x10a2b0f0)
>at easy.c:459
>#7 0x102e224c in httpsQuerySend () at https_cl.c:259
>
>Here's my config options:
>
>CC=ppc_82xx-gcc LD=ppc_82xx-ld NM=ppc_82xx-nm
>AR=ppc_82xx-ar RANLIB=ppc_82xx-ranlib
>CPPFLAGS="-I/home/utils/openssl/include/openssl"
>LDFLAGS="-L/home/utils/openssl" ./configure
>--host=ppc-linux --disable-shared --without-random
>--disable-ldap --without-zlib
>
>What's interesting is, with --enable-debug
>(curl_dofree), the crash doesn't happen anymore.
>
>Any help is greatly appreciated.
>
>-Justin
>
>
>

-- 
Jason Pump
Senior Search Engineer
Healthline
660 Third Street, Ste. 100
San Francisco, CA 94107
direct dial 415.281.3133
cell 510.812.1784
www.healthline.com 
Received on 2005-10-22