From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2150 invoked by alias); 5 Aug 2005 13:28:48 -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 2135 invoked by uid 22791); 5 Aug 2005 13:28:45 -0000 Received: from [66.49.144.135] (HELO newhost59.newhost59-server.com) (66.49.144.135) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Fri, 05 Aug 2005 13:28:45 +0000 Received: from www.tekchile.cl (localhost [127.0.0.1]) by newhost59.newhost59-server.com (8.12.10/8.12.10) with ESMTP id j75DSKXI006010 for ; Fri, 5 Aug 2005 09:28:20 -0400 Received: from 12.151.136.254 (SquirrelMail authenticated user rodrigo@tekchile.cl) by www.tekchile.cl with HTTP; Fri, 5 Aug 2005 09:28:20 -0400 (EDT) Message-ID: <62291.12.151.136.254.1123248500.squirrel@www.tekchile.cl> Date: Fri, 05 Aug 2005 13:28:00 -0000 Subject: problems with pthread library From: rodrigo@tekchile.cl To: gdb@sources.redhat.com User-Agent: SquirrelMail/1.4.4 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-SW-Source: 2005-08/txt/msg00028.txt.bz2 Hello group: I'm begining to migrate a 10k lines of code project to use the GNU tools. I'm using eclipse 3.1 & CDT + latest Cygwin. I have rewrite the OS Layer to begin use pthread library for multi-threading capabilites. When i try to debug my program i note the CPU going almost 100% with my program & gdb.exe taking most of it. The program never goes further. If i run the program without the debugger everything goes well. So i decided to investigate more and found where the program hangs. I found that when creating mutexes the debugger get lost. Not after the first call but after a couple of invocation of 'pthread_mutex_init' & 'pthread_cond_init'. I can repro the similar problem without using eclipse but directly using cygwin and gdb. Any hints on what is going on ? Thanks, Rodrigo.