Alex Peshkoff Just fixed CORE-3646:

Segmentation fault for a FreePascal program,

that connects to a FB 2.5 database inside a thread.

The segmentation fault just occurs, when there is a

Firebird exception caught inside the thread.