My Perl script runs with taint mode on and in normal use does not report any taint warnings. However, when I try and run it under the debugger (-d) it
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 +xb318148)') called at /usr/local/lib/perl/5.10.0/Term/ReadLine/Gnu.pm + line 298 Term::ReadLine::Gnu::readline('Term::ReadLine=HASH(0xb29dc98)', ' + 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 /usr/share/perl/5.10/perl5db.pl line 9451 DB::fake::at_exit() called at /usr/share/perl/5.10/perl5db.pl line + 9022 DB::END() called at queued.pl line 11059 eval {...} called at queued.pl line 11059 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 +xb318148)', 'Term::ReadLine::Gnu::Var=GLOB(0xb62ac08)') called at /us +r/local/lib/perl/5.10.0/Term/ReadLine/Gnu.pm line 298 Term::ReadLine::Gnu::readline('Term::ReadLine=HASH(0xb29dc98)', ' + 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 /usr/share/perl/5.10/perl5db.pl line 9451 DB::fake::at_exit() called at /usr/share/perl/5.10/perl5db.pl line + 9022 DB::END() called at queued.pl line 11059 eval {...} called at queued.pl line 11059
The latter two of these makes it impossible to debug in taint mode. If run without taint mode (no -t on the shebang line or the command line) it seems to work fine in the debugger. Obviously I can debug out of taint mode but I wondered if anyone else had come across this and had any other advice.
In reply to Problems running debugger when in taint mode by mje
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |