$ perl --version This is perl, v5.10.0 built for i486-linux-gnu-thread-multi $ perl -MTerm::ReadLine -le 'print $Term::ReadLine::VERSION' 1.03 $ perl -MLWP::UserAgent -le 'print $LWP::UserAgent::VERSION;' 5.829

It is as supplied with Ubuntu Karmic 9.10 except I've installed loads of modules including Term::ReadLine::GNU so I could get readline support in the debugger.

Your request for a reproducible short example led me to find that it is once I've successfully called LWP::UserAgent's get that things go wrong.

#!/usr/bin/perl -tw use strict; use warnings; require 5.008008; use Config::IniFiles; use LWP::UserAgent; my $ua = LWP::UserAgent->new; $ua->env_proxy; my $r = $ua->get('http://www.perlmonks.org'); # assuming the above works, once you've stepped on it running any debu +gger # command including h for help results in screens full of Insecure dep +endency # warnings and my code after that point does not work the same as when + run # without the debugger. die "Failed to retrieve url, " . $r->status_line . "\n" if (!$r->is_success); print "hello\n";
perl -d -t /tmp/d.pl Loading DB routines from perl5db.pl version 1.3 Editor support available. Enter h or `h h' for help, or `man perldebug' for more help. main::(/tmp/d.pl:5): require 5.008008; DB<1> n main::(/tmp/d.pl:9): my $ua = LWP::UserAgent->new; DB<1> n main::(/tmp/d.pl:10): $ua->env_proxy; DB<1> main::(/tmp/d.pl:11): my $r = $ua->get('http://www.perlmonks.org'); DB<1> main::(/tmp/d.pl:16): die "Failed to retrieve url, " . $r->status_l +ine . "\n" main::(/tmp/d.pl:17): if (!$r->is_success); Insecure dependency in sprintf while running with -t switch at /usr/sh +are/perl/5.10/overload.pm line 99. Insecure dependency in sprintf while running with -t switch at /usr/sh +are/perl/5.10/overload.pm line 99. Insecure dependency in open while running with -t switch at /usr/local +/lib/perl/5.10.0/Term/ReadLine/Gnu.pm line 620. at /usr/local/lib/perl/5.10.0/Term/ReadLine/Gnu.pm line 620 Term::ReadLine::Gnu::Var::FETCH('Term::ReadLine::Gnu::Var=SCALAR(0 +x8e78258)') called at /usr/local/lib/perl/5.10.0/Term/ReadLine/Gnu.pm + line 298 Term::ReadLine::Gnu::readline('Term::ReadLine=HASH(0x8df56b8)', ' + DB<1> ') called at /usr/share/perl/5.10/perl5db.pl line 6414 DB::readline(' DB<1> ') called at /usr/share/perl/5.10/perl5db.pl + line 2227 DB::DB called at /tmp/d.pl line 16 Insecure dependency in sprintf while running with -t switch at /usr/sh +are/perl/5.10/overload.pm line 99. Insecure dependency in sprintf while running with -t switch at /usr/sh +are/perl/5.10/overload.pm line 99. Insecure dependency in sprintf while running with -t switch at /usr/sh +are/perl/5.10/overload.pm line 99. Insecure dependency in open while running with -t switch at /usr/local +/lib/perl/5.10.0/Term/ReadLine/Gnu.pm line 656. at /usr/local/lib/perl/5.10.0/Term/ReadLine/Gnu.pm line 656 Term::ReadLine::Gnu::Var::STORE('Term::ReadLine::Gnu::Var=SCALAR(0 +x8e78258)', 'Term::ReadLine::Gnu::Var=GLOB(0x8ef1638)') called at /us +r/local/lib/perl/5.10.0/Term/ReadLine/Gnu.pm line 298 Term::ReadLine::Gnu::readline('Term::ReadLine=HASH(0x8df56b8)', ' + DB<1> ') called at /usr/share/perl/5.10/perl5db.pl line 6414 DB::readline(' DB<1> ') called at /usr/share/perl/5.10/perl5db.pl + line 2227 DB::DB called at /tmp/d.pl line 16

At this point simply typing h results in screens of dependency output and then funny things happen like break points stop working etc - as described originally.


In reply to Re^2: Problems running debugger when in taint mode by mje
in thread Problems running debugger when in taint mode by mje

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.