perl debugger crashes on hitting tab

Bug #1438342 reported by Andrew Stevenson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
perl (Ubuntu)
New
Undecided
Unassigned

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

Tags: trusty
tags: added: trusty
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.