Skip to Content.
Sympa Menu

devel - [sympa-developpers] A trouble with DKIM

Subject: Developers of Sympa

List archive

Chronological Thread  
  • From: David Verdin <address@concealed>
  • To: address@concealed
  • Subject: [sympa-developpers] A trouble with DKIM
  • Date: Tue, 27 Nov 2012 10:30:26 +0100

Hi folks,

I am in quest for perl wisdom, here...

I have an error when parsing a DKIM-signed message, which I don't fully understand.

First, here are the logs I obtain when spooler.pl processes a DKIM-signed message:

err (top-level)#407 > Message::new#324 > tools::dkim_verifier#782 > (eval)#3 > (eval)#17 > (eval)#17 > tools::BEGIN#13 > (eval)#17 > (eval)#17 > tools::BEGIN#13 > (eval)#17 > (eval)#17 > Mail::DKIM::PublicKey::BEGIN#319 > (eval)#17 > (eval)#17 > Crypt::OpenSSL::RSA::BEGIN#17 > (eval)#17 DIED: Can't locate Crypt/OpenSSL/Bignum.pm in @INC (@INC contains: /usr/local/sympa-dv/bin /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .) at /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/Crypt/OpenSSL/RSA.pm line 17.
    
debug2 Site_r::send_notify_to_listmaster() (Site, , ...)
    
debug2 SDM::db_disconnect() ()
    
DIED: Can't locate Crypt/OpenSSL/Bignum.pm in @INC (@INC contains: /usr/local/sympa-dv/bin /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .) at /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/Crypt/OpenSSL/RSA.pm line 17.
    
In (top-level) at /usr/local/sympa-dv/bin/spooler.pl line 407.
    
In Message::new at /usr/local/sympa-dv/bin/Message.pm line 324.
    
In tools::dkim_verifier at /usr/local/sympa-dv/bin/tools.pm line 782.
    
In (eval) at (eval 162) line 3.
    
In (eval) at Crypt/OpenSSL/Bignum.pm line 17.
    
In (eval) at Crypt/OpenSSL/Bignum.pm line 17.
    
In tools::BEGIN at /usr/lib/perl5/site_perl/5.8.8/Mail/DKIM/Verifier.pm line 13.
    
In (eval) at Crypt/OpenSSL/Bignum.pm line 17.
    
In (eval) at Crypt/OpenSSL/Bignum.pm line 17.
    
In tools::BEGIN at /usr/lib/perl5/site_perl/5.8.8/Mail/DKIM/Signature.pm line 13.
    
In (eval) at Crypt/OpenSSL/Bignum.pm line 17.
    
In (eval) at Crypt/OpenSSL/Bignum.pm line 17.
    
In Mail::DKIM::PublicKey::BEGIN at /usr/lib/perl5/site_perl/5.8.8/Mail/DKIM/PublicKey.pm line 319.
    
In (eval) at Crypt/OpenSSL/Bignum.pm line 17.
    
In (eval) at Crypt/OpenSSL/Bignum.pm line 17.
    
In Crypt::OpenSSL::RSA::BEGIN at /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/Crypt/OpenSSL/RSA.pm line 17.
    
In (eval) at /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/Crypt/OpenSSL/RSA.pm line 17.
    
Erreur de segmentation (Note; this means "segmentation fault")
    Indeed the module
      "Crypt::OpenSSL::bignum was not installed. But it is not required
      by Crypt::OpenSSL::RSA. It is not event listed in the dependencies
      and the line where it is required is enclosed in an eval{}, like
      this:

BEGIN { eval { require Crypt::OpenSSL::Bignum; }; }

So, on my opinion, the process should not crash when Bignum is not found. That's what this eval is doing.

So, how comes the spooler.pl crashes?

Best regards,

David

Attachment: smime.p7s
Description: Signature cryptographique S/MIME




Archive powered by MHonArc 2.6.19+.

Top of Page