From owner-freebsd-threads@FreeBSD.ORG Sun Nov 23 08:11:39 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 631AA16A4CE for ; Sun, 23 Nov 2003 08:11:39 -0800 (PST) Received: from ray.idi.ntnu.no (ray.idi.ntnu.no [129.241.107.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id A2B7843F93 for ; Sun, 23 Nov 2003 08:11:37 -0800 (PST) (envelope-from morten@rodal.no) Received: from hauk10.idi.ntnu.no (hauk10.idi.ntnu.no [129.241.102.222]) by ray.idi.ntnu.no (8.12.10/8.12.10) with ESMTP id hANGBXDG023072; Sun, 23 Nov 2003 17:11:33 +0100 (MET) Received: from rodal.no (localhost [127.0.0.1]) by hauk10.idi.ntnu.no (8.12.10/8.12.10) with ESMTP id hANGBWkX000286; Sun, 23 Nov 2003 17:11:32 +0100 (CET) (envelope-from morten@rodal.no) Message-ID: <3FC0DC2B.7020602@rodal.no> Date: Sun, 23 Nov 2003 17:11:23 +0100 From: Morten Rodal User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.5) Gecko/20031026 Thunderbird/0.3 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Daniel Eischen References: In-Reply-To: X-Enigmail-Version: 0.81.7.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig254EA64EF15C9AA828B2EDA1" X-Spam-Status: No, hits=-8.9 required=4 X-Virus-Scanned: by amavisd-new-IDI 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, 23 Nov 2003 16:11:39 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig254EA64EF15C9AA828B2EDA1 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Daniel Eischen wrote: > On Sun, 19 Oct 2003, Morten Rodal wrote: >>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? > > > When I've seen it before, it's when %gs becomes corrupted. Nvidia > uses static ldt allocation and this can screw things up. If you > are getting any static ldt allocations out of the kernel, that is > the problem. > I hate to rip up in old mails, but I am now able to crash Mozilla Firebird at command. It dies with the same strange traceback as I got with dc++ (which this thread originally addressed). When ordering a airplane ticket from www.scandinavian.net Mozilla Firebird will crash when confirming the payment with a signal 10. This happens on three completly different computers; * Dual Pentium II 300MHz, libkse, kernel from Nov 19 * Pentium III 933MHz, libkse, kernel from Nov 3 * Pentium 4 1.7GHz, libkse, kernel from Nov 21 Only the Dual Pentium is running nvidia drivers. The others are running X11 drivers. All of them produce a MozillaFirebird-bin.core which has this backtrace (cut down to an absolute minimum since it is rather huge): #0 0x288c2ebb in pthread_testcancel () from /usr/lib/libkse.so.1 #1 0x288bc91b in pthread_mutexattr_init () from /usr/lib/libkse.so.1 #2 0x288bb36c in pthread_mutexattr_init () from /usr/lib/libkse.so.1 #3 0x09b8d000 in ?? () #4 0x283c5cac in gtk_widget_hide () from /usr/X11R6/lib/libgtk-x11-2.0.so.200 I will recompile libkse with DEBUG_FLAGS=-g and see if I cant get any more accurate info than this. -- Morten Rodal --------------enig254EA64EF15C9AA828B2EDA1 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQE/wNwzbWe1Cy11WVsRAvoCAJoCePBDjtyqicD6m1sMb7yyiPRNNACfZBCd AkNVH9abMbXyKsUfZ6a4E3Q= =lLfq -----END PGP SIGNATURE----- --------------enig254EA64EF15C9AA828B2EDA1--