Bug #2932

Use of uninitialized value in numeric gt (>) at /usr/share/perl5/Authen/SASL/Perl.pm line 130.

Added by stephane de Labrusse almost 7 years ago. Updated about 6 years ago.

Status:CLOSEDStart date:
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:nethserver-directory
Target version:~FUTURE
Security class: Resolution:UPSTREAM
Affected version:v6.5 NEEDINFO:No

Description

Hi All

When I create a user with a fully updated nethserver I have this error in /var/log/messages

'Use of uninitialized value in numeric gt (>) at /usr/share/perl5/Authen/SASL/Perl.pm line 130.'

the code to blame is

128 sub securesocket {
129 my $self = shift;
130 return $_[0] unless ($self->property('ssf') > 0);
131
132 local GLOB; # avoid used only once warning
133 my $glob = \do { local *GLOB; };
134 tie(
$glob, 'Authen::SASL::Perl::Layer', $_[0], $self);
135 $glob;
136 }

Extra packages installed are : nethserver-mail-server nethserver-mail-common nethserver-directory

If you want to reproduce You have to create the service user roundcube

NethServer::Directory->new()->configServiceAccount('roundcube', NethServer::Directory::FIELDS_READ) || die("Failed to register roundcube service account");

or you can simply create a user in the server-manager and look in /var/log/messages : see attachment

error_unitialised_value (11.1 KB) stephane de Labrusse, 10/25/2014 03:16 AM


Related issues

Duplicated by NethForge - Bug #2929: Use of uninitialized value in numeric gt (>) at /usr/shar... CLOSED

History

#1 Updated by stephane de Labrusse almost 7 years ago

  • Tracker changed from Feature to Bug

That should be a bug

#2 Updated by Filippo Carletti almost 7 years ago

  • Affected version set to v6.5

When I create a user with a fully updated nethserver I have this error in /var/log/messages

I can confirm this. It's a warning, it has no side effects.
It will disappear when we'll upgrade to perl-Authen-SASL-2.16, ie when upstream (centos) updates.
But I see that centos7 still has 2.15 (an update was released yesterday).

I'd prefer not to fork a package for a log warning, what do you think?

#3 Updated by Davide Principi over 6 years ago

  • Duplicated by Bug #2929: Use of uninitialized value in numeric gt (>) at /usr/share/perl5/Authen/SASL/Perl.pm line 130. added

#4 Updated by Davide Principi over 6 years ago

Filippo Carletti wrote:

I'd prefer not to fork a package for a log warning, what do you think?

I agree to avoid the package forking.

As this is only a warning message, I would leave it as is. Anyway, we could add a rsyslog rule to ignore that message and keep the log clean.

#6 Updated by Davide Principi over 6 years ago

  • Category set to nethserver-directory
  • Status changed from NEW to TRIAGED
  • Target version set to v6.6-beta1
  • % Done changed from 0 to 20

Add a rule to rsyslog.d to silence the warning.

#7 Updated by Giacomo Sanchietti over 6 years ago

  • Target version changed from v6.6-beta1 to ~FUTURE

#8 Updated by Giacomo Sanchietti about 6 years ago

  • Status changed from TRIAGED to CLOSED
  • % Done changed from 20 to 100
  • Resolution set to UPSTREAM

We must wait the fix from upstream.

Just closing the bug since it has no side effects.

Also available in: Atom PDF