[OpenSIPS-Users] opensips 100% cpu

Bogdan-Andrei Iancu bogdan at voice-system.ro
Wed Dec 1 15:44:12 CET 2010


Hi,

it looks like the lock is kept by another process doing some stuff 
related to that transaction...maybe processing a different reply...Did 
you add some new stuff in onreply route ?

could you run with full logs (debug=6) and send me those logs (for the 
entire call) ?

Regards,
Bogdan

Ангелов К.Н. wrote:
> Hello,
>
> my opensips process goes to 100% cpu after first call with default 
> script and auth_aaa module enabled.
> No such problem at all when auth_aaa disabled. OS FreeBSD 8.1/amd64
>
> #loadmodule "auth_aaa.so"
> #modparam("auth_aaa", "aaa_url", 
> "radius:/usr/local/etc/radiusclient-ng/radiusclient.conf")
> #modparam("auth_aaa", "service_type", 15)
>
> It hangs at modules/tm/t_reply.c on LOCK_REPLIES( t );
>
> *****************
> +if (!onreply_avp_mode) LM_DBG("!onreply_avp_mode!\n");
> +if (!has_reply_route) LM_DBG("!has_reply_route!\n");
>
> if (!onreply_avp_mode || !has_reply_route) {
> + LM_DBG("Before lock\n");
> /* lock the reply*/
> LOCK_REPLIES( t );
> + LM_DBG("After lock\n");
> }
> ********************
>
> Here logs, without loadmodule "auth_aaa.so" and modparam auth_aaa
>
> Nov 26 15:33:14 noc-pbx /usr/local/sbin/opensips[70850]: 
> DBG:tm:reply_received: org. status uas=0, uac[0]=0 local=0 is_invite=0)
> Nov 26 15:33:14 noc-pbx /usr/local/sbin/opensips[70850]: 
> DBG:tm:reply_received: !onreply_avp_mode!
> Nov 26 15:33:14 noc-pbx /usr/local/sbin/opensips[70850]: 
> DBG:tm:reply_received: !has_reply_route!
> Nov 26 15:33:14 noc-pbx /usr/local/sbin/opensips[70850]: 
> DBG:tm:reply_received: Before lock
> Nov 26 15:33:14 noc-pbx /usr/local/sbin/opensips[70850]: 
> DBG:tm:reply_received: After lock
> Nov 26 15:33:14 noc-pbx /usr/local/sbin/opensips[70850]: 
> DBG:tm:t_should_relay_response: T_code=0, new_code=200
> Nov 26 15:33:14 noc-pbx /usr/local/sbin/opensips[70850]: 
> DBG:tm:relay_reply: branch=0, save=0, relay=0
>
> ************************************************
> with them
>
> Nov 26 15:35:33 noc-pbx /usr/local/sbin/opensips[70900]: 
> DBG:tm:reply_received: org. status uas=0, uac[0]=0 local=0 is_invite=0)
> Nov 26 15:35:33 noc-pbx /usr/local/sbin/opensips[70900]: 
> DBG:tm:reply_received: !onreply_avp_mode!
> Nov 26 15:35:33 noc-pbx /usr/local/sbin/opensips[70900]: 
> DBG:tm:reply_received: !has_reply_route!
> Nov 26 15:35:33 noc-pbx /usr/local/sbin/opensips[70900]: 
> DBG:tm:reply_received: Before lock
>
> ..........100%CPU.....
>
> ************************************************
> gdb
>
> Loaded symbols for /usr/local/lib/libradiusclient-ng.so.2
> Reading symbols from /usr/local/lib/opensips/modules/auth_aaa.so...(no 
> debugging symbols found)...done.
> Loaded symbols for /usr/local/lib/opensips/modules/auth_aaa.so
> Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols 
> found)...done.
> Loaded symbols for /libexec/ld-elf.so.1
> [Switching to Thread 800c041c0 (LWP 100216)]
> 0x000000080089e74c in sched_yield () from /lib/libc.so.7
> (gdb) bt
> #0 0x000000080089e74c in sched_yield () from /lib/libc.so.7
> #1 0x000000080073e10f in pthread_mutex_getyieldloops_np ()
> from /lib/libthr.so.3
> #2 0x00000008014f98a2 in reply_received ()
> from /usr/local/lib/opensips/modules/tm.so
> #3 0x000000000041c5fe in forward_reply ()
> #4 0x0000000000444078 in receive_msg ()
> #5 0x00000000004746d4 in udp_rcv_loop ()
> #6 0x0000000000422b5a in main ()
> *********************************************
>
>
> Any tips ?
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>


-- 
Bogdan-Andrei Iancu
OpenSIPS Bootcamp
15 - 19 November 2010, Edison, New Jersey, USA
www.voice-system.ro




More information about the Users mailing list