From owner-freebsd-threads@FreeBSD.ORG Thu May 29 07:58:13 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 6316F37B401 for ; Thu, 29 May 2003 07:58:13 -0700 (PDT) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id B1E1843F85 for ; Thu, 29 May 2003 07:58:12 -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 h4TEwBNc002951; Thu, 29 May 2003 10:58:11 -0400 (EDT) Date: Thu, 29 May 2003 10:58:11 -0400 (EDT) From: Daniel Eischen To: Martin Blapp In-Reply-To: <20030529154304.N94836@cvs.imp.ch> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-threads@freebsd.org Subject: Re: malloc(): error: recursive call 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: Thu, 29 May 2003 14:58:13 -0000 On Thu, 29 May 2003, Martin Blapp wrote: > > Hi, > > >Note that if you are using my other spinlock patch > >(from http://people.freebsd.org/~deischen/kse/spinlock.diffs), > >that also solves the problem but in a slightly different > >way. That patch forces the library to reference the > >spinlock functions (the new spinlock implementation needs > >some initialization), so the table of references doesn't > >need to be changed (like the patch in the prior email does). > > With this patch konsole from kde seems to work properly. But > OpenOffice locks now up during startup. And it didn't lock up before (with libkse and without the patch)? I'd be surprised if OpenOffice worked at all due to rtld-elf not being thread-safe for libkse. kan sent some patches to fix this (re@ has them for review) so you might also try using these to see if OpenOffice works any better: http://people.freebsd.org/~deischen/rtld/rtld.diff http://people.freebsd.org/~deischen/rtld/libs.diff Also, here's the complete patch for the spinlock problem and the signal handler calling itself repeatedly after a fork(): http://people.freebsd.org/~deischen/kse/spinlock.diffs (recently updated) -- Dan Eischen