From owner-freebsd-threads@FreeBSD.ORG Fri Jun 3 17:26:09 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 DA0FA16A41F for ; Fri, 3 Jun 2005 17:26:09 +0000 (GMT) (envelope-from mezz7@cox.net) Received: from lakermmtao08.cox.net (lakermmtao08.cox.net [68.230.240.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 59DA443D1D for ; Fri, 3 Jun 2005 17:26:09 +0000 (GMT) (envelope-from mezz7@cox.net) Received: from mezz.mezzweb.com ([68.103.32.140]) by lakermmtao08.cox.net (InterMail vM.6.01.04.00 201-2131-118-20041027) with ESMTP id <20050603172608.KZKT18139.lakermmtao08.cox.net@mezz.mezzweb.com>; Fri, 3 Jun 2005 13:26:08 -0400 To: "Andriy Tkachuk" References: <200506031315.04920.ant@emict.com> Message-ID: Date: Fri, 03 Jun 2005 12:27:28 -0500 From: "Jeremy Messenger" Content-Type: text/plain; format=flowed; delsp=yes; charset=us-ascii MIME-Version: 1.0 Content-Transfer-Encoding: 8bit In-Reply-To: <200506031315.04920.ant@emict.com> User-Agent: Opera M2/8.0 (Linux, build 1095) Cc: freebsd-threads@freebsd.org Subject: Re: pthreaded program killed by sigsegv from time to time under load 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, 03 Jun 2005 17:26:10 -0000 On Fri, 03 Jun 2005 05:15:04 -0500, Andriy Tkachuk wrote: > hi folks. what can be the reason of $subj ? > > is the problem with libpthread or with my prog? See here to use 'info thread' for example: http://people.freebsd.org/~mezz/gdb/gdb-evolution.txt Cheers, Mezz > thanks. > >> gdb client client.core > GNU gdb 6.1.1 [FreeBSD] > Copyright 2004 Free Software Foundation, Inc. > GDB is free software, covered by the GNU General Public License, and you > are > welcome to change it and/or distribute copies of it under certain > conditions. > Type "show copying" to see the conditions. > There is absolutely no warranty for GDB. Type "show warranty" for > details. > This GDB was configured as "i386-marcel-freebsd"... > > warning: exec file is newer than core file. > Core was generated by `client'. > Program terminated with signal 11, Segmentation fault. > Reading symbols from /usr/lib/libpthread.so.1...done. > Loaded symbols for /usr/lib/libpthread.so.1 > Reading symbols from /usr/lib/libstdc++.so.4...done. > Loaded symbols for /usr/lib/libstdc++.so.4 > Reading symbols from /lib/libm.so.3...done. > Loaded symbols for /lib/libm.so.3 > Reading symbols from /lib/libc.so.5...done. > Loaded symbols for /lib/libc.so.5 > Reading symbols from /libexec/ld-elf.so.1...done. > Loaded symbols for /libexec/ld-elf.so.1 > #0 0x280ac31b in pthread_testcancel () from /usr/lib/libpthread.so.1 > (gdb) bt > #0 0x280ac31b in pthread_testcancel () from /usr/lib/libpthread.so.1 > #1 0x280a4902 in pthread_mutexattr_init () from /usr/lib/libpthread.so.1 > #2 0x00000000 in ?? () > (gdb) > uname -a > FreeBSD ant 5.4-RELEASE-p1 FreeBSD 5.4-RELEASE-p1 #3: Wed May 18 > 09:08:16 EEST 2005 ant@ant:/lin/fbsd_obj/usr/src/sys/ANT i386 -- mezz7@cox.net - mezz@FreeBSD.org FreeBSD GNOME Team http://www.FreeBSD.org/gnome/ - gnome@FreeBSD.org