Re: Segment fault when running the ftpget.c sample binary with libcurl and ftpget.c built for arm-linux
Date: Tue, 30 May 2006 13:28:20 -0700 (PDT)
Many thanks James, that did the trick. I had an
earlier problem where I was anchoring the target file
incorrectly, so I corrected both source and target
file paths. Alas, my source /sandbox/uploadthis.txt
path was not valid. Changing it to
--- James Dennett <jdennett_at_technocom-wireless.com>
> Ed Waldner wrote:
> > I'm not very proficient with gdb. Here's the run
> > display and backtrace from within gdb. Can you
> > interpret it?
> > -Ed.
> >> STOR while-uploading.txt
> > < 150 Accepted data connection
> > Program received signal SIGSEGV, Segmentation
> > 0x400d2dfc in fread () from /lib/libc.so.6
> > (gdb) bt
> > #0 0x400d2dfc in fread () from /lib/libc.so.6
> > #1 0x4003a734 in Curl_fillreadbuffer
> > bytes=Variable "bytes" is not available.
> > ) at transfer.c:137
> > Cannot access memory at address 0x2
> Looks like fread is being passed a NULL filehandle
> -- maybe the file to
> wasn't passed to libcurl, wasn't specified correctly
> (e.g., the working
> isn't what was expected, though you appear to have
> checked that), or
> be opened because of permission limitations?
> -- James
Received on 2006-05-30