Your message dated Sun, 16 Jun 2013 13:19:19 +0000
with message-id <e1uocrx-000408...@franck.debian.org>
and subject line Bug#708180: fixed in libnet-server-perl 2.007-2
has caused the Debian Bug report #708180,
regarding applications die() because of SIGCHLD vs. SIGCLD confusion
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
708180: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=708180
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: libnet-server-perl
Version: 2.006-1
Severity: grave

Hi,

I have a starman application that regularly dies under load with a backtrace 
like:

  Message:    Can't use string ("") as a subroutine ref while "strict refs" in 
use at /usr/share/perl5/Net/Server/SIG.pm line 72, <$read> line 2002.
 at /usr/share/perl5/Net/Server/SIG.pm line 72
        Net::Server::SIG::check_sigs() called at 
/usr/share/perl5/Net/Server/PreForkSimple.pm line 337
        
Net::Server::PreForkSimple::close_children('Starman::Server=HASH(0x84e7a8)') 
called at /usr/share/perl5/Net/Server.pm line 735
        Net::Server::server_close('Starman::Server=HASH(0x84e7a8)') called at 
/usr/share/perl5/Starman/Server.pm line 124
        (...)

Some debugging shows that the problem is that several Net::Server modules
(e.g. Net::Server::PreforkSimple) tries to trap signals with Net::Server::SIG 
using “CHLD” as the signal name. Net::Server::SIG in turn adds a signal handler
like this:

  $SIG{$sig} = sub{ $Net::Server::SIG::_SIG{$_[0]} = 1; };

However, when that sub is called, it is called with “CLD” as signal, not
“CHLD” (seemingly Perl has two names for this). This in turn confuses
check_sigs, which wants to do this with $sig set to “CLD”:

   $_SIG_SUB{$sig}->($sig);

whereupon the crash happens.

I think the smallest fix around this is something like

  $sig = 'CLD' if ($sig eq 'CHLD');

in the top of register_sig(), but I might be mistaken.

In any case, this makes Net::Server::PreforkSimple, and probably several others,
rather unusable, since they may crash at almost any time, and there is no simple
workaround that I can see. (Thus the RC severity.)

-- System Information:
Debian Release: 7.0
  APT prefers stable
  APT policy: (750, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.9.0+sesse01 (SMP w/16 CPU cores)
Locale: LANG=en_DK.UTF-8, LC_CTYPE=en_DK.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libnet-server-perl depends on:
ii  libio-multiplex-perl     1.13-1
ii  libio-socket-inet6-perl  2.69-2
ii  libnet-cidr-perl         0.15-1
ii  libsocket6-perl          0.23-1+b2
ii  perl                     5.14.2-21

libnet-server-perl recommends no packages.

Versions of packages libnet-server-perl suggests:
ii  libio-socket-ssl-perl  1.76-2
ii  liblog-log4perl-perl   1.29-1
ii  libnet-ssleay-perl     1.48-1+b1

-- no debconf information

--- End Message ---
--- Begin Message ---
Source: libnet-server-perl
Source-Version: 2.007-2

We believe that the bug you reported is fixed in the latest version of
libnet-server-perl, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 708...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Xavier Guimard <x.guim...@free.fr> (supplier of updated libnet-server-perl 
package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Sun, 16 Jun 2013 08:20:33 +0200
Source: libnet-server-perl
Binary: libnet-server-perl
Architecture: source all
Version: 2.007-2
Distribution: unstable
Urgency: low
Maintainer: Debian Perl Group <pkg-perl-maintain...@lists.alioth.debian.org>
Changed-By: Xavier Guimard <x.guim...@free.fr>
Description: 
 libnet-server-perl - extensible, general perl server engine
Closes: 708180
Changes: 
 libnet-server-perl (2.007-2) unstable; urgency=low
 .
   * Update spelling errors patch
   * Fix "applications die() because of SIGCHLD vs. SIGCLD confusion"
     using a patch (Closes: #708180)
Checksums-Sha1: 
 42647ed863f4a8a825fcdc5ec0e028bfebcf94d2 2266 libnet-server-perl_2.007-2.dsc
 2264069d912b6d4b1e5312bcdf0b07a4bc6a479a 10334 
libnet-server-perl_2.007-2.debian.tar.gz
 eed76353c11f56e11d1374c911682b863c231ccd 209634 
libnet-server-perl_2.007-2_all.deb
Checksums-Sha256: 
 35e883acefe387409e25e043fc750c4761c98d74d62e5c3a50c7393fbd10521f 2266 
libnet-server-perl_2.007-2.dsc
 4b38173a5216b2a9d2c16de455ecc0665cc0676e17714ee7822649e40b2a000d 10334 
libnet-server-perl_2.007-2.debian.tar.gz
 36f5e4f69f9406b000a8bd7fb2ed43e9b1134611ef77569779486bab3b712e62 209634 
libnet-server-perl_2.007-2_all.deb
Files: 
 5ec4ff97c72b4df6730973f463024089 2266 perl optional 
libnet-server-perl_2.007-2.dsc
 f35d05d18c46a9dfafade9275812d791 10334 perl optional 
libnet-server-perl_2.007-2.debian.tar.gz
 2fb7bedb146aa63f8cc146d6e27e7d56 209634 perl optional 
libnet-server-perl_2.007-2_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQIcBAEBCAAGBQJRvbgVAAoJELs6aAGGSaoG3jwP/2f+9Ofk44cCV12jPsJz+m89
yNcVNLKA3eo5iy7sKqlKIs4raLG9qXi8S5ZMEfT3rGCJdwfzHRY6ugLcpFbLEq0+
X683Y0PZp35zmkqvM6NZTqtC7TL5HoQHfU+GvlUD1iy3/i3vVeBQ1QWJ/pyrjmwb
zhd+Y6ncEFyo71IROHgfmDqCzb7mNKTEeUsmSpSasOm1O4+jSGuoSWE88QUuW6jw
6WvNoCeD/o3VlcTrqYlaQGxZdgTHTmQpZrOsVcgX7xavzN58yVhxYaF+GkeYWbxA
T7g44/yFU5PLj16VxMplbdwE9UZXytdu3GMeU4m739yz5YNHyKqrhHqezRVXS+Kd
MO0sY6J6IhKLVx6uKKAk4j5yG6+49Ej218ul7fLLOxGut+qEGS3PiWYyIYnQhSz7
QPfK9pI0VwoO13nfNqfpCLx3kSYo0hspN6rY1TLfUoC5Y/SNUqIjLIUYDqwLAvnW
uX53L9ctrb5JHnr6D9neS7VEquy1VNdFFQzpDHpDR+OlWyRD+4EZl/z/oEEac9s/
pDIPZTK6blK0zrR951X7hlq+jzqL6uBjxOlLgiDJyuMHiYcJQqs4JKEwomQQnulV
R4BL7CUWoEBLKDBlb/43vKE+XDqFRyw08Q3Hzyell/UrVI9F9D9ORD4nmSLVpzh8
cHAdjcIBHhtr5DfbsfAI
=cxP5
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to