From owner-freebsd-threads@FreeBSD.ORG Sun Sep 28 19:08:46 2003 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 AB71A16A4B3 for ; Sun, 28 Sep 2003 19:08:46 -0700 (PDT) Received: from maxwell.syr.edu (maxwell.syr.edu [128.230.129.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id DAC894401F for ; Sun, 28 Sep 2003 19:08:45 -0700 (PDT) (envelope-from cmsedore@maxwell.syr.edu) Received: from exchange.maxwell.syr.edu (excluster2.maxwell.syr.edu [128.230.129.231]) by maxwell.syr.edu (8.12.10/8.9.1) with ESMTP id h8T28ho2089236 for ; Sun, 28 Sep 2003 22:08:43 -0400 (EDT) X-MIMEOLE: Produced By Microsoft Exchange V6.5.6944.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Date: Sun, 28 Sep 2003 22:08:45 -0400 Message-ID: <32A8B2CB12BFC84D8D11D872C787AA9A515C9D@EXCHANGE.forest.maxwell.syr.edu> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: gdb and kse Thread-Index: AcOGLpytXJ/6dcv9Tu2U3Ky1SA9krw== From: "Christopher M. Sedore" To: Subject: gdb and kse 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 Sep 2003 02:08:46 -0000 I'm beginning some work that utilizes kse-based threads. I've been = trying to use gdb for debugging, with very limited success. In some = instances, gdb does as one would expect (catching segvs, etc), most of = the time, however, if the program segvs, the process just hangs and gdb = sits there (the threads show state as "STOP" in top). In some cases, = hitting control-c on will bring gdb back to life, but things are not = right. =20 Breakpoints don't work, either. I'm running = 5.1-CURRENT-20030925-JPSNAP. =20 Is gdb currently working with kse threads? I asked google about gdb and = kse, but got little useful information; any pointers or help would be = appreciated. =20 (Also, are there docs on kse and what is/isn't threadsafe? I'm taking = segfaults in gethostbyname, and I don't think it is my doing.) =20 Redirects happily accepted as well, =20 -Chris