cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Segfault with CURLOPT_STDERR (was: How to use CURLOPT_DEBUGFUNCTION with Perl)

From: Jan Theofel <theofel_at_etes.de>
Date: Mon, 24 May 2004 15:52:40 +0200

Hello Daniel,

On Mon, May 24, 2004 at 02:32:41PM +0200, Daniel Stenberg wrote:
> On Mon, 24 May 2004, Jan Theofel wrote:
>
> > The seg fault occurs, when calling $curl->perform().
>
> Can you produce a stack trace with gdb and show us instead? It would be a lot
> easier to tell what happens.

Here's the gdb output:

(gdb) where
#0 0x08519dbb in ?? ()
#1 0x403178c7 in Curl_infof (data=Variable "data" is not available.
) at sendf.c:138
#2 0x4032a77a in Curl_connecthost (conn=0x851a8c8, remotehost=0x8519d33, port=21, sockconn=0x851a974, addr=0xbfffe7ac, connected=0xbfffe7b3 "")
    at connect.c:571
#3 0x4031c26a in Curl_connect (data=0x8511910, in_connect=0xbffff320, asyncp=0xbffff327 "") at url.c:1837
#4 0x4032979e in Curl_perform (data=0x8511910) at transfer.c:1915
#5 0x40329f3a in curl_easy_perform (curl=Variable "curl" is not available.
) at easy.c:285
#6 0x40302c72 in XS_WWW__Curl__easy_perform () from /usr/lib/perl5/site_perl/5.8.3/i586-linux-thread-multi/auto/WWW/Curl/Curl.so
#7 0x080be87d in Perl_pp_entersub ()
#8 0x080bd429 in Perl_runops_standard ()
#9 0x08063a89 in perl_run ()
#10 0x0805fbad in main ()
(gdb)

Does this help?

Jan

-- 
Jan Theofel                              Fon:  +49 (7 11) 48 90 83 - 0
ETES - EDV-Systemhaus GbR                Fax:  +49 (7 11) 48 90 83 - 50
Libanonstrasse 58 A * D-70184 Stuttgart  Web: http://www.etes.de
Received on 2004-05-24