Subject Re: [firebird-support] Re: GPRE/API Different with FB 1.5?
Author Thad Humphries
I can compile with FB 1.5 gpre but the applications crash!

I just installed FB 1.5 and was able to access my old db and to recompile
about 35K lines of embedded SQL, including my UDFs. This is on SuSE Linux

With minor modifications, I was able to compile Eric Boyajian's
<ericboyajian@...> sample as C with gcc. I added '#include "ibase.h"'
and put the declaration for db_name and sqlString inside EXEC SQL BEGIN

Now my problem: Both your program and test programs build off of my database
crash with a segmentation fault when calling gds__unregister_cleanup(). In
gdb it looks like

$ gdb support
GNU gdb 5.3.92
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i586-suse-linux"...
(gdb) run
Starting program: /home/thad/optixdev/server6/odbfbd/test/support
[New Thread 16384 (LWP 28928)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 28928)]
0x40035fa0 in gds__unregister_cleanup ()
from /opt/firebird/lib/
(gdb) bt
#0 0x40035fa0 in gds__unregister_cleanup ()
from /opt/firebird/lib/
#1 0x40050ff9 in INET_set_clients () from /opt/firebird/lib/
#2 0x4006122f in port::disconnect() () from /opt/firebird/lib/
#3 0x40055084 in REM_detach_database ()
from /opt/firebird/lib/
#4 0x4004183c in isc_detach_database ()
from /opt/firebird/lib/
#5 0x08049058 in main ()