From owner-freebsd-database@FreeBSD.ORG Sun Dec 9 17:54:55 2007 Return-Path: Delivered-To: freebsd-database@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DAE4216A418 for ; Sun, 9 Dec 2007 17:54:55 +0000 (UTC) (envelope-from markus.hoenicka@mhoenicka.de) Received: from mail.augustakom.net (mail.augustakom.net [80.81.6.20]) by mx1.freebsd.org (Postfix) with ESMTP id 9A16F13C458 for ; Sun, 9 Dec 2007 17:54:55 +0000 (UTC) (envelope-from markus.hoenicka@mhoenicka.de) Received: from ppp-62-216-202-236.dynamic.mnet-online.de ([62.216.202.236] helo=yeti.mininet) by mail.augustakom.net with esmtp (Exim 4.63) (envelope-from ) id 1J1Q3r-0006L8-Du for freebsd-database@freebsd.org; Sun, 09 Dec 2007 17:35:27 +0000 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: <18268.10011.812334.20904@yeti.mininet> Date: Sun, 9 Dec 2007 18:34:19 +0100 To: freebsd-database@freebsd.org X-SA-Exim-Connect-IP: 62.216.202.236 X-SA-Exim-Mail-From: markus.hoenicka@mhoenicka.de X-SA-Exim-Scanned: No (on mail.augustakom.net); SAEximRunCond expanded to false Subject: firebird2 API woes X-BeenThere: freebsd-database@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Database use and development under FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Dec 2007 17:54:55 -0000 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