develooper Front page | perl.perl5.porters | Postings from August 2006

Re: [perl #8244] *FILE{IO} does not behave like *FILE for stat()and -X() operators

Thread Previous | Thread Next
Rafael Garcia-Suarez
August 10, 2006 02:47
Re: [perl #8244] *FILE{IO} does not behave like *FILE for stat()and -X() operators
Message ID:
Andrew Dougherty wrote:
> The following test script (stripped down from t/op/stat.t) illustrates the 
> problem.  It currently core dumps at the XXX line while trying to warn 
> "lstat() on filehandle %s", GvENAME(gv), and dumps core since gv is NULL.  
> I haven't dug deeply enough to decide whether to just beef up the warning 
> message (and the corresponding perldiag entry) or whether there's some way 
> to make some more useful information available.

Not seeing an obvious way to get more useful information, I've for now
plugged the hole by change #28690:

-                       "lstat() on filehandle %s", GvENAME(gv));
+                       "lstat() on filehandle %s", gv ? GvENAME(gv) : "");

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About