From owner-freebsd-threads@FreeBSD.ORG Sun Oct 19 11:31:33 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 D6E5D16A4B3 for ; Sun, 19 Oct 2003 11:31:33 -0700 (PDT) Received: from royk.itea.ntnu.no (royk.itea.ntnu.no [129.241.190.230]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9042443FCB for ; Sun, 19 Oct 2003 11:31:32 -0700 (PDT) (envelope-from morten@rodal.no) Received: from localhost (localhost [127.0.0.1]) by royk.itea.ntnu.no (Postfix) with ESMTP id 32D9866EF2; Sun, 19 Oct 2003 20:31:31 +0200 (CEST) Received: from slurp.rodal.no (m200h.studby.ntnu.no [129.241.135.200]) by royk.itea.ntnu.no (Postfix) with ESMTP id CAA6B66ED6; Sun, 19 Oct 2003 20:31:30 +0200 (CEST) Received: (from morten@localhost) by slurp.rodal.no (8.12.10/8.12.10/Submit) id h9JIVUFR006214; Sun, 19 Oct 2003 20:31:30 +0200 (CEST) (envelope-from morten) Date: Sun, 19 Oct 2003 20:31:29 +0200 From: Morten Rodal To: Daniel Eischen Message-ID: <20031019183129.GA94145@slurp.rodal.no> References: <20031019145805.GA63314@slurp.rodal.no> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Content-Scanned: with sophos and spamassassin at mailgw.ntnu.no. cc: threads@freebsd.org Subject: Re: 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 18:31:34 -0000 On Sun, Oct 19, 2003 at 02:16:27PM -0400, Daniel Eischen wrote: > On Sun, 19 Oct 2003, Morten Rodal wrote: > > > 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 > > This is a problem. The mailbox pointer is invalid. > I thought it looked a bit strange. Any clues to what might have caused this? > > 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 > > > > > > I'm not having any of these problems with a -current from Oct 12th > on both SMP and UP systems. I'm using KDE and mozilla. > The backtrace with debugging symbols is the dcgui-qt port (net/dc-gui) which seems to use pthread mutexes quite heavily. It only starts 1 out of 10 times. > > How are you specifying libkse (/etc/libmap.conf or PTHREAD_LIBS)? > /etc/libmap.conf only contains (on both machines): libc_r.so.5 libkse.so.1 libc_r.so libkse.so > > Are you using nvidia at all? > slurp.rodal.no uses nvidia, but hauk10.idi.ntnu.no uses standard X11 ATI mach64 (I think) drivers. -- Morten Rodal