Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test failures due to hash randomisation in perl 5.17.6 [rt.cpan.org #81381] #230

Closed
oalders opened this issue Mar 31, 2017 · 3 comments
Closed

Comments

@oalders
Copy link
Member

oalders commented Mar 31, 2017

Migrated from rt.cpan.org#81381 (status was 'open')

Requestors:

  • 'spro^^%^6ut#@&$%*c

From $_ = 'spro^^%^6ut#@&$�>#!^!#&!pan.org'; y/a-z.@//cd; print on 2012-11-23 16:38:12:


From yves@cpan.org on 2012-11-27 21:35:32:

On Fri Nov 23 11:38:12 2012, SPROUT wrote:
> Perl 5.17.6 randomises hash seeds, exposing an existing bug in
> t/base/ua.t:
> 
> #    Expected: "http://example.com"
> #  base/ua.t line 101 is: ok($ua->proxy('http'),
> "http://example.com");
> # Test 34 got: "http://10.10.10.2:8080" (base/ua.t at line 105)
> #    Expected: "http://example.com"
> #  base/ua.t line 105 is: ok($ua->proxy('http'),
> "http://example.com");
> 
> I happen to have HTTP_PROXY set to http://10.10.10.2:8080 and
> http_proxy unset.
> 
> The test script sets http_proxy.  Which of HTTP_PROXY and http_proxy
> is picked up by sub
> LWP::UserAgent::env_proxy is going to be random, so the test will fail
> half the time.

I just pushed:

https://github.com/demerphq/libwww-
perl/commit/96791d2f72dc20ab6ff3c6ce6442a8db509bcfcc

and submitted a pull request:

https://github.com/gisle/libwww-perl/pull/3

to have it merged to 

https://github.com/gisle/libwww-perl

but i notice that itself is a fork of 

https://github.com/libwww-perl/libwww-perl

which has a lot of pull requests of its own:

https://github.com/libwww-perl/libwww-perl/pulls

So I am unclear if i pushed my request to the right place.

Anyway this is a major blocker for 5.18.

https://github.com/gisle/libwww-perl/pull/3

From $_ = 'spro^^%^6ut#@&$�>#!^!#&!pan.org'; y/a-z.@//cd; print on 2012-11-27 21:51:41:


@genio
Copy link
Member

genio commented Mar 31, 2017

@demerphq I don't think this issue still exists. The PR you submitted was for the old repository and should likely be closed out. I compared your changes against what's currently in LWP/UserAgent.pm and don't seem to see the same problems.

Can you test now and let us know if the problem still exists?

@demerphq
Copy link
Contributor

demerphq commented Apr 1, 2017 via email

@genio
Copy link
Member

genio commented Apr 2, 2017

@demerphq Thanks. I'll close out it out for now. Please don't hesitate to yell at us if it turns out I'm wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants