From owner-freebsd-threads@FreeBSD.ORG Sun Oct 19 07:58:11 2003 Return-Path: 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 24E6116A4B3 for ; Sun, 19 Oct 2003 07:58:11 -0700 (PDT) Received: from fri.itea.ntnu.no (fri.itea.ntnu.no [129.241.7.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3337B43F75 for ; Sun, 19 Oct 2003 07:58:09 -0700 (PDT) (envelope-from morten@rodal.no) Received: from localhost (localhost [127.0.0.1]) by fri.itea.ntnu.no (Postfix) with ESMTP id C8213C7189 for ; Sun, 19 Oct 2003 16:58:07 +0200 (CEST) Received: from slurp.rodal.no (m200h.studby.ntnu.no [129.241.135.200]) by fri.itea.ntnu.no (Postfix) with ESMTP id 6EB07C71D8 for ; Sun, 19 Oct 2003 16:58:07 +0200 (CEST) Received: (from morten@localhost) by slurp.rodal.no (8.12.10/8.12.10/Submit) id h9JEw6q7064303 for threads@freebsd.org; Sun, 19 Oct 2003 16:58:06 +0200 (CEST) (envelope-from morten) Date: Sun, 19 Oct 2003 16:58:06 +0200 From: Morten Rodal To: threads@freebsd.org Message-ID: <20031019145805.GA63314@slurp.rodal.no> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Content-Scanned: with sophos and spamassassin at mailgw.ntnu.no. Subject: libkse and bus error X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Oct 2003 14:58:11 -0000 I seem to be able to crash almost every pthread program that uses pthread_mutex'es. First I thought it was a problem with pthread_testcancel(), until I compiled libkse with DEBUG_FLAGS=-g on one of machines. Backtrace from a machine with DEBUG_FLAGS=-g and libkse: #0 0x28e6ed1b in kse_thr_interrupt () at {standard input}:15 #1 0x28e5f990 in _thr_sig_add (pthread=0x81fab00, sig=136293172, info=0x0) at /usr/src/lib/libpthread/thread/thr_sig.c:885 #2 0x28e687cb in kse_check_completed (kse=0x81fab00) at /usr/src/lib/libpthread/thread/thr_kern.c:1558 #3 0x28e6721c in kse_sched_multi (kmbx=0x17e) at /usr/src/lib/libpthread/thread/thr_kern.c:1021 #4 0x08207000 in ?? () #5 0x080bc6c6 in DCTransferView::DC_DownloadManagerCallBack(CObject*) () On a machine without DEBUG_FLAGS=-g this backtrace: (gdb) bt #0 0x288e96bb in pthread_testcancel () from /usr/lib/libkse.so.1 #1 0x288e371b in pthread_mutexattr_init () from /usr/lib/libkse.so.1 #2 0x288e219c in pthread_mutexattr_init () from /usr/lib/libkse.so.1 #3 0x082d6000 in ?? () #4 0x291e2807 in nsWindow::OnContainerFocusInEvent(_GtkWidget*, _GdkEventFocus*) () from /usr/X11R6/lib/firebird/lib/mozilla-1.5/components/libwidget_gtk2.so One machine is running a kernel from FreeBSD slurp.rodal.no 5.1-CURRENT FreeBSD 5.1-CURRENT #3: Tue Oct 14 20:47:45 CEST 2003 root@slurp.rodal.no:/usr/obj/usr/src/sys/slurp i386 the other from FreeBSD hauk10.idi.ntnu.no 5.1-CURRENT FreeBSD 5.1-CURRENT #2: Fri Sep 26 09:12:55 CEST 2003 root@hauk10.idi.ntnu.no:/usr/obj/usr/src/sys/hauk10 i386 For those of you who wonder, yes it is two different applications but the first one crashed with the exact same back trace as the second one before I installed a libkse with debugging information on slurp.rodal.no. -- Morten Rodal