cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: libcurl on QNX 6

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 20 Dec 2001 11:59:56 +0100 (MET)

On Thu, 20 Dec 2001 David.Bentham_at_poole.siemens.co.uk wrote:

> We're investigating libcurl 7.9.2 to implement basic FTP transfers between
> an embedded application running QNX 6/Neutrino 2.11 operating system and a
> Windows NT maintenance PC (running Microsoft's FTP Server). So far I've
> only considered FTP GET, but every time it runs, it crashes with SIGSEGV in
> the curl_easy_perform(..) function.

Ouch.

> I have successfully built/run the equivalent under an NT simulation
> environment.

Is that a simulated QNX running on NT?

> The code excerpt follows.

[snipped source code]

Looks fine. You should check that FILE pointer before use, as Linus pointed
out.

Can you switch on CURLOPT_VERBOSE to TRUE and get a detailed protocol dump?
It would probably give us more hints on where/when it crashes.

Do you by any change have any possiblity to use a debugger on the target
system, or to do any post-mortem checks on the crash?

> Also, I had to disable the configuration checks for gethostbyname() in
> socket and nsl libraries. Other than that, libcurl built with no worries,
> and linked quite happily into our application.

Does it use a plain gethostbyname() for name lookups? Or could it possibly be
using the wrong gethostbyname_r() setup?

-- 
    Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/
Received on 2001-12-20