From owner-freebsd-threads@FreeBSD.ORG Fri Nov 11 03:31:41 2005 Return-Path: X-Original-To: freebsd-threads@freebsd.org 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 7B39C16A41F for ; Fri, 11 Nov 2005 03:31:41 +0000 (GMT) (envelope-from gabriel.becedillas@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id D2D9143D49 for ; Fri, 11 Nov 2005 03:31:40 +0000 (GMT) (envelope-from gabriel.becedillas@gmail.com) Received: by wproxy.gmail.com with SMTP id i12so105115wra for ; Thu, 10 Nov 2005 19:31:40 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:mime-version:content-transfer-encoding:message-id:content-type:to:from:subject:date:x-mailer; b=sEgdHqYVONI5MvB74Ythbhmwu3rcqOMuWBMjDFgdy5YC2GBkjWyhh4leNQFppPzTN9PEPsKsiaqKhZolZUB+BDfKfPQB7LdwsWirKz/6LehpJvXUqwi+m2TGUEAjnWa69ZCzh+yBLsun0TatQBtHuVzxSg2VEoosBn4xU0KD1UM= Received: by 10.54.86.19 with SMTP id j19mr1229940wrb; Thu, 10 Nov 2005 19:31:40 -0800 (PST) Received: from ?192.168.1.2? ( [201.235.219.144]) by mx.gmail.com with ESMTP id 6sm822917wrl.2005.11.10.19.31.38; Thu, 10 Nov 2005 19:31:39 -0800 (PST) Mime-Version: 1.0 (Apple Message framework v623) Content-Transfer-Encoding: 7bit Message-Id: <1139bd2a4492e98c3fcf367d5dc1ba00@gmail.com> Content-Type: text/plain; charset=US-ASCII; format=flowed To: freebsd-threads@freebsd.org From: Gabriel Becedillas Date: Fri, 11 Nov 2005 00:37:19 -0300 X-Mailer: Apple Mail (2.623) Subject: pthreads and segmentation fault X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Nov 2005 03:31:41 -0000 Hi, I'm getting a segmentation fault on FreeBSD 5.4 using pthreads. I was googling around and found that there are a lot of people hitting the same bug, but didn't found a solution to it yet. The active threads on my application are this ones: (gdb) info threads * 8 LWP 100052 0x2824231b in pthread_testcancel () from /usr/lib/libpthread.so.1 7 Thread 7 (sleeping) 0x2823a207 in pthread_mutexattr_init () from /usr/lib/libpthread.so.1 6 Thread 6 (LWP 100106) 0x282422fb in pthread_testcancel () from /usr/lib/libpthread.so.1 5 Thread 5 (sleeping) 0x2823a207 in pthread_mutexattr_init () from /usr/lib/libpthread.so.1 4 Thread 4 (sleeping) 0x2823a207 in pthread_mutexattr_init () from /usr/lib/libpthread.so.1 3 Thread 3 (runnable) 0x2836af7b in select () from /lib/libc.so.5 2 Thread 2 (sleeping) 0x2823a207 in pthread_mutexattr_init () from /usr/lib/libpthread.so.1 1 Thread 1 (runnable) 0x283d49ff in flockfile () from /lib/libc.so.5 My application runs ok on other platforms (Linux and Mac OS X) and since there are a lot of people hitting the same bug ( always pthread_testcancel() & pthread_mutexattr_init() around ) I think that there must be something wrong in FreeBSD pthreads implementation. I really need to find a solution to my problem as soon as possible. Does anyone have a solution to this ? I've talked to a guy that is hitting the same problem and he told me that this is not fixed on FreeBSD 6.0. Thanks a lot.