#433 Perl debugger dies with Perl 5.8.8

v0.5.x
closed-out-of-date
nobody
None
5
2016-05-12
2007-08-23
Anonymous
No

My EPIC version is 0.5.39.

When I try to debug a Perl script (content doesn't matter), I get the following error in the console:

Can't use an undefined value as a symbol reference at /usr/lib/perl5/5.8.8/perl5db.pl line 5375.
(in cleanup) Can't use an undefined value as a symbol reference at /usr/lib/perl5/5.8.8/perl5db.pl line 5375.
Compilation failed in require.
at /tmp/test.pl line 0
main::BEGIN() called at /usr/lib/perl5/5.8.8/perl5db.pl line 0
eval {...} called at /usr/lib/perl5/5.8.8/perl5db.pl line 0
BEGIN failed--compilation aborted.
at /usr/local/share/imperia/trunk/cgi-bin/pws.pl line 0
Debugged program terminated. Use q to quit or R to restart,
use o inhibit_exit to avoid stopping after program termination,
h q, h R or h o to get additional info.
DB<1>

After a while an alert pops up "Timed out while waiting for Perl debugger connection".

I think the problem is related to this one: http://rt.perl.org/rt3/Public/Bug/Display.html?id=41461

The corresponding section in perl5db.pl is:

sub print_lineinfo {
# Make the terminal sensible if we're not the primary debugger.
resetterm(1) if $LINEINFO eq $OUT and $term_pid != $$;
local $\ = '';
local $, = '';
print $LINEINFO @_;
} ## end sub print_lineinfo

$LINEINFO is supposed to be a file handle but it is undefined and this causes the error. When I comment out the print statement, the debugger in Eclipse still doesn't work. I no longer see the error message but I still get the timeout.

I can reproduce that behavior on the command line:

PERLDB_OPTS="noTTY frame=2" perl -d printenv.pl

This produces exactly the same error message ("Can't use an undefined value as a symbol reference ..."). What is the culprit here? Perl or EPIC?

Thanks,
Guido Flohr
guido@imperia.net

Discussion

  • firas achkar

    firas achkar - 2007-09-23

    Logged In: YES
    user_id=1674330
    Originator: NO

    Hello,
    I have the same exact problem and been waiting for some meaningful feedback from someone how knows how to fix this issue.
    regards,
    f----

     
  • Oliver Trosien

    Oliver Trosien - 2016-05-12
    • status: open --> closed-out-of-date
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks