From owner-freebsd-hackers@FreeBSD.ORG Mon Dec 31 23:00:13 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B444F16A419 for ; Mon, 31 Dec 2007 23:00:13 +0000 (UTC) (envelope-from markus.hoenicka@mhoenicka.de) Received: from rrzmta2.rz.uni-regensburg.de (rrzmta2.rz.uni-regensburg.de [194.94.155.53]) by mx1.freebsd.org (Postfix) with ESMTP id 6E9B913C43E for ; Mon, 31 Dec 2007 23:00:13 +0000 (UTC) (envelope-from markus.hoenicka@mhoenicka.de) Received: from rrzmta2.rz.uni-regensburg.de (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id 79048555CB; Tue, 1 Jan 2008 00:00:20 +0100 (CET) Received: from yeti.mininet (rrzras1-25.rz.uni-regensburg.de [132.199.208.35]) by rrzmta2.rz.uni-regensburg.de (Postfix) with ESMTP id C2CCF55522; Tue, 1 Jan 2008 00:00:04 +0100 (CET) X-Mailer: emacs 21.3.1 (via feedmail 8 I); VM 7.19 under Emacs 21.3.1 From: "Markus Hoenicka" MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18297.29732.232221.862066@yeti.mininet> Date: Mon, 31 Dec 2007 23:58:44 +0100 To: John Baldwin In-Reply-To: <200712311735.43320.jhb@freebsd.org> References: <18297.6718.750894.937199@yeti.mininet> <18297.20596.564077.568365@yeti.mininet> <47796B43.9050704@elischer.org> <200712311735.43320.jhb@freebsd.org> X-Mailman-Approved-At: Tue, 01 Jan 2008 01:29:20 +0000 Cc: freebsd-hackers@freebsd.org Subject: Re: dlopen(), atexit() crash on FreeBSD (testcase included) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Dec 2007 23:00:13 -0000 John Baldwin writes: > need this. If you used a regular old static C++ singleton on 6.x instead of > trying to be cute and call atexit() directly you would be fine. I've no idea > if Linux treats atexit() special. > Just to make it clear: it is not me trying to be cute but the Firebird folks. I'm just trying to use their client library in a dlopen()ed module, and I was investigating whether something can be done from the FreeBSD end. I've also forwarded Alexander's reply to the Firebird folks for consideration. regards, Markus -- Markus Hoenicka markus.hoenicka@cats.de (Spam-protected email: replace the quadrupeds with "mhoenicka") http://www.mhoenicka.de