GDB 6.0 and FreeBSD threads
Niall Douglas
s_sourceforge at nedprod.com
Sun Mar 28 22:13:55 PST 2004
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 28 Mar 2004 at 21:13, Julian Elischer wrote:
> > I discovered late last night that libc_r implements only userland
> > threads which seem to have issues with pipes (my code kept hanging
> > inside the pipe i/o). I then discovered there are real system scope
> > threads too, but they're in a different library called libkse.
>
> actually it's now called libpthread and linkse was it's development
> name. We have't been exactly quiet about this.. it's even in the
> release notes for 5.2.1.
You must remember I've never been near FreeBSD before. When the man
page says POSIX threads are supported, I assumed that meant a full
implementation in libc_r as the man page specifies. You can see why I
might think that, especially as libc_r doesn't complain when my code
sets PTHREAD_SCOPE_SYSTEM which libc_r should return an error on by
rights.
BTW on my FreeBSD v5.2.1 the library is called libkse, not libpthread
which doesn't exist.
> > You guys could seriously improve the documentation inside the man
> > pages. Please! Just a two line paragraph would have saved me more
> > than a day of work.
>
> we can't guess what question every developer is going to ask..
> But possibly the following paragraph in "man pthread"
> might be made a bit clearer...
Typing man pthread on my FreeBSD v5.2.1 does not show the text you
quoted. Instead it says it's in libc_r and mentions nothing else.
> > After linking to libkse and finding it really doesn't like
> > coexisting with libc_r, I discovered the libmap.conf trick and it
> > works now. Unfortunately I'm back to square one in that no gdb
> > supports kse threads. This is a major problem as my code is heavily
> > multithreaded.
>
> why is libc_r beinbg linked into your application?
> you need to select ONE of the libraries and link with that..
It's not me. I link against libGL and /it/ is linked against libc_r.
> The threads support package is at:
>
> http://people.freebsd.org/~davidxu/kse/thread_db/
> however, realise that this is PRE_ALPHA.
> you are "on your own" except for direct corespondence with david.
Wicked. I had searched google for that in vain so thank you. Do I
post bug reports here or to David directly?
Cheers,
Niall
-----BEGIN PGP SIGNATURE-----
Version: idw's PGP-Frontend 4.9.6.1 / 9-2003 + PGP 8.0.2
iQA/AwUBQGe+jMEcvDLFGKbPEQIwLQCg21f2Enh3w+5aT3pRinHbFASZMS0AoIZn
AJEBfwrkSJ/a3nm1BX7KJVh2
=ZqT3
-----END PGP SIGNATURE-----
More information about the freebsd-threads
mailing list