curl-library
FTP upload causes SEGV
Date: Sun, 24 Mar 2002 19:31:56 +1200
Hello All,
The core-dump was because I was passing something silly to CURLOPT_ERRORBUFFER.
The "Couldn't resolve host ..." that libCurl was trying to report was
because I set CURLOPT_NETRC, and this apparently precludes specifying
usernames and passwords in URLs.
Does anyone think that a ~don't care~ option for CURLOPT_NETRC would be
useful? Given some hints about where to start, I can imagine doing the typing.
Regards,
James Cone.
===========================
Hello All,
I'm trying an FTP upload in libCurl 7.9.5 on 64-bit hpux B.11.00 A, in a
32-bit program.
My URL is ftp://jcone:password@xxx/yyy which the local g_d assures me is sane.
The stack-trace, which shows the URL in frame 8 is:
(gdb) bt
#0 0x0001a50c in addbyter (output=67, data=0x77ff1378) at mprintf.c:959
#1 0x00019b5c in dprintf_formatf (data=0x77ff1378,
stream=0x40002a6a <__DTOR_LIST__+1490>,
format=0x20280 "Couldn't resolve host '%s'", ap_save=0x3) at mprintf.c:617
#2 0x0001a5bc in curl_mvsnprintf (buffer=0x0, maxlength=39, format=0x0,
ap_save=0x3) at mprintf.c:996
#3 0x00013a38 in Curl_failf (data=0x43, fmt=0x0) at sendf.c:154
#4 0x0000d2ec in CreateConnection (data=0x40038408, in_connect=0x77ff10cc)
at url.c:2109
#5 0x0000e214 in Curl_connect (data=0x43, in_connect=0x77ff10cc) at url.c:2282
#6 0x0001007c in Curl_perform (data=0x40038408) at transfer.c:1098
#7 0x0000a064 in curl_easy_perform (curl=0x40038408) at easy.c:245
#8 0x00009a1c in curlHelpWriteFixed (
content=0xc00cf000 <Address 0xc00cf000 out of bounds>, length=2869,
lineLen=151, url=0x77ff002c "ftp://jcone:password@xxx/yyy", debug=1)
at curlHelp.c:142
#9 0x00005744 in main (argc=9, argv=0x77ff06ec) at mgrVchrRdmExp.c:316
(gdb)
The address in frame 8 is out of bounds because it was in a memory-mapped
file, which isn't mapped for post-mortem debugging.
CURLOPT_VERBOSE appears to cause nothing in the log. I guess it dies
before getting that far.
Debugging advice welcome :-)
Regards,
James Cone.
Received on 2002-03-24