Subject | BLOB_SUBSTR from udflib crashes my FB2.5 on linux x64 |
---|---|
Author | Ivan Zelensky |
Post date | 2011-08-20T16:02:33Z |
I'm compilied example library 'udflib' on my Ubuntu x64:
$gcc -c udflib.c -fPIC
$gcc -shared -Wall -o udflib.so udflib.o
Then declare function:
DECLARE EXTERNAL FUNCTION BLOB_SUBSTR
blob, Integer, Integer
RETURNS CSTRING(1024)
ENTRY_POINT 'fn_blob_substr'
MODULE_NAME 'udflib';
And when I try to use this UDF it crashes my server. But when I did same
things at Ubuntu x32 all works. What I did wrong?
Thanks,
Ivan
[Non-text portions of this message have been removed]
$gcc -c udflib.c -fPIC
$gcc -shared -Wall -o udflib.so udflib.o
Then declare function:
DECLARE EXTERNAL FUNCTION BLOB_SUBSTR
blob, Integer, Integer
RETURNS CSTRING(1024)
ENTRY_POINT 'fn_blob_substr'
MODULE_NAME 'udflib';
And when I try to use this UDF it crashes my server. But when I did same
things at Ubuntu x32 all works. What I did wrong?
Thanks,
Ivan
[Non-text portions of this message have been removed]