Date: Mon, 29 Mar 2004 07:13:31 +0100 From: "Niall Douglas" <s_sourceforge@nedprod.com> To: freebsd-threads@freebsd.org Subject: Re: GDB 6.0 and FreeBSD threads Message-ID: <4067CC9B.8940.1A12F51@localhost> In-Reply-To: <4067B064.6090007@elischer.org> References: <4067688B.19545.1A50C1@localhost>
next in thread | previous in thread | raw e-mail | index | archive | help
-----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-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4067CC9B.8940.1A12F51>