From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13291 invoked by alias); 17 Nov 2005 04:07:47 -0000 Received: (qmail 13169 invoked by uid 22791); 17 Nov 2005 04:07:44 -0000 Received: from ns2.lanforge.com (HELO ns2.lanforge.com) (66.165.47.211) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Thu, 17 Nov 2005 04:07:44 +0000 Received: from [71.112.206.236] (pool-71-112-206-236.sttlwa.dsl-w.verizon.net [71.112.206.236]) (authenticated bits=0) by ns2.lanforge.com (8.13.4/8.13.4) with ESMTP id jAH47frd022219 for ; Wed, 16 Nov 2005 20:07:41 -0800 Message-ID: <437C020C.3000800@candelatech.com> Date: Thu, 17 Nov 2005 04:07:00 -0000 From: Ben Greear User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.12) Gecko/20050922 Fedora/1.7.12-1.3.1 MIME-Version: 1.0 To: gdb@sources.redhat.com Subject: gdb and threads on windows. References: <437B87D4.4060304@candelatech.com> <437B8D6B.65249253@dessent.net> <437B8F4C.8060708@candelatech.com> <437BB169.D9EFCF92@dessent.net> <20051117000946.GA28025@trixie.casa.cgf.cx> <437BD9F9.C2632918@dessent.net> <437BDCFF.3010408@candelatech.com> <437BDF25.87B13E4A@dessent.net> In-Reply-To: <437BDF25.87B13E4A@dessent.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2005-11/txt/msg00335.txt.bz2 For some reason, my applications shows 970 threads and is effectively deadlocked. This is on a windows-xp system. The win2k system does not appear to have this problem. I attached to the running process with gdb. The backtraces for 2-970 look like this: Thread 7 (thread 7436.0xfe0): #0 0x7c90eb94 in _libws2_32_a_iname () #1 0x7c90e9c0 in _libws2_32_a_iname () Thread 1 is slightly more interesting: (gdb) bt #0 0x7c90eb94 in _libws2_32_a_iname () #1 0x7c90e9c0 in _libws2_32_a_iname () #2 0x7c802542 in _libws2_32_a_iname () #3 0x5a703e6e in _libws2_32_a_iname () #4 0x5a70c6d0 in _libws2_32_a_iname () #5 0x003d2aa0 in ?? () #6 0xffffffff in ?? () (gdb) quit I am using threads in the code, but this process never created any threads explicitly. Maybe something like a name resolver is 'helping' me? Is there anything I can do to get gdb to give better backtraces? (My app is not stripped, so symbols should be available.) Thanks, Ben -- Ben Greear Candela Technologies Inc http://www.candelatech.com