Bug#438702: Asterisk v1.4.9~dfsg-1 Crashed

2007-08-24 Thread GNUbie
Hello Faidon,

On 8/24/07, Faidon Liambotis <[EMAIL PROTECTED]> wrote:
>
>
>
> It would be better if you used a binary of our own[1] and preferrably
> the latest upstream version 1.4.11 (i.e. packages >= 1:1.4.11~dfsg-1)


I just tried first the same call scenario without enabling dumping the core
file and verbosity on my newly built asterisk-1.4.11~dfsg-1 on my Debian
GNU/Linux Etch and still, the Asterisk crashed.  I will try again performing
the same call scenario with the core dump enable on my side so that I can
send you the core dump file later on.  After that, I will download and
install the binary Asterisk related packages that you have from
http://pkg-voip.buildserver.net/ and perform again the same call scenario on
my side if the Asterisk will still crash.

Anyway, below is the banner I got when entering to the Asterisk shell and
following the version of my Asterisk:

# asterisk -r
Asterisk 1.4.11-BRIstuffed-0.4.0-test4, Copyright (C) 1999 - 2007 Digium,
Inc. and others.
Created by Mark Spencer <[EMAIL PROTECTED]>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for
details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it
under
certain conditions. Type 'core show license' for details.
=
Connected to Asterisk 1.4.11-BRIstuffed-0.4.0-test4 currently running on
gnubie (pid = 6382)

gnubie*CLI> core show version
Asterisk 1.4.11-BRIstuffed-0.4.0-test4 built by root @ gnubie on a i686
running Linux on 2007-08-24 04:31:28 UTC

To a PSTN telephone through what?
> zaptel? analog or ISDN? BRI or PRI? Which card exactly?


Zaptel using the Digium's Dev Kit TDM400P with 1 FXO and 1 FXS.

What version of zaptel are you using?
> If this was an ISDN interface, what version of libpri are you using?


