EPIC debugger error "Use of freed ...

Anonymous
2010-09-23
2013-05-20

  • Anonymous
    2010-09-23

    Hi, 
      I am running Eclipse 3.6 and EPIC 0.6.35 and PadWalker 1.92 with ActiveState 5.10.  The problem I am seeing is the script would pass if just run in EPIC.  But under debug, EPIC would fail when the following section of code is executed.  The GetOptions function is a perl lib "Getopt::Long".  It would generate this error message: "Use of freed value in iteration at C:/workspace/.metadata/.plugins/org.epic.debug/perl5db.pl line 5812." 

    If you have any tips or suggestions, I would really appreciate it!

       GetOptions("d:s"    => \$InputParam{"DriveNum"},
                   "l:s"    => \$InputParam{"LogFileName"},
                   "ti:s"   => \$InputParam{"TestCaseID"},
                   "tf:s"   => \$InputParam{"TestCaseFile"},
                   "cf:s"   => \$InputParam{"ConfigFile"},
                   "s:s"    => \$InputParam{"Setup"},
                   "ip:s"   => \$InputParam{"OtherHostIPAddress"},
                   "type:s" => \$InputParam{"HostType"},
                   "tr:s"   => \$InputParam{"TimeToRun"},
                   "ta"     => \$InputParam{"TestCaseAllFlag"},
                   "bs:s"    => \$InputParam{"BlockSize"},
                   "pr:i"    => \$InputParam{"ProtectionType"},

     
  • Jan Ploski
    Jan Ploski
    2010-09-23

    Have you tried running it with the command-line (not EPIC) debugger? Does it fail then as well?

     

  • Anonymous
    2010-09-23

    Hi Jan,
      Thanks for your fast response!  I just tried the command line with -d and it works fine.

    I also make a really short script to demonstrate this issue:
    1. This demo script passes in perl -d cmd line. 
    2. In Komodo IDE debug it passed but it did throw some warning message: "semi-panic: attempt to dup freed string at C:/Program Files/ActiveState Komodo IDE 6/lib/support/dbgp/perllib/perl5db.pl line 4514." 
    3. In EPIC I got the same error message and quits the debugger. 

    So I am not sure if my settings in EPIC is not correct or something, Jan, can you please share your insight on this issue?

    Thanks! Mike

    The input arguments for the demo script are: -d 1 -l log.html -ti T-TUR-001 -cf TestUnitReady_CDBVal_SingleStep.cfg -s SHSI

    -------Demo Script -----------------------------------------------------------

    use Getopt::Long;    # required for 'GetOptions'

    ($retValue, $refInputParamHash) = &CheckArguments(@ARGV);
    print "My return value is $retValue, and my ref Input param Hash is $refInputParamHash\n";

    sub CheckArguments( )
    {
        my $result = SUCCESS; # contains the status
       
        # print "Arguments : @ARGV\n";

        # using GetOptions to assgin the provided command line arguments to the
        # corresponding varibale
        GetOptions("d:s"    => \$InputParam{"DriveNum"},
                   "l:s"    => \$InputParam{"LogFileName"},
                   "ti:s"   => \$InputParam{"TestCaseID"},
                   "tf:s"   => \$InputParam{"TestCaseFile"},
                   "cf:s"   => \$InputParam{"ConfigFile"},
                   "s:s"    => \$InputParam{"Setup"},
                   "ip:s"   => \$InputParam{"OtherHostIPAddress"},
                   "type:s" => \$InputParam{"HostType"},
                   "tr:s"   => \$InputParam{"TimeToRun"},
                   "ta"     => \$InputParam{"TestCaseAllFlag"},
                   "bs:s"    => \$InputParam{"BlockSize"},
                   "pr:i"    => \$InputParam{"ProtectionType"},
        );

    return $result,\%InputParam;
    }

     

  • Anonymous
    2010-10-08

    Bump.  Has anybody ran into this issue or might have a solution?
    Thanks in advance!

     
  • Jan Ploski
    Jan Ploski
    2010-10-08

    I can't reproduce your problem using Windows 7, ActiveState Perl 5.10.1, Eclipse 3.5.2 (but it shouldn't matter) and EPIC 0.6.35. I don't see any of the error messages mentioned in this thread.