From c0ffaabe2e9d3b2a69b4436cb09728bc6a69b5d4 Mon Sep 17 00:00:00 2001 From: Vern Paxson Date: Wed, 11 Sep 2024 16:50:32 +0200 Subject: [PATCH] fixed lambda hash collision bug due to function descriptions lacking full parameter information --- src/Expr.cc | 2 +- src/Func.cc | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Expr.cc b/src/Expr.cc index 68c0ad1636..d03df0568f 100644 --- a/src/Expr.cc +++ b/src/Expr.cc @@ -4368,7 +4368,7 @@ ValPtr LambdaExpr::Eval(Frame* f) const { } void LambdaExpr::ExprDescribe(ODesc* d) const { - d->Add(expr_name(Tag())); + type->Describe(d); if ( captures && d->IsReadable() ) { d->Add("["); diff --git a/src/Func.cc b/src/Func.cc index 1372adfeaf..ca25db62cc 100644 --- a/src/Func.cc +++ b/src/Func.cc @@ -672,6 +672,8 @@ std::optional ScriptFunc::SerializeCaptures() const { void ScriptFunc::Describe(ODesc* d) const { d->Add(GetName().c_str()); + d->AddSP(":"); + type->Describe(d); d->NL(); d->AddCount(frame_size);