[Home]

Summary:ASTERISK-03885: Reload causes asterisk to die
Reporter:opsys (opsys)Labels:
Date Opened:2005-04-07 03:47:18Date Closed:2005-04-11 02:08:27
Priority:CriticalRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) core.32196.gz
Description:Asterisk creates a core file in tmp when started with safe_asterisk. I ran gdb /tmp/core.????, then bt but no stackis displayed. I have included output from asterisk-cvvvvvvv.

****** ADDITIONAL INFORMATION ******

Asterisk Ready.
*CLI> reload
 == Parsing '/etc/asterisk/extconfig.conf': Found
 == Parsing '/etc/asterisk/manager.conf': Found
 == Parsing '/etc/asterisk/enum.conf': Found
 == Parsing '/etc/asterisk/rtp.conf': Found
 == RTP Allocating from port range 10000 -> 20000
 == Parsing '/etc/asterisk/dnsmgr.conf': Not found (No such file or directory)
   -- Reloading module 'res_musiconhold.so' (Music On Hold Resource)
 == Parsing '/etc/asterisk/musiconhold.conf': Found
   -- Reloading module 'res_features.so' (Call Parking Resource)
 == Parsing '/etc/asterisk/features.conf': Found
   -- Added extension '700' priority 1 to parkedcalls
   -- Reloading module 'res_crypto.so' (Cryptographic Digital Signatures)
   -- Reloading module 'res_adsi.so' (ADSI Resource)
 == Parsing '/etc/asterisk/adsi.conf': Found
   -- Reloading module 'res_indications.so' (Indications Configuration)
   -- Unregistered indication country 'cl'
   -- Unregistered indication country 'tw'
Apr  7 04:20:52 NOTICE[31738]: indications.c:401 ast_unregister_indication_country: Removed default indication country 'us'
   -- Unregistered indication country 'us'
   -- Unregistered indication country 'au'
   -- Unregistered indication country 'fr'
   -- Unregistered indication country 'de'
   -- Unregistered indication country 'nl'
   -- Unregistered indication country 'uk'
   -- Unregistered indication country 'fi'
   -- Unregistered indication country 'no'
   -- Unregistered indication country 'br'
   -- Unregistered indication country 'za'
   -- Unregistered indication country 'it'
   -- Unregistered indication country 'us-o'
   -- Unregistered indication country 'gr'
   -- Unregistered indication country 'ru'
   -- Unregistered indication country 'nz'
   -- Unregistered indication country 'sg'
 == Parsing '/etc/asterisk/indications.conf': Found
   -- Registered indication country 'cl'
   -- Registered indication country 'tw'
   -- Registered indication country 'us'
   -- Registered indication country 'au'
   -- Registered indication country 'fr'
   -- Registered indication country 'de'
   -- Registered indication country 'nl'
   -- Registered indication country 'uk'
   -- Registered indication country 'fi'
   -- Registered indication country 'no'
   -- Registered indication country 'br'
   -- Registered indication country 'za'
   -- Registered indication country 'it'
   -- Registered indication country 'us-o'
   -- Registered indication country 'gr'
   -- Registered indication country 'ru'
   -- Registered indication country 'nz'
   -- Registered indication country 'sg'
   -- Setting default indication country to 'us'
   -- Reloading module 'chan_features.so' (Feature Proxy Channel)
   -- Reloading module 'chan_skinny.so' (Skinny Client Control Protocol (Skinny))
   -- Reloading module 'chan_local.so' (Local Proxy Channel)
   -- Reloading module 'chan_sip.so' (Session Initiation Protocol (SIP))
   -- Reloading module 'chan_iax2.so' (Inter Asterisk eXchange (Ver 2))
Reloading SIP
 == Parsing '/etc/asterisk/sip.conf': Found
 == Parsing '/etc/asterisk/iax.conf': Found
   -- doing lookup for '216.207.245.47'
