[asterisk-dev] my Asterisk is missing time...

Wolfgang Pichler wpichler at yosd.at
Thu Jan 24 07:16:24 CST 2008


Hi all,

the good news - since i am running asterisk as root with nice -10 i do not have had any more line losses because of missing time...

the bad news
my asterisk did segfault already two times

the good news
the core dump did alwaysed showed the same problem - i am not an expert enough to trace down the problem - so here is the backtrace:


Program terminated with signal 11, Segmentation fault.
#0  0x080d0afb in ast_rtp_read (rtp=0x9353e60) at rtp.c:1127
1127            res = recvfrom(rtp->s, rtp->rawdata + AST_FRIENDLY_OFFSET, sizeof(rtp->rawdata) - AST_FRIENDLY_OFFSET,
(gdb) bt
#0  0x080d0afb in ast_rtp_read (rtp=0x9353e60) at rtp.c:1127
#1  0x07bd119e in sip_read (ast=0x93c5c08) at chan_sip.c:4201
#2  0x08083e66 in __ast_read (chan=0x93c5c08, dropaudio=0) at channel.c:2323
#3  0x08084acc in ast_waitfordigit_full (c=0x93c5c08, ms=87, audiofd=-1, cmdfd=-1) at channel.c:2571
#4  0x08084e28 in ast_waitfordigit (c=0x93c5c08, ms=100) at channel.c:2057
#5  0x005c3137 in common_exec (chan=0x93c5c08, flags=0xb71b1e58, volfactor=0, fd=0, mygroup=0xb71b1c14 "66622", spec=0x0, exten=0x0, context=0x0) at app_chanspy.c:459
#6  0x005c3f45 in chanspy_exec (chan=0x93c5c08, data=0xb71b5f38) at app_chanspy.c:628
#7  0x080c784e in pbx_extension_helper (c=0x93c5c08, con=0x0, context=0x93c5d88 "spyLot", exten=0x93c5dd8 "22", priority=2, label=0x0, callerid=0x93536d0 "",
    action=E_SPAWN) at pbx.c:532
#8  0x080c9536 in __ast_pbx_run (c=0x93c5c08) at pbx.c:2288
#9  0x080ca4de in pbx_thread (data=0x93c5c08) at pbx.c:2603
#10 0x080f618b in dummy_start (data=0x935c4e8) at utils.c:806
#11 0x0011545b in start_thread () from /lib/libpthread.so.0
#12 0x00a6824e in clone () from /lib/libc.so.6


Does happen on asterisk 1.4.13

Is this an already known bug - is it fixed in a later version ?

regards,
Wolfgang






----- Originalnachricht -----
Von: asterisk-dev-bounces at lists.digium.com im Auftrag von Wolfgang Pichler 
Gesendet: Don, 24.1.2008 08:36
An: Asterisk Developers Mailing List 
Betreff: Re: [asterisk-dev] my Asterisk is missing time...

I do now run asterisk as root with nice -10 - i will see today if it helps.

The machine does also run lighttpd and mysql for the web frontend for the agents... But average load isn't that much so that 2 minutes missing could be caused. Also zttool is repeating no missed interupt...

Digium Support did suggested running a pattern test with a loop cable - i will do this as soon as possible (the machine is located in FL - and i am in AT 600km away ;-( )

regards,
Wolfgang Pichler

----- Originalnachricht -----
Von: asterisk-dev-bounces at lists.digium.com im Auftrag von Tzafrir Cohen 
Gesendet: Don, 24.1.2008 03:32
An: asterisk-dev at lists.digium.com
Betreff: Re: [asterisk-dev] my Asterisk is missing time...

On Wed, Jan 23, 2008 at 11:46:16AM -0600, Steven S. Critchfield wrote:
> 
> ----- "Wolfgang Pichler" <wpichler at yosd.at> wrote:
> > ntp is really running on that machine - i now did turned it off. I
> > will let it run now forthe night - and then take a look if the machine
> > has lost some time.
> > 
> > An other thing i forgot to mention - i am runnuing asterisk not as
> > root - should i runn asterisk as root - and nice -10 for example ?
> 
> Running as root should let you get set 'realtime' priority, 

Executing Asterisk as root. You can still ask Asterisk to run as a user
(-U, or the equivalent setting in asterisk.conf).

> and lessen 
> the hurt that other processes could deal to asterisk. But on a quad 
> 3ghz machine, as long as you tuned the OS and the extra apps on it, there 
> shouldn't be any resources starving asterisk.

It depends what else that machine does. If it does something else which
is potentially CPU-bound and well-distributed (mysql?), you may still
get spikes, occasionally.

-- 
               Tzafrir Cohen
icq#16849755              jabber:tzafrir.cohen at xorcom.com
+972-50-7952406           mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com  iax:guest@local.xorcom.com/tzafrir

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

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


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

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




More information about the asterisk-dev mailing list