From owner-freebsd-questions@FreeBSD.ORG Mon Dec 10 22:05:17 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 937D716A418 for ; Mon, 10 Dec 2007 22:05:17 +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 1AD4013C461 for ; Mon, 10 Dec 2007 22:05:16 +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 B3D1D552D8 for ; Mon, 10 Dec 2007 22:47:06 +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 B348754D47 for ; Mon, 10 Dec 2007 22:46:55 +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: <18269.45952.738032.77678@yeti.mininet> Date: Mon, 10 Dec 2007 22:45:36 +0100 To: freebsd-questions@freebsd.org Subject: firebird2 API woes 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: Mon, 10 Dec 2007 22:05:17 -0000 [apologies for cross-posting, but freebsd-database was not able to help] Hi, I'm having a hard time connecting to a firebird 2.0.3 server installed on FreeBSD 6.1 through the C API calls. The connection code is pretty much copy+pasted from the API documentation. However, all calls to isc_attach_database() cause the client library to segfault: #1 0x2852ceb4 in return_success () from /usr/local/lib/libfbclient.so.2 #2 0x28525179 in REM_attach_database () from /usr/local/lib/libfbclient.so.2 #3 0x2851386a in isc_attach_database () from /usr/local/lib/libfbclient.so.2 #4 0x284ece8e in _dbd_real_connect () from /usr/local/lib/dbd/libdbdfirebird.so #5 0x284eba19 in dbd_connect () from /usr/local/lib/dbd/libdbdfirebird.so #6 0x2808011d in dbi_conn_connect () from /usr/local/lib/libdbi.so.0 #7 0x0804982a in main (argc=1, argv=0xbfbfea2c) at test_dbi.c:91 The database I'm trying to attach to does exist, and I can attach to it using the isql command line utility. Is this a known issue? I have to admit that I'm not too familiar with firebird. All I'm trying to do is to upgrade the firebird driver of the libdbi-drivers project (http://libdbi-drivers.sourceforge.net, also available as a FreeBSD port). I'd greatly appreciate if someone more experienced in programming for firebird could give me a hint. I'll be happy to provide all sorts of debug information if needed. regards, Markus -- Markus Hoenicka markus.hoenicka@cats.de (Spam-protected email: replace the quadrupeds with "mhoenicka") http://www.mhoenicka.de