Maybe...

Programs using signals are tricky in perl (well, actually in any language), and I have been looking at Event.pm source code, and it is anything but simple, so I would not discard some bug there.

Also because you are (ab)using the module in some unusual way, sending a HUP signal from the HUP signal handler all the time without letting it rest for a while...

Yes I know, that sounds a bit silly, programs don't need to rest, but I have a reason to say that: the way perl vars are freed, marking them as mortals (see perlxs, perlguts and perlapi man pages for what's a mortal explanations).

Maybe Event.pm only closes the callback calling scope when the event queue is empty, and not after every callback invocation...

So, summarizing: send a bug report to the module author!!!


In reply to Re: Event.pm memory leek ? by salva
in thread Event.pm memory leek ? by asdfgroup

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.