There is completely pointless expression like this:
select x+x+ ... repeated lot of times ... + x+x
select cast(1. as double precision) / cast(5. as double precision) as x from rdb$database
After number of terms ('x') in this expression will achieve ~20'037 FB will crash.
First will 'give up' Classic, then SuperServer.
WI-V22.214.171.124221 - CS and SS
Dumps and stack traces can be found here:
Expressions (two .sql scripts, they differs only in one term which causes crash in 3.0 CS; see that link) are in file:
eval-too-long-expr-leads-fb-to-crash.7z (see also attach to this ticket)