cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: Segfault running a threaded application

From: Abe Lederman <abe_at_deepwebtech.com>
Date: Mon, 25 Nov 2002 15:38:11 -0700

Daniel,

I the stack trace that I sent yesterday:

        *e = {ptr = 0xcc188, prev = 0x0, next = 0xffffffff}

so the segfault is occurring trying to execute:

        e->prev->next = e->next;

*list at this point is:

        {head = 0xffffffff, tail = 0xcfb08, dtor = 0x137f8
<_hash_element_dtor>, size = 1}

A second segfault that occurred yesterday is at:

    comp=0x13dc8 <hostcache_timestamp_remove>) at hash.c:269
269 if (comp(user, ((curl_hash_element *)
CURL_LLIST_VALP(le))->ptr)) {
(gdb) where
#0 Curl_hash_clean_with_criterium (h=0x48c10, user=0xf680f920,
    comp=0x13dc8 <hostcache_timestamp_remove>) at hash.c:269
#1 0x13e20 in hostcache_prune (hostcache=0x48c10, cache_timeout=60,
now=1038159021)
    at hostip.c:189
#2 0x13f60 in Curl_resolv (data=0x48dc0, hostname=0xd8190
"patft.uspto.gov", port=80)
    at hostip.c:280
#3 0x18474 in CreateConnection (data=0x48dc0, in_connect=0xf680fc1c) at
url.c:2675
#4 0x187a0 in Curl_connect (data=0x48dc0, in_connect=0xf680fc1c) at
url.c:2822
#5 0x210bc in Curl_perform (data=0x48dc0) at transfer.c:1561
#6 0x1360c in curl_easy_perform (curl=0x48dc0) at easy.c:245
#7 0x13210 in executeUrl (curlData=0x3ded8) at geturls.c:100

Examining some of the variables where the segfault occurred here is what
I get:

        i = 2
        *h = {table = 0xcae28, dtor = 0x13f70 <Curl_freeaddrinfo>, slots
= 7, size = 8}

        le = (curl_llist_element *) 0xffffffff

Let me know if this helps, and what else I can get you.

Thanks,

Abe

-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T
handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
Received on 2002-11-25