Subject | Re: [firebird-support] Firebird 2.5 crashing after calling UDF |
---|---|
Author | Tomasz Tyrakowski |
Post date | 2011-10-21T14:46:13Z |
Hi,
Could you post the source of just a single function from your C code
that crashes the server when called from an SQL statement, the exact
command line you use to compile the UDF, and the declaration of the UDF
in the database (DECLARE EXTERNAL FUNCTION ...)? I might be able to make
some quick tests on one of my 64-bit Debians and at least tell you
whether the problem lies in the UDF itself or is related to your OS
installation.
Also, make sure you link your UDF with proper libraries, i.e. don't mix
32 and 64 bit code.
regards
Tomasz
Could you post the source of just a single function from your C code
that crashes the server when called from an SQL statement, the exact
command line you use to compile the UDF, and the declaration of the UDF
in the database (DECLARE EXTERNAL FUNCTION ...)? I might be able to make
some quick tests on one of my 64-bit Debians and at least tell you
whether the problem lies in the UDF itself or is related to your OS
installation.
Also, make sure you link your UDF with proper libraries, i.e. don't mix
32 and 64 bit code.
regards
Tomasz
On 2011-10-21 04:47, sir_wally_lewis wrote:
> Hi,
>
> we are trying to get a linux version ( 64 bit ) of firebird 2.5 running. We have tried CentOS 6 and Fedora 15.
>
> OS = CentOS 6 kernel 2.6.32-71.29.1.el6.x86_64 #1 SMP
> Firebird = FirebirdCS-2.5.1.26351-0.amd64.rpm
>
> We compile our code in both "C" and "Pascal" ( lazarus ).
>
> This is the same "C" code we use for Firebird 2.1 CentOS 5 and no problems.
>
> When the UDF is called which was compiled in "C" the firebird server stops immediately and connection is dropped.
>
> The Firebird.Log reads
>
> /opt/firebird/bin/fbguard: /opt/firebird/bin/fb_smp_server normal shutdown.
>
>
> When the UDF is called that was compiled in "Pascal" ( lazarus ).
>
> we get no errors, however once connection is closed.
>
> The server shuts down and does not accept anymore connections.
>
> We are coming to the end of our tether with this.
>
> Kind Regards,
>
> Robert.
>
>
>
--
__--==============================--__
__--== Tomasz Tyrakowski ==--__
__--== SOL-SYSTEM ==--__
__--== http://www.sol-system.pl ==--__
__--==============================--__