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

intermittent error: "oid is undefined when calling $asn1->encode" #32

Open
autra opened this issue May 25, 2016 · 0 comments
Open

intermittent error: "oid is undefined when calling $asn1->encode" #32

autra opened this issue May 25, 2016 · 0 comments

Comments

@autra
Copy link

autra commented May 25, 2016

With perl v5.22.1, using this test case: testcase.zip I have this error from time to time :

Failure: oid is undefined at test.pl line 21.

Line 21 is:

my $data = $asn1->encode(sig => $body,
    alg => {oid => sha512WithRSAEncryption()});

This is intermittent, so I use

for i in {1..10}; do                              
perl test.pl;      
done;

to easily reproduce.

Sergei Zhirikov, the maintainer of Uhura told me:

Further investigation led me to the conclusion that something inside Convert::ASN1 breaks with Perl hash randomization introduced in Perl 5.18 [...]. Fortunately, Perl allows to disable that randomization to mimic pre-5.18 behavior. By setting these environment variables: PERL_HASH_SEED=0x0 PERL_PERTURB_KEYS=0, I was able to run both the test script and the full uhura command without failures

I don't really know perl or its ecosystem, so I hope you'll have the info you need. Don't hesitate to ping me if you need more. Thanks!

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

1 participant