[asterisk-users] asterisk crash and core dump: format_mp3.so

2007-09-20 Thread Vieri
Hi,

My Asterisk server process irregularly segfaults, ie.
it usually works fine (is stable) when there's low
traffic but repeatedly crashes during morning hours
when there are more calls.

I gdb'ed the core dump files and found that the
culprit may be format_mp3. So I disabled MOH today and
will see if that's the cause.
I know that mp3 files are known to cause * crashes but
what I don't understand is why it doesn't *always*
crash (ie. why doesn't it crash even when there's low
traffic? I mean, if the offending code is in the mp3
format then it should *always* crash, right?).

I'm pasting the bt below to see if someone has any
suggestions on this ML. I'd rather wait a little
before bothering the devel list... 

Core was generated by `/usr/sbin/asterisk -f -U
asterisk -G asterisk -vvvg'.
Program terminated with signal 11, Segmentation fault.
#0  0xb7b41954 in ?? () from
/usr/lib/asterisk/modules/format_mp3.so

(gdb) bt
#0  0xb7b41954 in ?? () from
/usr/lib/asterisk/modules/format_mp3.so
#1  0xb7ea6ff4 in ?? () from /lib/libc.so.6
#2  0xb7ea8120 in ?? () from /lib/libc.so.6
#3  0x001a in ?? ()
#4  0x in ?? ()

(gdb) bt full
#0  0xb7b41954 in ?? () from
/usr/lib/asterisk/modules/format_mp3.so
No symbol table info available.
#1  0xb7ea6ff4 in ?? () from /lib/libc.so.6
No symbol table info available.
#2  0xb7ea8120 in ?? () from /lib/libc.so.6
No symbol table info available.
#3  0x001a in ?? ()
No symbol table info available.
#4  0x in ?? ()
No symbol table info available.
(gdb)

(gdb) thread apply all bt
... not posting because too long here ...

Thanks,

Vieri



  

Shape Yahoo! in your own image.  Join our Network Research Panel today!   
http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 



___

Sign up now for AstriCon 2007!  September 25-28th.  http://www.astricon.net/ 

--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] asterisk crash and core dump: format_mp3.so

2007-09-20 Thread Atis Lezdins
On Thursday 20 September 2007 11:34:44 Vieri wrote:
 My Asterisk server process irregularly segfaults, ie.
 it usually works fine (is stable) when there's low
 traffic but repeatedly crashes during morning hours
 when there are more calls.

 I gdb'ed the core dump files and found that the
 culprit may be format_mp3. So I disabled MOH today and
 will see if that's the cause.
 I know that mp3 files are known to cause * crashes but
 what I don't understand is why it doesn't *always*
 crash (ie. why doesn't it crash even when there's low
 traffic? I mean, if the offending code is in the mp3
 format then it should *always* crash, right?).

We also experienced this problem on 1.2, but i'm not sure that this is 
registered in bug database. You should check bugs.digium.com and if it's 
still valid for 1.4, you should post your backtraces there.

As solution - we refused from using format_mp3 at all - actually it has almost 
no benefits. If your MOH is in MP3s - you will get them decoded (and 
translated to necessary codec) on-the-fly for every call, so more 
performance. You can convert all your MOH to native channell formats of 
asterisk, and put all those files (one for each format/MOH combination) in 
MOH directory - asterisk will pick up one with less translation.

Regards,
Atis


-- 
Atis Lezdins
VoIP Developer,
IQ Labs Inc.
[EMAIL PROTECTED]
Skype: atis.lezdins
Cell Phone: +371 28806004
Work phone: +1 800 7502835

___

Sign up now for AstriCon 2007!  September 25-28th.  http://www.astricon.net/ 

--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] asterisk crash and core dump: format_mp3.so

2007-09-20 Thread Vieri

--- Atis Lezdins [EMAIL PROTECTED] wrote:

 We also experienced this problem on 1.2, but i'm not
 sure that this is 
 registered in bug database. You should check
 bugs.digium.com and if it's 
 still valid for 1.4, you should post your backtraces
 there.

Actually, I'm using 1.2.21.1 so since 1.2 will only
receive security fixes I don't think I'll post a bug
report.

 As solution - convert all your MOH to native
 channell formats of 
 asterisk, and put all those files (one for each
 format/MOH combination) in 
 MOH directory - asterisk will pick up one with less
 translation.

Thanks Atis. Will try that out.



   

Moody friends. Drama queens. Your life? Nope! - their life, your story. Play 
Sims Stories at Yahoo! Games.
http://sims.yahoo.com/  

___

Sign up now for AstriCon 2007!  September 25-28th.  http://www.astricon.net/ 

--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[asterisk-users] asterisk crash and core dump

2007-09-18 Thread Vieri
My Asterisk installation crashes frequently.

Since it's a random event I am not able to reproduce
it so I can't say what is making it crash.

Here's a snippet of /var/log/asterisk/full just when
it crashes:

Sep 18 13:42:51 DEBUG[378] chan_zap.c: disabled echo
cancellation on channel 31
Sep 18 13:42:51 VERBOSE[378] logger.c: -- Hungup
'Zap/31-1'
Sep 18 13:42:51 DEBUG[32650] chan_sip.c: Stopping
retransmission on
'[EMAIL PROTECTED]' of
Request 102: Match Found
Sep 18 13:42:52 DEBUG[32677] manager.c: Manager
received command 'Command'
Sep 18 13:42:52 DEBUG[32677] manager.c: Manager
received command 'Command'
Sep 18 13:42:52 DEBUG[32677] manager.c: Manager
received command 'Command'
Sep 18 13:42:54 DEBUG[32650] chan_sip.c: (Provisional)
Stopping retransmission (but retaining packet) on
'[EMAIL PROTECTED]'
Request 102: Found
Sep 18 13:42:54 VERBOSE[419] logger.c: --
SIP/4002-082aef20 is ringing
---MESSAGE FROM SAFE_ASTERISK--- Automatically
restarting Asterisk.
Sep 18 13:43:03 VERBOSE[551] logger.c: Asterisk Event
Logger Started /var/log/asterisk/event_log
Sep 18 13:43:03 VERBOSE[551] logger.c:   == Parsing
'/etc/asterisk/dnsmgr.conf':
 Sep 18 13:43:03 VERBOSE[551] logger.c:   == Parsing
'/etc/asterisk/dnsmgr.conf'
: Found
Sep 18 13:43:03 VERBOSE[551] logger.c: Asterisk
Dynamic Loader loading preload modules:
Sep 18 13:43:03 VERBOSE[551] logger.c:   == Parsing
'/etc/asterisk/modules.conf'

safe_asterisk, ie FreePBX, notifies me that Asterisk
exited on signal 11.

I have core dumps in /tmp.

What can I do to isolate the cause of these
segmentation faults?

Thank you for your advice,

Vieri



   

Got a little couch potato? 
Check out fun summer activities for kids.
http://search.yahoo.com/search?fr=oni_on_mailp=summer+activities+for+kidscs=bz
 

___

Sign up now for AstriCon 2007!  September 25-28th.  http://www.astricon.net/ 

--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] asterisk crash and core dump

2007-09-18 Thread Jared Smith
On Tue, 2007-09-18 at 05:15 -0700, Vieri wrote:
 I have core dumps in /tmp.
 
 What can I do to isolate the cause of these
 segmentation faults?

You'd have to get an Asterisk developer to look at the backtraces
generated from those core files.  There's more information on the
backtraces either in doc/backtrace.txt in the Asterisk source, or at the
following URL:

http://svn.digium.com/view/asterisk/branches/1.4/doc/backtrace.txt?revision=46298view=markup

If you're able to get some good backtraces, grab one of the Asterisk
developers on the #asterisk-bugs channel in IRC (on the Freenode
network) and they'd be happy to try to help you figure out the cause of
your crashes.

-- 
Jared Smith
Community Relations Manager
Digium, Inc.


___

Sign up now for AstriCon 2007!  September 25-28th.  http://www.astricon.net/ 

--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] asterisk crash and core dump

2007-09-18 Thread Atis Lezdins
On Tuesday 18 September 2007 15:15:38 Vieri wrote:
 My Asterisk installation crashes frequently.

 Since it's a random event I am not able to reproduce
 it so I can't say what is making it crash.

 Here's a snippet of /var/log/asterisk/full just when
 it crashes:

 Sep 18 13:42:51 DEBUG[378] chan_zap.c: disabled echo
 cancellation on channel 31
 Sep 18 13:42:51 VERBOSE[378] logger.c: -- Hungup
 'Zap/31-1'
 Sep 18 13:42:51 DEBUG[32650] chan_sip.c: Stopping
 retransmission on
 '[EMAIL PROTECTED]' of
 Request 102: Match Found
 Sep 18 13:42:52 DEBUG[32677] manager.c: Manager
 received command 'Command'
 Sep 18 13:42:52 DEBUG[32677] manager.c: Manager
 received command 'Command'
 Sep 18 13:42:52 DEBUG[32677] manager.c: Manager
 received command 'Command'
 Sep 18 13:42:54 DEBUG[32650] chan_sip.c: (Provisional)
 Stopping retransmission (but retaining packet) on
 '[EMAIL PROTECTED]'
 Request 102: Found
 Sep 18 13:42:54 VERBOSE[419] logger.c: --
 SIP/4002-082aef20 is ringing
 ---MESSAGE FROM SAFE_ASTERISK--- Automatically
 restarting Asterisk.
 Sep 18 13:43:03 VERBOSE[551] logger.c: Asterisk Event
 Logger Started /var/log/asterisk/event_log
 Sep 18 13:43:03 VERBOSE[551] logger.c:   == Parsing
 '/etc/asterisk/dnsmgr.conf':
  Sep 18 13:43:03 VERBOSE[551] logger.c:   == Parsing
 '/etc/asterisk/dnsmgr.conf'

 : Found

 Sep 18 13:43:03 VERBOSE[551] logger.c: Asterisk
 Dynamic Loader loading preload modules:
 Sep 18 13:43:03 VERBOSE[551] logger.c:   == Parsing
 '/etc/asterisk/modules.conf'

 safe_asterisk, ie FreePBX, notifies me that Asterisk
 exited on signal 11.

 I have core dumps in /tmp.

 What can I do to isolate the cause of these
 segmentation faults?

You should compile asterisk with debbuging enabled (and optimization 
disabled), and then take backtraces from core dumps. Please see 

http://www.voip-info.org/wiki-Asterisk+debugging

Regards,
Atis

-- 
Atis Lezdins
VoIP Developer,
IQ Labs Inc.
[EMAIL PROTECTED]
Skype: atis.lezdins
Cell Phone: +371 28806004
Work phone: +1 800 7502835

___

Sign up now for AstriCon 2007!  September 25-28th.  http://www.astricon.net/ 

--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users