From owner-freebsd-questions@FreeBSD.ORG Tue Dec 18 21:52:39 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 91E7E16A418 for ; Tue, 18 Dec 2007 21:52:39 +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 430EE13C465 for ; Tue, 18 Dec 2007 21:52:39 +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 917F25407B; Tue, 18 Dec 2007 22:52:47 +0100 (CET) Received: from yeti.mininet (rrzras1-11.rz.uni-regensburg.de [132.199.208.21]) by rrzmta2.rz.uni-regensburg.de (Postfix) with ESMTP id 15298552DA; Tue, 18 Dec 2007 22:52:27 +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: <18280.16584.560947.243192@yeti.mininet> Date: Tue, 18 Dec 2007 22:51:04 +0100 To: "Heiko Wundram (Beenic)" In-Reply-To: <200712182220.43401.wundram@beenic.net> References: <18280.11993.211065.843394@yeti.mininet> <200712182220.43401.wundram@beenic.net> Cc: freebsd-questions@freebsd.org Subject: Re: threading and dlopen() X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Dec 2007 21:52:39 -0000 Heiko Wundram (Beenic) writes: > Have you tried compiling your program with > > gcc -fpic -pthread ... > > ? I don't have any more insight into this problem, at least as I'm not using > dbi and as such am not able to reproduce it, but I'd guess that if your > program doesn't conform to the platform's required thread semantics (which > are turned on by -fpic -pthread) but uses code that does require this, you're Thanks for the hint, but that didn't help. I've changed the appropriate acinclude.m4, Makefile.am, and configure.in files of both libdbi and libdbi-drivers to make sure that: - libdbi.so (the lib that dlopen()s the drivers) is built with -fpic -pthread - libdbifirebird.so (the firebird driver) is built with -fpic -pthread - test_dbi (linked against libdbi.so) is built with -fpic -pthread Still no luck, and the test app crashes at the very same point. Any other suggestions? regards, Markus -- Markus Hoenicka markus.hoenicka@cats.de (Spam-protected email: replace the quadrupeds with "mhoenicka") http://www.mhoenicka.de