From owner-freebsd-threads@FreeBSD.ORG Fri Jun 3 10:15:42 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 3472516A41C for ; Fri, 3 Jun 2005 10:15:42 +0000 (GMT) (envelope-from ant@emict.com) Received: from mail.emict.com (brig.emict.com [212.90.172.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0664643D48 for ; Fri, 3 Jun 2005 10:15:35 +0000 (GMT) (envelope-from ant@emict.com) Received: from [10.0.0.232] (unknown [10.0.0.232]) by mail.emict.com (Postfix) with ESMTP id 3DE951241D for ; Fri, 3 Jun 2005 13:15:05 +0300 (EEST) From: Andriy Tkachuk Organization: eMICT To: freebsd-threads@freebsd.org Date: Fri, 3 Jun 2005 13:15:04 +0300 User-Agent: KMail/1.8 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200506031315.04920.ant@emict.com> Subject: 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 10:15:42 -0000 hi folks. what can be the reason of $subj ? is the problem with libpthread or with my prog? 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