Subject Re: UDF and server crashes on linux
---In, <michkurc@...> wrote :

Tested on FB 2.5.7 and 3.02 ubuntu_x64 14.04 (two different machines);
On windows fbx64 works ok.

udf return integer by value.

more than 2 connections to db
sql : select count(*) from table where validfield(field) = 1 on each connection
table with > 2 milions record

udf written in object pascal ( no memory leaks and other problems)

other implementation this udf in C++ works fine on linux and windows...

[Thread 0x7fa737789700 (LWP 28692) exited]
[New Thread 0x7fa737789700 (LWP 28693)]
[New Thread 0x7fa736dd7700 (LWP 28694)]
[New Thread 0x7fa73603f700 (LWP 28698)]
An unhandled exception occurred at $00007FA736178E2C:
EStackOverflow: Stack overflow

  This is object pascal exception, not Firebird's one.

  Start isql, connect in embedded (aka local) mode, attach gdb to the process and run
query with problem UDF. It should help you to find a real reason of the issue.