cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: Problems on FreeBSD

From: Lucas Adamski <ladamski_at_yahoo.com>
Date: Fri, 7 Sep 2001 02:04:11 -0700

I ran it under gdb, and got the following:

Program received signal SIGSEGV, Segmentation fault.
0x28079685 in Transfer (c_conn=0x8075400) at transfer.c:162
162 }

Thanks,
 Lucas.

-----Original Message-----
From: Daniel Stenberg [mailto:daniel_at_haxx.se]
Sent: Friday, September 07, 2001 1:28 AM
To: Lucas Adamski
Cc: Libcurl
Subject: Re: Problems on FreeBSD

On Thu, 6 Sep 2001, Lucas Adamski wrote:

> I've been trying to port over a program I've been working on in C/C++ using
> libcurl from Solaris to FreeBSD, but I've run into numerous problems.
>
> 1) I had the same problem that other people mentioned with both libc and
> libc_r being linked in... there was a bug report
> (http://sourceforge.net/tracker/?func=detail&atid=100976&aid=441735&group_id
> =976) regarding that, but I tried 7.9pre3 and it did not fix it.
> However, replacing every instance of "openbsd" with "freebsd" in
> ltmain.sh fixed it.. I guess the OpenBSD folks already had a fix for
> that?

I've been in touch with "Brad" who seems to be the leading OpenBSD libtool
hacker, and he's been a driving force behind those OpenBSD fixes. Obviously,
the FreeBSD hackers don't have a similar friendly soul in that team.

I've forwarded your comment in the "freebsd libtool" bug report to him, to
see if it makes a difference.

> It has not, however, stopped the segfaults. I could post my code here,
> but it sucks so instead I tried compiling the multithread.c example in
> the distribution, and just like mine it segfaults after the first thread
> terminates:

Debugging multithreaded programs are painful, but is there any possibility to
discover on what source line in libcurl this happens?

> Anyone out there gotten multithread libcurl working on FBSD? Let me know
> if I can provide any additional info, though I'm kinda new at the dev on
> Unix thing, so some directional prodding wouldn't hurt. :) Otherwise,
> I'm rather stuck!

Unfortunately, I've got reports before with multithreaded problems on
FreeBSD. It seems to be working fine on at least Windows, Linux and
Solaris(*) so this problem might be something specific for FreeBSD. From what
I understand, FreeBSD does not have kernel support for threads but I can't
see why that should matter to libcurl...

I don't personally have any access to a FreeBSD machine why I can't dig into
this myself.

(*) = It may work fine on more OSes too, these are just examples I know have
been reported to work.

-- 
    Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/
Received on 2001-09-07