--- parser3/src/classes/op.C 2026/09/25 12:55:42 1.282 +++ parser3/src/classes/op.C 2026/09/26 17:41:10 1.284 @@ -23,7 +23,7 @@ #include "syslog.h" #endif -volatile const char * IDENT_OP_C="$Id: op.C,v 1.282 2026/09/25 12:55:42 moko Exp $"; +volatile const char * IDENT_OP_C="$Id: op.C,v 1.284 2026/09/26 17:41:10 moko Exp $"; // defines @@ -548,6 +548,8 @@ static Try_catch_result try_catch(Reques try { result.processed_code=body_code(r, info); + } catch(const Recursion_limit_exception&) { + rethrow; } catch(const Exception& e) { size_t trace_bottom=r.exception_trace.bottom_index(); size_t trace_top=r.exception_trace.top_index(); @@ -578,9 +580,11 @@ static Try_catch_result try_catch(Reques } catch(...) { // restore execution for finally, but keep new error trace. try_context.restore(); + details.expire_trace(); rethrow; } + details.expire_trace(); if(!bhandled){ r.exception_trace.set_range(trace_bottom, trace_top); rethrow; @@ -839,6 +843,8 @@ static void _try_operator(Request& r, Me try{ // process try and catch code result=try_catch(r, process_try_body_code, &body_code, &catch_code); + } catch(const Recursion_limit_exception&) { + rethrow; } catch(...){ // process finally code but ignore the result if(finally_code){