← Back to team overview

touch-packages team mailing list archive

[Bug 1438342] [NEW] perl debugger crashes on hitting tab

 

Public bug reported:

With Term::ReadLine::Perl installed run:

perl -d -E 'say("hello world")'

At the debugger prompt type "p $" and hit tab. It dies with:

Can't use string ("::") as a HASH ref while "strict refs" in use at /usr/share/perl/5.18/perl5db.pl line 9513.
 at /usr/share/perl/5.18/perl5db.pl line 9513.
	DB::db_complete('$', 'p $', 2) called at sub readline::completion_matches line 10
	readline::completion_matches('CODE(0x249c810)', '$', 'p $', 2) called at sub readline::complete_internal line 27
	readline::complete_internal('\x{9}') called at sub readline::F_Complete line 16
	readline::F_Complete(1, 9) called at /usr/local/share/perl/5.18.2/Term/ReadLine/readline.pm line 1669
	readline::readline('  DB<1> ') called at /usr/local/share/perl/5.18.2/Term/ReadLine/Perl.pm line 11
	Term::ReadLine::Perl::readline('Term::ReadLine::Perl=ARRAY(0x22fafc8)', '  DB<1> ') called at /usr/share/perl/5.18/perl5db.pl line 7281
	DB::readline('  DB<1> ') called at /usr/share/perl/5.18/perl5db.pl line 1831
	DB::_DB__read_next_cmd(undef) called at /usr/share/perl/5.18/perl5db.pl line 2741
	DB::DB called at -e line 1
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.

This was fixed in 5.18.3 I understand
(https://rt.perl.org/Public/Bug/Display.html?id=120827) but the newest
available in the repo for 14.04 is 5.18.2.

I am running:

Description:	Ubuntu 14.04.2 LTS
Release:	14.04

and my perl package is 5.18.2-2ubuntu1

** Affects: perl (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to perl in Ubuntu.
https://bugs.launchpad.net/bugs/1438342

Title:
  perl debugger crashes on hitting tab

Status in perl package in Ubuntu:
  New

Bug description:
  With Term::ReadLine::Perl installed run:

  perl -d -E 'say("hello world")'

  At the debugger prompt type "p $" and hit tab. It dies with:

  Can't use string ("::") as a HASH ref while "strict refs" in use at /usr/share/perl/5.18/perl5db.pl line 9513.
   at /usr/share/perl/5.18/perl5db.pl line 9513.
  	DB::db_complete('$', 'p $', 2) called at sub readline::completion_matches line 10
  	readline::completion_matches('CODE(0x249c810)', '$', 'p $', 2) called at sub readline::complete_internal line 27
  	readline::complete_internal('\x{9}') called at sub readline::F_Complete line 16
  	readline::F_Complete(1, 9) called at /usr/local/share/perl/5.18.2/Term/ReadLine/readline.pm line 1669
  	readline::readline('  DB<1> ') called at /usr/local/share/perl/5.18.2/Term/ReadLine/Perl.pm line 11
  	Term::ReadLine::Perl::readline('Term::ReadLine::Perl=ARRAY(0x22fafc8)', '  DB<1> ') called at /usr/share/perl/5.18/perl5db.pl line 7281
  	DB::readline('  DB<1> ') called at /usr/share/perl/5.18/perl5db.pl line 1831
  	DB::_DB__read_next_cmd(undef) called at /usr/share/perl/5.18/perl5db.pl line 2741
  	DB::DB called at -e line 1
  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.

  This was fixed in 5.18.3 I understand
  (https://rt.perl.org/Public/Bug/Display.html?id=120827) but the newest
  available in the repo for 14.04 is 5.18.2.

  I am running:

  Description:	Ubuntu 14.04.2 LTS
  Release:	14.04

  and my perl package is 5.18.2-2ubuntu1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/perl/+bug/1438342/+subscriptions


Follow ups

References