Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

firebird2 API woes

3 views
Skip to first unread message

Markus Hoenicka

unread,
Dec 9, 2007, 12:34:19 PM12/9/07
to freebsd-...@freebsd.org
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....@cats.de
(Spam-protected email: replace the quadrupeds with "mhoenicka")
http://www.mhoenicka.de

0 new messages