#633 EPIC terminates the perl interpreter

v0.6.x
open
nobody
Core (65)
5
2011-08-12
2011-08-12
Anonymous
No

Hello,

Stable release of EPIC(0.5.46 version) terminates the perl interpreter when I want to run or debug a perl script.
I've upgraded the testing release of EPIC(0.6,40 version) but when i run or to debug perl script, an error was occured.
The error is:
"Fatal: failed to find source perl5db.pl for epic_breakpoints.pm"

What can I do to run or debug perl scripts?

Configuration is:
Win XP SP3
ActivePerl v5.12.4
Eclipse Indigo

Discussion

  • Jan Ploski
    Jan Ploski
    2011-08-12

    Before launching the script EPIC searches for perl5db.pl in each of the directories found in @INC path, which you cana output with

    foreach $t(@INC) {print $t."\n";}

    The interpreter type configured in Preferences (Standard or Cygwin) also plays a role for mapping paths. Maybe this will give you a clue why it is not finding the file. Possibly you can fix this yourself by moving files around or changing something in the environment.

     
  • foreach my $t(@INC) {print $t."\n";}

    output is:
    C:/Perl/site/lib
    C:/Perl/lib
    .
    I've looked to "C:\Perl\lib" folder and "perl5db.pl" exists in "C:\Perl\lib" folder.

    I am using the ActivePerl so my interpreter type is "standard" Also I've changed it as Cygwin but now complains about "mount.exe"

    I've copied the "perl5db.pl" file to folders mentioned above but still error exists. (Also to project folder)

    What can I do?

     
  • Jan Ploski
    Jan Ploski
    2011-08-12

    Interpreter type Standard is correct for ActivePerl, Cygwin is wrong.

    You can see the logic involved here (method patchPerl5Db):

    https://github.com/jploski/epic-ide/blob/testing/org.epic.debug/src/org/epic/debug/PerlDebugPlugin.java

    It seems that for some reason new File("C:/Perl/lib", "perl5db.pl").exists() returns false on your machine. Maybe file permissions? Can the user under which Eclipse is running access the directory/file?

     
  • I've founded the problem. The problem is: Comodo Antivirus sends the perl files to sandbox before run. So "get_env.pl" and "get_inc.pl" run at sandbox. Sandbox prevents to run these files properly. I've discard to run these perl files in sandbox now works normally.
    Stable release of EPIC terminates the perl interpreter with negative status cause is Sandbox again. I don't know other antivirus programs has sandbox behavior. It is good to indicate this behavior, If users of epic encounters this problem. Thanks for suggestions and respond.