> I got the uuidlib UDF library off the IBPheonix website. > I installed it into > > CentOS 6 64 bit operating system by compiling the source. > I ensured the UDF has executable permision. > > Using Firebird 2.5.1 superclassic > > I declared the function as in example > > DECLARE EXTERNAL FUNCTION UUID_CREATE > CSTRING(22) > RETURNS PARAMETER 1 > ENTRY_POINT 'fn_uuid_create' MODULE_NAME 'uuidlib'; > > I called the function using > > "select uuid_create() from rdb$database" > > Then Firebird crashed saying "Error reading data from the connection". > > The firebird log says the below: > > midge3.basx.com.au Mon Feb 13 16:16:32 2012 > The user defined function: UUID_CREATE > referencing entrypoint: fn_uuid_create > in module: uuidlib > caused the fatal exception: Segmentation Fault. > The code attempted to access memory > without privilege to do so. > This exception will cause the Firebird server > to terminate abnormally. > > > midge3.basx.com.au (Client) Mon Feb 13 16:16:32 2012 > /opt/firebird/bin/fbguard: /opt/firebird/bin/fb_smp_server > terminated abnormally (-1) > > > Now, I have no Idea what to do. > Has this code been tested under 64 bit linux?
Starting with 2.1, there is a built-in function called GEN_UUID. No need for using an UDF. -- With regards, Thomas Steinmaurer (^TS^) Firebird Technology Evangelist http://www.upscene.com/ http://www.firebirdsql.org/en/firebird-foundation/