Ouch ... error while writing audio data: : Broken pipe
Ouch ... error while writing audio data: : Broken pipe
Warning, flexibel rate not heavily tested!
Junk at the beginning 52494646
Skipped RIFF header!
Warning, flexibel rate not heavily tested!
Warning, flexibel rate not heavily tested!
Warning, flexibel rate not heavily tested!
mpg123: Can't rewind stream by 245 bits!
Segmentation fault
Warning, flexibel rate not heavily tested!
mpg123: Can't rewind stream by 154 bits!
Warning, flexibel rate not heavily tested!
[root@voip modules]# Warning, flexibel rate not heavily tested!
mpg123: Can't rewind stream by 38 bits!
big_values too large!
big_values too large!
Warning, flexibel rate not heavily tested!
Warning, flexibel rate not heavily tested!
mpg123: Can't rewind stream by 18 bits!
Warning, flexibel rate not heavily tested!
mpg123: Can't rewind stream by 143 bits!
Warning, flexibel rate not heavily tested!
mpg123: Can't rewind stream by 36 bits!
Warning, flexibel rate not heavily tested!
mpg123: Can't rewind stream by 79 bits!
Warning, flexibel rate not heavily tested!
mpg123: Can't rewind stream by 200 bits!
Warning, flexibel rate not heavily tested!
mpg123: Can't rewind stream by 53 bits!
Warning, flexibel rate not heavily tested!
mpg123: Can't rewind stream by 135 bits!
mpg123: Can't rewind stream by 93 bits!
Warning, flexibel rate not heavily tested!
mpg123: Can't rewind stream by 21 bits!
mpg123: Can't rewind stream by 11 bits!
Warning, flexibel rate not heavily tested!
Warning, flexibel rate not heavily tested!
mpg123: Can't rewind stream by 111 bits!
Warning, flexibel rate not heavily tested!
mpg123: Can't rewind stream by 8 bits!
Warning, flexibel rate not heavily tested!
mpg123: Can't rewind stream by 62 bits!
Warning, flexibel rate not heavily tested!
Warning, flexibel rate not heavily tested!
Warning, flexibel rate not heavily tested!
mpg123: Can't rewind stream by 26 bits!
Warning, flexibel rate not heavily tested!
Warning, flexibel rate not heavily tested!
Warning, flexibel rate not heavily tested!
Warning, flexibel rate not heavily tested!
mpg123: Can't rewind stream by 31 bits!
mpg123: Can't rewind stream by 13 bits!
Warning, flexibel rate not heavily tested!
mpg123: Can't rewind stream by 29 bits!
Warning, flexibel rate not heavily tested!
mpg123: Can't rewind stream by 8 bits!
Warning, flexibel rate not heavily tested!
Warning, flexibel rate not heavily tested!
mpg123: Can't rewind stream by 20 bits!
Warning, flexibel rate not heavily tested!
mpg123: Can't rewind stream by 106 bits!
Warning, flexibel rate not heavily tested!
mpg123: Can't rewind stream by 18 bits!
Warning, flexibel rate not heavily tested!
mpg123: Can't rewind stream by 6 bits!
Warning, flexibel rate not heavily tested!
Warning, flexibel rate not heavily tested!
Warning, flexibel rate not heavily tested!
Warning, flexibel rate not heavily tested!
mpg123: Can't rewind stream by 28 bits!
Warning, flexibel rate not heavily tested!
big_values too large!
Warning, flexibel rate not heavily tested!
Warning, flexibel rate not heavily tested!
mpg123: Can't rewind stream by 127 bits!
Warning, flexibel rate not heavily tested!
big_values too large!
big_values too large!
mpg123: Can't rewind stream by 1326 bits!
Warning, flexibel rate not heavily tested!
mpg123: Can't rewind stream by 41 bits!
Warning, flexibel rate not heavily tested!
mpg123: Can't rewind stream by 161 bits!
Warning, flexibel rate not heavily tested!
mpg123: Can't rewind stream by 42 bits!
Warning, flexibel rate not heavily tested!
mpg123: Can't rewind stream by 55 bits!
Warning, flexibel rate not heavily tested!
mpg123: Can't rewind stream by 31 bits!
Warning, flexibel rate not heavily tested!
mpg123: Can't rewind stream by 163 bits!
Warning, flexibel rate not heavily tested!
mpg123: Can't rewind stream by 10 bits!
Warning, flexibel rate not heavily tested!
Warning, flexibel rate not heavily tested!
mpg123: Can't rewind stream by 38 bits!
mpg123: Can't rewind stream by 61 bits!
big_values too large!
mpg123: Can't rewind stream by 148 bits!
Warning, flexibel rate not heavily tested!
mpg123: Can't rewind stream by 35 bits!
Warning, flexibel rate not heavily tested!
mpg123: Can't rewind stream by 110 bits!
Warning, flexibel rate not heavily tested!
mpg123: Can't rewind stream by 2 bits!
Warning, flexibel rate not heavily tested!
Warning, flexibel rate not heavily tested!
mpg123: Can't rewind stream by 92 bits!
mpg123: Can't rewind stream by 4 bits!
Warning, flexibel rate not heavily tested!
mpg123: Can't rewind stream by 82 bits!
Warning, flexibel rate not heavily tested!
Comments:By: opsys (opsys) 2005-04-07 03:50:25

