W3C home > Mailing lists > Public > public-qa-dev@w3.org > August 2008

latest LWP running under perl -T dies for some values of agent()

From: olivier Thereaux <ot@w3.org>
Date: Tue, 26 Aug 2008 09:48:19 -0400
Message-Id: <8B3AB19C-ECCC-4BAB-ACBB-0510F679D949@w3.org>
To: dev list <public-qa-dev@w3.org>


Would any of the better perl hackers on this list be able to look into  
an issue we are running into with LWP?

the link checker has the issue:

So does the markup validator:

This seems to only happen with the most recent version of LWP when:
- running as perl -T
- using LWP::UserAgent
- calling $ua->agent(...)
- AND some other factors I have not yet figured out

LWP dies with:
   Software error: Insecure dependency in eval while running with -T  
switch at /usr/local/share/perl/5.10.0/HTTP/Message.pm line 413.

As as quick workaround I was thinking of running the $ua->agent()  
within and eval{} but it is clumsy, and does not quite fix the issue.

I have, however, been so far unable to produce a reduced test case.  
The exact causes of the crash still elude me: for example, the markup  
validator does NOT crash when sending an agent() defined with its  
default string, but does crash whenever passing $q->param('user- 
agent'). Maybe some kind of perl decoding/encoding weirdness, causing  
LWP to consider the string malformed? Hard to tell, really.

If any of you could look into this, it would be very valuable. If not,  
I'll just go with the eval{} and/or deprecate the user-agent override  

Received on Tuesday, 26 August 2008 13:48:54 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:36:27 UTC