Bug#273780: marked as done (asterisk: under ALSA, infinite-loops immediately on installation)

Debian Bug Tracking System owner@bugs.debian.org
Tue, 28 Sep 2004 07:03:33 -0700


Your message dated Tue, 28 Sep 2004 09:47:05 -0400
with message-id <E1CCIJt-0003G9-00@newraff.debian.org>
and subject line Bug#273780: fixed in asterisk 1:1.0.0-3
has caused the attached Bug report 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 I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 28 Sep 2004 04:15:55 +0000
>From submit@bugs.debian.org Mon Sep 27 21:15:55 2004
Return-path: <submit@bugs.debian.org>
Received: from mail5.speakeasy.net [216.254.0.205] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1CC9P9-00004q-00; Mon, 27 Sep 2004 21:15:55 -0700
Received: (qmail 28512 invoked from network); 28 Sep 2004 04:15:54 -0000
Received: from dsl092-072-192.bos1.dsl.speakeasy.net (HELO hyena) ([66.92.72.192])
          (envelope-sender <submit@bugs.debian.org>)
          by mail5.speakeasy.net (qmail-ldap-1.03) with SMTP
          for <submit@bugs.debian.org>; 28 Sep 2004 04:15:54 -0000
Received: by hyena (Postfix, from userid 1000)
	id C2FCF1067; Tue, 28 Sep 2004 00:16:01 -0400 (EDT)
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Nathan Myers <ncm@cantrip.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: asterisk: under ALSA, infinite-loops immediately on installation
X-Mailer: reportbug 2.99.3
Date: Tue, 28 Sep 2004 00:16:01 -0400
Message-Id: <20040928041601.C2FCF1067@hyena>
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
	autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 

Package: asterisk
Version: 1:1.0.0-2
Severity: critical
Justification: breaks the whole system

I (apt-get) installed asterisk 1.0.0-1.  After installation was
complete, CPU usage pegged at 100% and my /var partition filled to 100% 
very quickly.  The /var/log/asterisk/messages file contained millions
of copies of the line "WARNING[-1231201360]: Read error on sound device:
Invalid argument".  (The changelog for 1.0.0-2 doesn't hint that 
anything has been done about this problem.)

It turned out that my system is set up with ALSA drivers, and the 
default configuration's /etc/asterisk/modules.conf has a line 
"noload => chan_alsa.so".  Commenting this out, and uncommenting
instead "noload => chan_oss.so" appears to fix the immediate 
problem.

It seems that the installation script should try to detect whether
alsa or oss is in place and adjust /etc/asterisk/modules.conf
accordingly.  Failing that, it should configure asterisk not to
start up without a manually-set-up sound configuration, or maybe
it should configure asterisk to run without a sound device, and 
issue appropriate log messages explaining what it is doing, and 
why, and how to fix it.

Asterisk also tries to run a bunch of other stuff that it shouldn't,
such as res_odbc, an mp3 player, and mysql1 and mysql2.  As it happens, 
it is also filling my log partition with a complaint every 500 seconds
that it can't spawn an mp3player:

WARNING[-1215546448]: /var/lib/asterisk/mohmp3 is not a
valid directory
WARNING[-1215546448]: unable to spawn mp3player
NOTICE[-1215546448]: Request to schedule in the past?!?!
WARNING[-1215546448]: /var/lib/asterisk/mohmp3 is not a valid directory
WARNING[-1215546448]: unable to spawn mp3player

That's happening slowly enough to be a much smaller problem, which
I'll file separately if asked to.  Setting 
/etc/asterisk/musiconhold.conf to pass "-o alsa" to mpg321, as it 
ought to do, does not fix this last bit.  (I notice there is no 
dependency on an mp3 player in the package details.)

I don't know what to make of the logged complaint, 
"/var/lib/asterisk/mohmp3 is not a valid directory", above.
Sure enough, it's not, but so what?

-- System Information:
Debian Release: 2.2
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.9-rc2-mm1
Locale: LANG=C, LC_CTYPE=C

Versions of packages asterisk depends on:
ii  asterisk-sounds       1:1.0.0-1          Sound files for asterisk
ii  libasound2            1.0.5-1            Advanced Linux Sound Architecture 
ii  libc6                 2.3.2.ds1-16       GNU C Library: Shared libraries an
ii  libedit2              2.9.cvs.20040827-1 BSD editline and history libraries
pi  libexpat1             1.95.6-6           XML parsing C library - runtime li
pi  libglib1.2            1.2.10-ximian.2    The GLib library of C routines
ii  libgsm1               1.0.10-11.2        Shared libraries for GSM speech co
ii  libgtk1.2             1.2.10-17          The GIMP Toolkit set of widgets fo
ii  libncurses5           5.4-3              Shared libraries for terminal hand
ii  libopenh323-1.13.2    1.13.5.4-4         H.323 aka VoIP library
ii  libpq3                7.4.1-1            Shared library libpq.so.3 for Post
ii  libpt-1.6.3           1.6.6.4-5          Portable Windows Library
ii  libspeex1             1.0.rel.1-2        The Speex Speech Codec
ii  libssl0.9.7           0.9.7d-1           SSL shared libraries
ii  libx11-6              4.3.0-5            X Window System protocol client li
ii  libxext6              4.3.0-5            X Window System miscellaneous exte
ii  libxi6                4.3.0-5            X Window System Input extension li
ii  unixodbc              2.2.4-9            ODBC tools libraries
ii  xlibs                 4.3.0-5            X Window System client libraries m
ii  zlib1g                1:1.2.1-2          compression library - runtime

