From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29373 invoked by alias); 25 May 2005 10:20:50 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 29266 invoked by uid 22791); 25 May 2005 10:20:41 -0000 Received: from mx1.vistabroadband.net (HELO vbbn.com) (206.176.240.47) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Wed, 25 May 2005 10:20:41 +0000 Received: from [221.134.8.146] (HELO [192.168.50.177]) by vbbn.com (CommuniGate Pro SMTP 4.2.10) with ESMTP id 14335503 for gdb@sources.redhat.com; Wed, 25 May 2005 03:20:34 -0700 From: Kaarthik Sivakumar To: gdb@sources.redhat.com Subject: gdb and too many threads causes SIGTRAP Date: Wed, 25 May 2005 10:20:00 -0000 User-Agent: KMail/1.7.2 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200505251551.06907.kaarthik@clovissolutions.com> X-SW-Source: 2005-05/txt/msg00315.txt.bz2 Hi We are developing a multi-threaded application on RH9 which creates and deletes a large number of threads in a short time. After this program runs for sometime, gdb fails with a SIGTRAP in a thread that is at __ntpl_death_event() (when the thread wants to quit). Following some of the mails at gdb-patches, I noticed a thread (subject: [RFC]: fix for recycled thread ids) that seems to address this issue. According to that mail thread, and this specific mail http://sources.redhat.com/ml/gdb-patches/2004-03/msg00672.html, a fix was issued to check for TD_DEATH when possible and to attach to threads sooner when thread ids are being reused. This fix seems to be available in gdb 6.2.1, so we used that to debug the application. But this still does not seem to have fixed the problem. I can confirm that the code to test for TD_DEATH is activated and that glibc version is 2.3.2, so this fix should apply and work. But it doesnt. Is there anything else I should be checking? If you need more information, please let me know. The OS is RH 9, with just the gdb 6.2.1 tar.bz2 compiled and being used. Thanks. kaarthik