Why does Perl's Devel::LeakTrace::Fast point to blank files and evals?
        Posted  
        
            by kt
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by kt
        
        
        
        Published on 2010-03-23T15:28:13Z
        Indexed on 
            2010/03/23
            17:33 UTC
        
        
        Read the original article
        Hit count: 252
        
perl
|memory-leaks
I am using Devel::LeakTrace::Fast to debug a memory leak in a perl script designed as a daemon which runs an infinite loop with sleeps until interrupted. I am having some trouble both reading the output and finding documentation to help me understand the output. The perldoc doesn't contain much information on the output. Most of it makes sense, such as pointing to globals in DBI. Intermingled with the output, however, are several
leaked SV(<LOCATION>) from (eval #) line #
Where the numbers are numbers and <LOCATION> is a location in memory. The script itself is not using eval at any point - I have not investigated each used module to see if evals are present. Mostly what I want to know is how to find these evals (if possible).
I also find the following entries repeated over and over again
leaked SV(<LOCATION>) from  line #
Where line # is always the same #. Not very helpful in tracking down what file that line is in.
© Stack Overflow or respective owner