Sorry forgot to add version.
CVS-HEAD-04/07/05-02:46:24

Also it looks like I picked the wrong catagory, It is not ADSI but Core Asterisk.

By: Clod Patry (junky) 2005-04-07 06:52:03

make sure you had make valgrind and start it with -cvvvvg option. When it crashes, you'll see a core file. With gdb, give us your bt and bt full (backtraces).

Thanks.

By: Mark Spencer (markster) 2005-04-07 09:45:28

Please do:

rm -rf /usr/lib/asterisk/modules

make clean ; make install

Thanks!

By: opsys (opsys) 2005-04-07 10:27:02

junky: I did a make valgrind, it core dumps since I am using safe_asterisk. however when I try to do a bt with gdb, i get no stack.


markster: I did thst. I always clear out modules dir.  and make clean.


It seams stable as calls are being processed, no one has complained yet. But the minute I do a reload, CRASH.

interesting note, It is a SMP machine with no second proc. FC2, 512MB Ram, Digium Single Span T1 TE100p, no other apps.

On a SMP machine wih a cvs from the same time does not exhibt same behavior, The second machine does not have Digium HW in it and has 2 procs.

Also upon Asterisk's Seg, It leave all the mpg123 procs running. And starts a new batch for the new 'restarted asterisk'.

By: Clod Patry (junky) 2005-04-07 10:30:09

safe_asterisk will generate a coredump too.
Make sure ya've compiled valgrind and started asterisk with -g option.

When it crashes, ya'll see the coredump.

Note: if you started asterisk with asterisk, it could be in your /tmp/ .

By: opsys (opsys) 2005-04-07 10:33:35

Junky: I get the core dump in /tmp, thats not the problem, Problem with the core dump is that it has no stack!!.

How can I confirm valgrind was 'made' propeerly??

By: opsys (opsys) 2005-04-07 10:44:50

I have attached the core file.

By: Kevin P. Fleming (kpfleming) 2005-04-10 20:32:05

There was a fix committed to CVS late on the night of the 6th here in the US, if your timestamp is GMT you may not have it yet. Please do a CVS update and retest the problem to see if you can recreate it. Thanks!

By: Russell Bryant (russell) 2005-04-10 22:43:53

Also, you weren't using the correct command to get the backtrace from the core dump.  This is what you should do ...

gdb /path/to/asterisk /path/to/core

then 'bt' and 'bt full'

By: opsys (opsys) 2005-04-11 01:32:08

Problem seams to be solved, I have tried to recreate but no luck. I guess thats a good thing.  I am sync with ntp and I am in EDT. I don;t know why I had an old copy. You may want to check the mirrors of CVs to see is they are all replicating.

Close it up, as I can't recreate.

By: Russell Bryant (russell) 2005-04-11 02:08:04

Well, I'm glad that you are unable to recreate the problem after updating.  :)

Please re-open if you see this problem again.  Thanks!