cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Mailing List Archives

Re: Segment fault when running the ftpget.c sample binary with libcurl and ftpget.c built for arm-linux

From: James Dennett <jdennett_at_technocom-wireless.com>
Date: Tue, 30 May 2006 12:48:35 -0700

Ed Waldner wrote:
> I'm not very proficient with gdb. Here's the run
> display and backtrace from within gdb. Can you help
> interpret it?
>
> -Ed.
>
[snip]

>> STOR while-uploading.txt
>>
> < 150 Accepted data connection
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x400d2dfc in fread () from /lib/libc.so.6
> (gdb) bt
> #0 0x400d2dfc in fread () from /lib/libc.so.6
> #1 0x4003a734 in Curl_fillreadbuffer (conn=0x19680,
> 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
upload
wasn't passed to libcurl, wasn't specified correctly (e.g., the working
directory
isn't what was expected, though you appear to have checked that), or
couldn't
be opened because of permission limitations?

-- James
Received on 2006-05-30

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET