Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Dec 2007 22:45:36 +0100
From:      "Markus Hoenicka" <markus.hoenicka@mhoenicka.de>
To:        freebsd-questions@freebsd.org
Subject:   firebird2 API woes
Message-ID:  <18269.45952.738032.77678@yeti.mininet>

next in thread | raw e-mail | index | archive | help
[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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?18269.45952.738032.77678>