From owner-freebsd-threads@FreeBSD.ORG Sun Mar 28 22:13:55 2004 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AD2F416A4CE for ; Sun, 28 Mar 2004 22:13:55 -0800 (PST) Received: from mail2.mail.iol.ie (mail2.mail.iol.ie [193.95.141.54]) by mx1.FreeBSD.org (Postfix) with ESMTP id 06FA743D1F for ; Sun, 28 Mar 2004 22:13:55 -0800 (PST) (envelope-from s_sourceforge@nedprod.com) Received: from dialup175.ts521.cwt.esat.net ([194.165.162.175] helo=kate) by mail2.mail.iol.ie with esmtp (Exim 3.36 #9) id 1B7q1l-00061g-00 for freebsd-threads@freebsd.org; Mon, 29 Mar 2004 07:13:42 +0100 From: "Niall Douglas" To: freebsd-threads@freebsd.org Date: Mon, 29 Mar 2004 07:13:31 +0100 MIME-Version: 1.0 Message-ID: <4067CC9B.8940.1A12F51@localhost> Priority: normal In-reply-to: <4067B064.6090007@elischer.org> References: <4067688B.19545.1A50C1@localhost> X-PM-Encryptor: IDWPGP-PM32, 4 X-mailer: Pegasus Mail for Windows (v4.12a) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body Subject: Re: GDB 6.0 and FreeBSD threads X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Mar 2004 06:13:55 -0000 -----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-----