Can you reproduce this error? Or fix it? It only happens under taint. Editing either the html/codefile can make the error disappear (similar to disappearing segfault). I've reproduced this on activeperl5.8.9, strawberry5.10, and perl v5.11.0 I compiled myself

perl -T taintbug.pl file:http.taint.html

#!/usr/bin/perl -- -- # without Taint there is no bug use strict; use warnings; warn "THIS REPLICATES THE BUG\n";warn $_ for %INC; { #NOBUG without $ua ##### # # # # use WWW::Mechanize; my $ua = WWW::Mechanize->new(); my $url = shift; die "NoBug WO file:httpbug.htm" unless $url and length $url and $url =~ m!http.*?(\w).(\w)!i ; $ua->get($url); my $pager = parsepage($ua); warn; } exit(0); sub parsepage { my $ua = shift; my %so; my $so = join "\n", $ua->content =~/(so\.addVariable\(\s*'.+?'\s*, +\s*'.+?'\s*\)\s*;)/mg; warn $so; warn; # Insecure dependency in kill while running with -T switc +h at C:/Perl/site/lib/WWW/Mechanize.pm line 2326. #Faulting application perl.exe, version 5.8.9.825, faulting module msv +crt.dll, version 7.0.2600.1106, fault address 0x00033283. # 11111111111111111111111111111111111111111111111111111111111111111 +1 1 while($so =~/so\.addVariable\('([^']+)','([^']+)'\);/mg){ warn "b $1 $2"; $so{"$1"}="$2"; warn "a $1 $2"; } require CGI; return CGI->new({%so}); } __END__

In reply to Faulting application perl.exe, version 0.0.0.0, faulting module msvcrt.dll, version 7.0.2600.1106, fault address 0x0003334c. by Anonymous Monk

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.