cURL / Mailing Lists / curl-library / Single Mail


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

From: Ed Waldner <>
Date: Mon, 22 May 2006 10:51:06 -0700 (PDT)

Dan, Thanks for the reply. I got hello world running
on the target, but then again, that exercise does not
include any shared libraries that were built outside
the scope of the arm-linux toolchain residing on my
host machine.

I'm not 100% sure if the problem comes from building
the libcurl library since I downloaded a canned arm
specific version from the debian distro site and I got
the same seg fault.

I'll try getting gdb working on the target tonight and
dig further.

I'll also try to see what other libraries ftpget.c
depends on and statically link them in.


--- Dan Fandrich <> wrote:

> On Sun, May 21, 2006 at 06:55:42PM -0700, Ed Waldner
> wrote:
> > I'm trying to see how libcurl works on an Applied
> Data
> > Systems BitsyXb development kit running a PXA-270
> > Intel Xscale processor.
> [...
> > I transfered a.out to my target dev kit and ran
> it. I
> > got a segmentation fault. I modified the ftpget.c
> to
> > include some debug printf statements, but I didn't
> see
> > any of them - only the seg fault.
> If your app won't even start, then it's unlikely to
> be a curl problem. It's
> probably a mismatch between compiler switches on
> your app and the libraries
> you're liking against, or using incompatible
> processor switches. Try getting
> a "hello world" program working first before
> integrating curl. Or, try
> statically linking your application to all its
> libraries to try to narrow
> the source of the problem.
> >>> Dan
> --
> The web
> change of address service
> Let webmasters know that your web site has
> moved
Received on 2006-05-22