-- no debconf information

---------------------------------------
Received: (at 273780-close) by bugs.debian.org; 28 Sep 2004 13:53:46 +0000
>From katie@ftp-master.debian.org Tue Sep 28 06:53:46 2004
Return-path: <katie@ftp-master.debian.org>
Received: from newraff.debian.org [208.185.25.31] (mail)
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1CCIQM-0003RM-00; Tue, 28 Sep 2004 06:53:46 -0700
Received: from katie by newraff.debian.org with local (Exim 3.35 1 (Debian))
	id 1CCIJt-0003G9-00; Tue, 28 Sep 2004 09:47:05 -0400
From: Mark Purcell <msp@debian.org>
To: 273780-close@bugs.debian.org
X-Katie: $Revision: 1.51 $
Subject: Bug#273780: fixed in asterisk 1:1.0.0-3
Message-Id: <E1CCIJt-0003G9-00@newraff.debian.org>
Sender: Archive Administrator <katie@ftp-master.debian.org>
Date: Tue, 28 Sep 2004 09:47:05 -0400
Delivered-To: 273780-close@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 
X-CrossAssassin-Score: 4

Source: asterisk
Source-Version: 1:1.0.0-3

We believe that the bug you reported is fixed in the latest version of
asterisk, which is due to be installed in the Debian FTP archive:

asterisk-dev_1.0.0-3_all.deb
  to pool/main/a/asterisk/asterisk-dev_1.0.0-3_all.deb
asterisk-doc_1.0.0-3_all.deb
  to pool/main/a/asterisk/asterisk-doc_1.0.0-3_all.deb
asterisk-sounds_1.0.0-3_all.deb
  to pool/main/a/asterisk/asterisk-sounds_1.0.0-3_all.deb
asterisk_1.0.0-3.diff.gz
  to pool/main/a/asterisk/asterisk_1.0.0-3.diff.gz
asterisk_1.0.0-3.dsc
  to pool/main/a/asterisk/asterisk_1.0.0-3.dsc
asterisk_1.0.0-3_i386.deb
  to pool/main/a/asterisk/asterisk_1.0.0-3_i386.deb



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 273780@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Mark Purcell <msp@debian.org> (supplier of updated asterisk 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 ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Tue, 28 Sep 2004 23:06:03 +1000
Source: asterisk
Binary: asterisk asterisk-sounds asterisk-dev asterisk-doc
Architecture: source all i386
Version: 1:1.0.0-3
Distribution: unstable
Urgency: low
Maintainer: Debian VoIP Team <pkg-voip-maintainers@lists.alioth.debian.org>
Changed-By: Mark Purcell <msp@debian.org>
Description: 
 asterisk   - Open Source Private Branch Exchange (PBX)
 asterisk-dev - Development files for asterisk
 asterisk-doc - Documentation for asterisk
 asterisk-sounds - Sound files for asterisk
Closes: 272999 273572 273576 273780
Changes: 
 asterisk (1:1.0.0-3) unstable; urgency=low
 .
   * Closes: #273780: under ALSA, infinite-loops immediately on
     installation
   * Comment out autoload of chan_oss from modules.conf
   * Closes: #272999: asterisk_1:0.9.1+1.0RC2-2_hppa: FTBFS:
     [anaFilter.o] Error 1
   * Version 1.0.0 now builds on hppa
   * Closes: #273576: chan_zap.so module is missing
   * check for ../include/linux/zaptel.h in channels/Makefile
   * Closes: #273572: Music on hold has wrong default directory
   * refer to correct /usr/share/asterisk/mohmp3 directory
Files: 
 91040ce551ca9ca889fba7010207553b 1157 comm optional asterisk_1.0.0-3.dsc
 10ca40a2d6b5834164e18799aa7e7aaa 334300 comm optional asterisk_1.0.0-3.diff.gz
 6e8b88d16bf8f029afaa6c8ee93d3a77 1463768 doc optional asterisk-doc_1.0.0-3_all.deb
 2107d8700a7b637cd56664dca66ead5c 76524 devel optional asterisk-dev_1.0.0-3_all.deb
 ab0a3b1989cb8890e1194594d981e4ca 7823530 comm optional asterisk-sounds_1.0.0-3_all.deb
 3c4b3ff4bb1b6e3d535f1257ba3151b5 1232994 comm optional asterisk_1.0.0-3_i386.deb

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

iD8DBQFBWWNPoCzanz0IthIRAuBUAKCcD3Yu7GLRNNd10N3dYKQeA5KKQwCfciEt
MC6Zk/9N1JUXb/0KVX2SIBo=
=ojPT
-----END PGP SIGNATURE-----