# dpkg -l | grep zaptel
ii  zaptel   1.4.5~dfsg-1   zapata
telephony utilities
ii  zaptel-modules-2.6.18-5-686  1.4.5~dfsg-1+2.6.18.dfsg.1-13etch1 zaptel
modules for Linux (kernel 2.6.18-5-68

Please provide as much information as possible. Whatever you may think
> that is important or unusual about your setup.


I am using an OpenWengo SIP softphone on top of MS Windows XP laptop
connected through a wireless network to the Asterisk PBX.  Now, my PBX
server hardware is based on an old Intel Celeron 1Ghz with 512MB RAM,
Digium's Dev Kit with 1 FXO and 1 FXS, and an Atheros AR5005G PCMCIA card
because this server of mine also act as my access point, firewall, gateway
and router.

I will list down below the information related to software:

# cat /etc/debian_version
4.0

# uname -r
2.6.18-5-686

# dpkg -l | grep asterisk
ii  asterisk 1.4.11~dfsg-1  Open
Source Private Branch Exchange (PBX)
ii  asterisk-config  1.4.11~dfsg-1
Configuration files for Asterisk
ii  asterisk-doc 1.4.11~dfsg-1  Source
code documentation for Asterisk
ii  asterisk-sounds-main 1.4.11~dfsg-1  Core
Sound files for Asterisk (English)

# dpkg -l | grep zaptel
ii  zaptel   1.4.5~dfsg-1   zapata
telephony utilities
ii  zaptel-modules-2.6.18-5-686  1.4.5~dfsg-1+2.6.18.dfsg.1-13etch1 zaptel
modules for Linux (kernel 2.6.18-5-68

# dpkg -l | grep libtone
ii  libtonezone1 1.4.5~dfsg-1   tonezone
library (runtime)

I personally built the above packages on my Debian GNU/Linux Etch
workstation and I got the source packages from the Debian Unstable
repository.

Unfortunately, it is working fine for me and for many others, so it is
> something specific to your setup.


Please do this scenario maybe at least 5 times until your Asterisk crash.
Your call will be disconnected between 1 to 3 minutes but try to dial again
and again even if you get an error because for sure, your zap channel will
not be released, until such time that you can dial again to a PSTN number.

All in all, a proper core dump with a known version will help us most.
>

Ok, I will do this later..

Thank you.

GNUbie


Bug#438702: Asterisk v1.4.9~dfsg-1 Crashed

2007-08-24 Thread Faidon Liambotis
GNUbie wrote:
> So, after a few call attempts to a GSM mobile phone and PSTN telephone,
> the Asterisk service crashed and you can download the core dump file it
> generated at http://files-upload.com/files/47/core.asterisk-1.4.9 or
> at http://www.filecrunch.com/file/~jab6ay
>  .  I hope that this core dump
> file can help provide you information on what's the cause of the problem
> and a possible solution on your side.
It is hard for us to examine a core file when we don't have exactly the
same version.

It would be better if you used a binary of our own[1] and preferrably
the latest upstream version 1.4.11 (i.e. packages >= 1:1.4.11~dfsg-1)

> I would also like to add info about this crash problem that I think
> Asterisk crashes when the caller is from a SIP (soft)phone calling to a
> PSTN telephone because I remember that I've been using it calling from
> an analog phone to a PSTN telephone and vice versa but the Asterisk
> don't crash or even the channels are released properly after the call.
To a PSTN telephone through what?
zaptel? analog or ISDN? BRI or PRI? Which card exactly?

What version of zaptel are you using?
If this was an ISDN interface, what version of libpri are you using?

Please provide as much information as possible. Whatever you may think
that is important or unusual about your setup.

Unfortunately, it is working fine for me and for many others, so it is
something specific to your setup.

All in all, a proper core dump with a known version will help us most.

Thanks a lot,
Faidon

1: If you use unstable, fetch the package from the archive. If you are
using etch, add
  deb http://pkg-voip.buildserver.net/debian etch main
to your /etc/apt/sources.list and install the package from there.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#438702: Asterisk v1.4.9~dfsg-1 Crashed

2007-08-24 Thread GNUbie
Hello all,

Although I already made a response to Mr. Tzafrir Cohen's original message
regarding this bug 4 days ago, I am now re-sending it to the Debian BTS for
record purposes.

On 8/19/07, Tzafrir Cohen <[EMAIL PROTECTED]> wrote:

>
> Indeed.
>
> So let's try to track this down.


Ok, here are the things I've done here on my Asterisk v1.4.9 on Debian
GNU/Linux Etch:

To get a core file:
>
> echo '/tmp/core.%e.%t' >/proc/sys/kernel/core_pattern


I did this.

Enable the -g flag to Asterisk by editing the init.d script (there's an
> example in the default file but when I look at it now it seems to be
> slightly wrong: it tries to mess with core_pattern as well).


I didn't follow this.  What I did was I uncommented the line 21 of my
/etc/default/asterisk file with the line that look like this:

PARAMS="-F -g -vvv"

Please install thepackage asterisk-dbg to produce useful backtraces.


I didn't installed the asterisk-dbg package.  After starting the Asterisk
service through:

# /etc/init.d/asterisk start

I entered into the Asterisk shell then executed the command below:

CLI> set verbose 10

So, after a few call attempts to a GSM mobile phone and PSTN telephone, the
Asterisk service crashed and you can download the core dump file it
generated at http://files-upload.com/files/47/core.asterisk-1.4.9 or at
http://www.filecrunch.com/file/~jab6ay .  I hope that this core dump file
can help provide you information on what's the cause of the problem and a
possible solution on your side.

I would also like to add info about this crash problem that I think Asterisk
crashes when the caller is from a SIP (soft)phone calling to a PSTN
telephone because I remember that I've been using it calling from an analog
phone to a PSTN telephone and vice versa but the Asterisk don't crash or
even the channels are released properly after the call.

Thank you in advance.

More power to you!

GNUbie