From owner-freebsd-threads@FreeBSD.ORG Wed Jun 11 09:08:18 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 B948F37B401; Wed, 11 Jun 2003 09:08:18 -0700 (PDT) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1341643FBF; Wed, 11 Jun 2003 09:08:18 -0700 (PDT) (envelope-from eischen@pcnet.com) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mail.pcnet.com (8.12.8/8.12.1) with ESMTP id h5BG8HNc013904; Wed, 11 Jun 2003 12:08:17 -0400 (EDT) Date: Wed, 11 Jun 2003 12:08:17 -0400 (EDT) From: Daniel Eischen To: Alexander Nedotsukov In-Reply-To: <3EE74525.7020809@mail.ru> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: threads@freebsd.org cc: "Matthew N. Dodd" Subject: Re: nvidia OpenGL and lib{thr,kse} related crash 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: Wed, 11 Jun 2003 16:08:19 -0000 On Thu, 12 Jun 2003, Alexander Nedotsukov wrote: > Daniel Eischen wrote: > > >On Wed, 11 Jun 2003, Alexander Nedotsukov wrote: > > > > > > > >>Matthew N. Dodd wrote: > >> > >> > >> > >>>Check http://www.minion.de/nvidia.html. > >>> > >>> > >>> > >>Looks like this patches mostly present in ports tree. For my > >>undestanding the missed two should prevent memory access after free() > >>inside kernel and memory allocation for DMA push buffers. Anyway I'll > >>check it later evening when can get closer to my pc. > >> > >> > > > >If your OpenGL applications or the libraries that they depend > >on are using any of the COMPAT4X signal syscalls, then they > > > The kernel driver compilled by me on -cuurent. The OpenGL library by > nvidia on 4.x for sure. > Can you say is this http://www.minion.de/files/machdep.c.diff supposed > to save %gs? > > >won't work with libthr or libkse. The COMPAT4X stuff in the > >kernel destroys %gs which libthr and libkse both rely on > >for their own use. Are you sure that all your applications > >and libraries are rebuilt under -current? You can try > >rebuilding your kernel without COMPAT4X and see if any > > > Well just give me a hint which one should be removed: > > options COMPAT_43 #Compatible with BSD 4.3 [KEEP > THIS!] > options COMPAT_FREEBSD4 #Compatible with FreeBSD4 Actually, it looks as if COMPAT_FREEBSD4 is OK and COMPAT_43 is not (sendsig() will destroy %gs). You can try removing both though and see what happens. -- Dan Eischen