cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: weird timings from curl_easy_getinfo

From: Oleg Bartunov <oleg_at_sai.msu.su>
Date: Thu, 9 Aug 2001 18:10:46 +0300 (GMT)

> >
> > It seems that in order to make libcurl do nice multithreading on FreeBSD you
> > must do some manual fiddling.
> >
> > You will be interested in the following bug report, titled "libtool broken on
> > freebsd" posted by Sandro Tolaini:
> >
> > http://sourceforge.net/tracker/index.php?func=detail&aid=441735&group_id=976&atid=100976
> >
> > I don't have a solution for this, other than the one Sandro mentions in his
> > report.
> >
>
> great ! This is exactly my case:
>
> 17:48:03[megera_at_maze]~/app/runet/devil>ldd a.out
> a.out:
> libcurl.so.2 => /usr/local/lib/libcurl.so.2 (0x68065000)
> libc_r.so.4 => /usr/lib/libc_r.so.4 (0x68086000)
> libssl.so.2 => /usr/lib/libssl.so.2 (0x68139000)
> libcrypto.so.2 => /usr/lib/libcrypto.so.2 (0x68165000)
> libc.so.4 => /usr/lib/libc.so.4 (0x6821c000)
>

I rebuild libcurl with manual edited libtool - now I have
18:53:26[megera_at_maze]~/app/runet/devil>ldd a.out
a.out:
        libcurl.so.2 => /usr/local/lib/libcurl.so.2 (0x68065000)
        libc_r.so.4 => /usr/lib/libc_r.so.4 (0x68086000)
        libssl.so.2 => /usr/lib/libssl.so.2 (0x68139000)
        libcrypto.so.2 => /usr/lib/libcrypto.so.2 (0x68165000)

but this doesn't help, still get seg.fault.

Reading symbols from /usr/libexec/ld-elf.so.1...done.
#0 0x6807e275 in Transfer () from /usr/local/lib/libcurl.so.2
(gdb) bt
#0 0x6807e275 in Transfer () from /usr/local/lib/libcurl.so.2
#1 0x6807f8d3 in Curl_perform () from /usr/local/lib/libcurl.so.2
#2 0x68080007 in curl_easy_perform () from /usr/local/lib/libcurl.so.2
#3 0x8048b39 in pull_one_url () at tt.c:74
#4 0x6809eac3 in _thread_start () from /usr/lib/libc_r.so.4
#5 0x0 in ?? ()
(gdb) l
95 return NULL;
96 }
97
98
99 int main(int argc, char **argv)
100 {
101 pthread_t tid[NTHREADS];
102 int i, error;
103
104 curl_global_init(CURL_GLOBAL_ALL);
(gdb)

>
>
> >
>
> Regards,
> Oleg
> _____________________________________________________________
> Oleg Bartunov, sci.researcher, hostmaster of AstroNet,
> Sternberg Astronomical Institute, Moscow University (Russia)
> Internet: oleg@sai.msu.su, http://www.sai.msu.su/~megera/
> phone: +007(095)939-16-83, +007(095)939-23-83
>
>
> _______________________________________________
> Curl-library mailing list
> http://curl.haxx.se/libcurl/
>

        Regards,
                Oleg
_____________________________________________________________
Oleg Bartunov, sci.researcher, hostmaster of AstroNet,
Sternberg Astronomical Institute, Moscow University (Russia)
Internet: oleg@sai.msu.su, http://www.sai.msu.su/~megera/
phone: +007(095)939-16-83, +007(095)939-23-83

_______________________________________________
Curl-library mailing list
http://curl.haxx.se/libcurl/
Received on 2001-08-09