cURL / Mailing Lists / curl-users / Single Mail

curl-users

[ curl-Bugs-654261 ] libcurl 7.10.2 segfault in C program

From: <noreply_at_sourceforge.net>
Date: Sun, 15 Dec 2002 14:46:10 -0800

Bugs item #654261, was opened at 2002-12-15 22:46
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=654261&group_id=976

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: David Weis (djweis)
Assigned to: Nobody/Anonymous (nobody)
Summary: libcurl 7.10.2 segfault in C program

Initial Comment:
I'm using libcurl 7.10.2 in a C program and am having
segfault problems. Below is a stack trace from gdb:
#0 0x401cbe46 in chunk_free (ar_ptr=0x4027f620,
p=0x8065db0) at malloc.c:3242
3242 malloc.c: No such file or directory.
        in malloc.c
(gdb) bt
#0 0x401cbe46 in chunk_free (ar_ptr=0x4027f620,
p=0x8065db0) at malloc.c:3242
#1 0x401cbbf4 in __libc_free (mem=0x8065db8) at
malloc.c:3154
#2 0x4003de95 in Curl_initinfo () at eval.c:41
#3 0x40040112 in Curl_pretransfer () at eval.c:41
#4 0x40040541 in Curl_perform () at eval.c:41
#5 0x400409cf in curl_easy_perform () at eval.c:41
#6 0x08048c08 in main (argc=1, argv=0xbffff9c4) at
receiver.c:134
#7 0x40167507 in __libc_start_main (main=0x8048a20
<main>, argc=1, ubp_av=0xbffff9c4, init=0x8048614 <_init>,
    fini=0x8048c60 <_fini>, rtld_fini=0x4000dc14
<_dl_fini>, stack_end=0xbffff9bc)
    at ../sysdeps/generic/libc-start.c:129
(gdb) x/s 0x8065db8
0x8065db8: "text/plain"
(gdb) quit

I am reusing a curl handle, the first retrieval works
fine, but at the end of the second one, it stops
working. I'm using CURLOPT_URL in between the calls.

Any ideas?

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=654261&group_id=976

-------------------------------------------------------
This sf.net email is sponsored by:
With Great Power, Comes Great Responsibility
Learn to use your power at OSDN's High Performance Computing Channel
http://hpc.devchannel.org/
Received on 2002-12-15