PerlDancer / PerlDancer/Dancer2

Deep recursion on anonymous subroutine at ../5.22.0/Dancer2/Core/App.pm line 1177.

Open
#1,466 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Enhancement
Dominant language
Perl
Stars
604
Forks
288
Avg merge
1d 5h
Merged PRs (30d)
5

Description

It is the 'eval { $EVAL_SHIM->($hook,@_); 1; }' line in the 'compile_hooks' function in version 0.206000.

I still could not figure out what causes it and if the problem is in my code or in Dancer2, I just wanted to record the issue and will update it when I understand it better. (I see this when I send out e-mails using the bin/sendmail.pl script in https://github.com/szabgab/Perl-Maven )

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in Dancer2/Core/App.pm around line 1177, especially the compile_hooks function and its eval call. Reproduce the deep recursion while sending mail with Perl-Maven's bin/sendmail.pl script, then trace the hook invocation to determine whether the cause is in Dancer2 or the caller. Done means the cause and an actionable fix or reproduction are established.

Written by the indexing model from the issue text.

Assessment

Tech stack
perl
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.