From owner-freebsd-questions@FreeBSD.ORG Sat May 28 22:13:09 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 646E616A41C for ; Sat, 28 May 2005 22:13:09 +0000 (GMT) (envelope-from bc979@lafn.org) Received: from zoot.lafn.org (zoot.lafn.ORG [206.117.18.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1994D43D1F for ; Sat, 28 May 2005 22:13:08 +0000 (GMT) (envelope-from bc979@lafn.org) Received: from [10.0.1.90] (pool-71-109-145-221.lsanca.dsl-w.verizon.net [71.109.145.221]) (authenticated bits=0) by zoot.lafn.org (8.13.1/8.13.1) with ESMTP id j4SMD7qP072365 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NO) for ; Sat, 28 May 2005 15:13:08 -0700 (PDT) (envelope-from bc979@lafn.org) Mime-Version: 1.0 (Apple Message framework v730) Content-Transfer-Encoding: 7bit Message-Id: <5B06EDC7-B6BA-491C-B9D2-CA6308D6B9C1@lafn.org> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: FreeBSD Questions From: Doug Hardie Date: Sat, 28 May 2005 15:13:06 -0700 X-Mailer: Apple Mail (2.730) X-Virus-Scanned: ClamAV version 0.85.1, clamav-milter version 0.85 on zoot.lafn.org X-Virus-Status: Clean Subject: Debugging Threaded Applications X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 May 2005 22:13:09 -0000 Are there any working tools available for debugging a threaded application in 5.3/5.4? Ktrace works fine but doesn't identify the threads so its almost impossible to figure out whats going on in a complex threaded application. Strace doesn't show threads either. Pstack causes all sorts of problems with the running application - usually creating multiple copies of it none of which work anymore.