<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2873" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=750095815-31052006><FONT face=Arial
color=#0000ff size=2>It's only been a problem since I updated to Asterisk 1.2 a
few months ago. It was a fresh install of OS, Asterisk, FreePBX and other
scripts. I've recently just updating FreePBX but the problem hasn't
gone.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=750095815-31052006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=750095815-31052006><FONT face=Arial
color=#0000ff size=2>Regards</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=750095815-31052006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=750095815-31052006><FONT face=Arial
color=#0000ff size=2>Lee</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] <B>On Behalf Of </B>Anthony
Cennami<BR><B>Sent:</B> 31 May 2006 16:34<BR><B>To:</B> Asterisk Users Mailing
List - Non-Commercial Discussion<BR><B>Subject:</B> Re: [Asterisk-Users]
Multiple processes<BR></FONT><BR></DIV>
<DIV></DIV>Were these upgrades or fresh installs? Earlier versions of
asterisk ran with multiple threads. If you upgraded asterisk versions, but
did not upgrade the associated startup scripts, multiple processes would still
be spawned even if not appropriate. <BR><BR>Anthony<BR><BR><BR>
<DIV><SPAN class=gmail_quote>On 5/31/06, <B class=gmail_sendername>Lee
Archer</B> <<A
href="mailto:lee.archer@pentagon-systems.com">lee.archer@pentagon-systems.com</A>>
wrote:</SPAN>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<DIV>
<DIV>
<P><FONT face=Arial size=2>Can someone shed any light on the following.
I have 2 identical systems, 1 of which seems to spawn multiple processes which
have to be killed manually. It recently kicked up 2 so I ran gdb on them
and this is the thread output. I current use FreePBX with these systems.
</FONT></P>
<P><FONT face=Arial size=2>1st extra process</FONT> </P>
<P><FONT face=Arial size=2>(gdb) info thread</FONT> <BR><FONT face=Arial
size=2> 1 Thread 1095261104 (LWP 14213) 0xffffe410 in
__kernel_vsyscall ()</FONT> <BR><FONT face=Arial size=2>(gdb) thread apply all
bt</FONT> </P>
<P><FONT face=Arial size=2>Thread 1 (Thread 1095261104 (LWP 14213)):</FONT>
<BR><FONT face=Arial size=2>#0 0xffffe410 in __kernel_vsyscall ()</FONT>
<BR><FONT face=Arial size=2>#1 0x4004f13e in __lll_mutex_lock_wait ()
from /lib/tls/libpthread.so.0</FONT> <BR><FONT face=Arial size=2>#2
0x4004be41 in _L_mutex_lock_191 () from /lib/tls/libpthread.so.0</FONT>
<BR><FONT face=Arial size=2>#3 0x00000001 in ?? ()</FONT> <BR><FONT
face=Arial size=2>#4 0x40e16778 in ?? () from
/usr/lib/asterisk/modules/cdr_odbc.so</FONT> <BR><FONT face=Arial
size=2>#5 0x40e16818 in __dso_handle () from
/usr/lib/asterisk/modules/cdr_odbc.so</FONT> <BR><FONT face=Arial
size=2>#6 0x00000002 in ?? ()</FONT> <BR><FONT face=Arial
size=2>#7 0x00000000 in ?? ()</FONT> <BR><FONT face=Arial
size=2>#8 0x080a20b7 in ast_cdr_unregister (name=0x40e1455c "ODBC") at
lock.h:592</FONT> <BR><FONT face=Arial size=2>#9 0x40e13299 in
odbc_unload_module () at cdr_odbc.c:240</FONT> <BR><FONT face=Arial size=2>#10
0x40e13978 in reload () at cdr_odbc.c:465</FONT> <BR><FONT face=Arial
size=2>#11 0x0805be32 in ast_module_reload (name=0x0) at loader.c:257</FONT>
<BR><FONT face=Arial size=2>#12 0x080b4623 in hup_handler (num=-4) at
asterisk.c:754</FONT> <BR><FONT face=Arial size=2>#13 <signal handler
called></FONT> <BR><FONT face=Arial size=2>#14 0xffffe410 in
__kernel_vsyscall ()</FONT> <BR><FONT face=Arial size=2>#15 0x401afd99 in
sched_setscheduler () from /lib/tls/libc.so.6</FONT> <BR><FONT face=Arial
size=2>#16 0x080b4743 in ast_set_priority (pri=0) at asterisk.c:803</FONT>
<BR><FONT face=Arial size=2>#17 0x40445ee8 in agi_exec_full (chan=0x82782b0,
data=<value optimized out>, enhanced=0, dead=0) at res_agi.c:300</FONT>
<BR><FONT face=Arial size=2>#18 0x0808d521 in pbx_extension_helper
(c=0x82782b0, con=<value optimized out>, context=0x8278400
"macro-record-enable",</FONT></P>
<P><FONT face=Arial size=2> exten=0x82784f4 "s", priority=4,
label=0x0, callerid=0x8159f38 "01638611111", action=1) at pbx.c:553</FONT>
<BR><FONT face=Arial size=2>#19 0x40c44851 in macro_exec (chan=0x82782b0,
data=0x4147c768) at app_macro.c:210</FONT> <BR><FONT face=Arial size=2>#20
0x0808d521 in pbx_extension_helper (c=0x82782b0, con=<value optimized
out>, context=0x8278400 "macro-record-enable",</FONT></P>
<P><FONT face=Arial size=2> exten=0x82784f4 "s", priority=7,
label=0x0, callerid=0x8159f38 "01638611111", action=1) at pbx.c:553</FONT>
<BR><FONT face=Arial size=2>#21 0x40c44851 in macro_exec (chan=0x82782b0,
data=0x41482fd8) at app_macro.c:210</FONT> <BR><FONT face=Arial size=2>#22
0x0808d521 in pbx_extension_helper (c=0x82782b0, con=<value optimized
out>, context=0x8278400 "macro-record-enable",</FONT></P>
<P><FONT face=Arial size=2> exten=0x82784f4 "s", priority=1,
label=0x0, callerid=0x8159f38 "01638611111", action=1) at pbx.c:553</FONT>
<BR><FONT face=Arial size=2>#23 0x0808ead4 in __ast_pbx_run (c=0x82782b0) at
pbx.c:2227</FONT> <BR><FONT face=Arial size=2>#24 0x0808f6cc in pbx_thread
(data=0x0) at pbx.c:2514</FONT> <BR><FONT face=Arial size=2>#25 0x4004a297 in
start_thread () from /lib/tls/libpthread.so.0</FONT> <BR><FONT face=Arial
size=2>#26 0x401c737e in clone () from /lib/tls/libc.so.6</FONT> <BR><FONT
face=Arial size=2>#27 0x41485bb0 in ?? ()</FONT> <BR><FONT face=Arial
size=2>#0 0xffffe410 in __kernel_vsyscall ()</FONT> </P>
<P><FONT face=Arial size=2>2nd extra process</FONT> </P>
<P><FONT face=Arial size=2>(gdb) info thread</FONT> <BR><FONT face=Arial
size=2> 1 Thread 1096059824 (LWP 14214) 0xffffe410 in ?? ()</FONT>
<BR><FONT face=Arial size=2>(gdb) thread apply all bt</FONT> </P>
<P><FONT face=Arial size=2>Thread 1 (Thread 1096059824 (LWP 14214)):</FONT>
<BR><FONT face=Arial size=2>#0 0xffffe410 in ?? ()</FONT> <BR><FONT
face=Arial size=2>#1 0x41533594 in ?? ()</FONT> <BR><FONT face=Arial
size=2>#2 0x00000002 in ?? ()</FONT> <BR><FONT face=Arial
size=2>#3 0x00000000 in ?? ()</FONT> <BR><FONT face=Arial
size=2>#4 0x4004f13e in __lll_mutex_lock_wait () from
/lib/tls/libpthread.so.0</FONT> <BR><FONT face=Arial size=2>#5
0x4004be41 in _L_mutex_lock_191 () from /lib/tls/libpthread.so.0</FONT>
<BR><FONT face=Arial size=2>#6 0x00000001 in ?? ()</FONT> <BR><FONT
face=Arial size=2>#7 0x40e16778 in ?? () from
/usr/lib/asterisk/modules/cdr_odbc.so</FONT> <BR><FONT face=Arial
size=2>#8 0x40e16818 in __dso_handle () from
/usr/lib/asterisk/modules/cdr_odbc.so</FONT> <BR><FONT face=Arial
size=2>#9 0x00000002 in ?? ()</FONT> <BR><FONT face=Arial size=2>#10
0x00000000 in ?? ()</FONT> <BR><FONT face=Arial size=2>#11 0x080a20b7 in
ast_cdr_unregister (name=0x40e1455c "ODBC") at lock.h:592</FONT> <BR><FONT
face=Arial size=2>#12 0x40e13299 in odbc_unload_module () at
cdr_odbc.c:240</FONT> <BR><FONT face=Arial size=2>#13 0x40e13978 in reload ()
at cdr_odbc.c:465</FONT> <BR><FONT face=Arial size=2>#14 0x0805be32 in
ast_module_reload (name=0x0) at loader.c:257</FONT> <BR><FONT face=Arial
size=2>#15 0x080b4623 in hup_handler (num=-4) at asterisk.c:754</FONT>
<BR><FONT face=Arial size=2>#16 <signal handler called></FONT> <BR><FONT
face=Arial size=2>#17 0xffffe410 in ?? ()</FONT> <BR><FONT face=Arial
size=2>#0 0xffffe410 in ?? ()</FONT> </P>
<P><FONT face=Arial size=2>Regards</FONT> </P>
<P><FONT face=Arial size=2>Lee</FONT>
</P>###########################################<BR><BR>This message has been
scanned by F-Secure Anti-Virus for Microsoft Exchange.<BR>For more
information, connect to <A
onclick="return top.js.OpenExtLink(window,event,this)"
href="http://www.f-secure.com/"
target=_blank>http://www.f-secure.com/</A></DIV></DIV><BR>_______________________________________________<BR>--Bandwidth
and Colocation provided by <A
onclick="return top.js.OpenExtLink(window,event,this)"
href="http://Easynews.com" target=_blank>Easynews.com</A> --
<BR><BR>Asterisk-Users mailing list<BR>To UNSUBSCRIBE or update options
visit:<BR> <A onclick="return top.js.OpenExtLink(window,event,this)"
href="http://lists.digium.com/mailman/listinfo/asterisk-users"
target=_blank>http://lists.digium.com/mailman/listinfo/asterisk-users</A><BR><BR><BR></BLOCKQUOTE></DIV><BR><BR
clear=all><BR>-- <BR>Anthony D Cennami<BR>###########################################<br><br>This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange.<br>For more information, connect to http://www.f-secure.com/</BODY></HTML>