Hello, I am using Sofia 1.12.6 and using nta directly. I have written a server for our system.
Sofia crashes. The problem I believe is that there is too many threads opened. In point #11 below I call auth_mod_check_client. The problem seams to me that to many people try to REGISTER but they fail, so for every time there is a new thread. Is any way to limit the time that the thread lives if it is not successfully REGISTERed?. or any suggestion? Thank you, Diego GNU gdb 5.0 Copyright 2000 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-slackware-linux"... Core was generated by `./SIP'. Program terminated with signal 6, Aborted. Reading symbols from /lib/libm.so.6...done. Loaded symbols for /lib/libm.so.6 Reading symbols from /lib/libpthread.so.0...done. rw_common (): write: Success. warning: unable to set global thread event mask rw_common (): read: Success. rw_common (): read: Success. Loaded symbols for /lib/libpthread.so.0 Reading symbols from /lib/librt.so.1...done. Loaded symbols for /lib/librt.so.1 Reading symbols from /usr/lib/libcrypto.so.0...done. Loaded symbols for /usr/lib/libcrypto.so.0 Reading symbols from /usr/lib/libssl.so.0...done. Loaded symbols for /usr/lib/libssl.so.0 Reading symbols from /lib/libc.so.6...done. Loaded symbols for /lib/libc.so.6 Reading symbols from /lib/ld-linux.so.2...done. Loaded symbols for /lib/ld-linux.so.2 Reading symbols from /lib/libdl.so.2...done. Loaded symbols for /lib/libdl.so.2 Reading symbols from /lib/libnss_files.so.2...done. Loaded symbols for /lib/libnss_files.so.2 #0 0x40200ef1 in _nl_init_domain_conv (domain_file=0x40053cc0, domain=0x6, domainbinding=0x414e) at loadmsgcat.c:200 200 loadmsgcat.c: No such file or directory. (gdb) bt #0 0x40200ef1 in _nl_init_domain_conv (domain_file=0x40053cc0, domain=0x6, domainbinding=0x414e) at loadmsgcat.c:200 #1 0x4004abb1 in pthread_initialize () at pthread.c:447 #2 0x4004af2b in __pthread_create_2_1 (thread=0x6, attr=0x402f0ff4, start_routine=0x402f0ff4, arg=0x8518d00) at internals.h:381 #3 0x40200b24 in free_mem () at dcigettext.c:1207 #4 0x402023fd in X509_STORE_free () at explodename.c:103 #5 0x401fa00f in ASN1_INTEGER_get () at ../iconv/loop.c:326 #6 0x80fb353 in auth_htable_resize (home=0x83adbb8, aht=0x83adbd0, new_size=207) at sofia/iptsec/auth_module.c:84 #7 0x80f9eea in auth_readdb_internal (am=0x83adbb8, always=0) at sofia/iptsec/auth_module.c:1033 #8 0x80f9b14 in auth_readdb_if_needed (am=0x83adbb8) at sofia/iptsec/auth_module.c:946 #9 0x80f8cfc in auth_method_digest_x (am=0x83adbb8, as=0x8518b70, au=0x0, ach=0xbfffe638) at sofia/iptsec/auth_module.c:624 #10 0x80f88f5 in auth_mod_verify (am=0x83adbb8, as=0x8518b70, credentials=0x0, ach=0xbfffe638) at sofia/iptsec/auth_module.c:427 #11 0x80fb073 in auth_mod_check_client (am=0x83adbb8, as=0x8518b70, credentials=0x0, ach=0xbfffe638) at sofia/iptsec/auth_module.c:1521 #12 0x805cf9c in prepara_autorizacion (inc=0x8544d88, sip=0x8442604) at funciones_sofia.c:2108 #13 0x8055752 in procesa_call_request (magico=0x8190f60, leg=0x83ad700, inc=0x8544d88, sip=0x8442604) at funciones_sofia.c:113 #14 0x8087444 in incoming_callback (leg=0x83ad700, irq=0x8544d88, sip=0x8442604) at sofia/nta/nta.c:4563 #15 0x8085e0b in leg_recv (leg=0x83ad700, msg=0x8442568, sip=0x8442604, tport=0x83acd10) at sofia/nta/nta.c:3878 #16 0x8081735 in agent_recv_request (agent=0x83abc10, msg=0x8442568, sip=0x8442604, tport=0x83acd10) at sofia/nta/nta.c:2308 #17 0x80807aa in agent_recv_message (agent=0x83abc10, tport=0x83acd10, msg=0x8442568, tport_via=0x83acfb8, now={tv_sec = 3412920890, tv_usec = 854422}) at sofia/nta/nta.c:2098 #18 0x80cd8bb in tport_base_deliver (self=0x83acd10, msg=0x8442568, now={ tv_sec = 3412920890, tv_usec = 854422}) at sofia/tport/tport.c:2850 #19 0x80cd855 in tport_deliver (self=0x83acd10, msg=0x8442568, next=0x0, sc=0x0, now={tv_sec = 3412920890, tv_usec = 854422}) at sofia/tport/tport.c:2839 #20 0x80cd47f in tport_parse (self=0x83acd10, complete=1, now={ tv_sec = 3412920890, tv_usec = 854422}) at sofia/tport/tport.c:2757 #21 0x80cd17a in tport_recv_event (self=0x83acd10) at sofia/tport/tport.c:2704 #22 0x80cce3c in tport_base_wakeup (self=0x83acd10, events=1) at sofia/tport/tport.c:2608 #23 0x80ccc14 in tport_wakeup_pri (m=0x8190f60, w=0x83ab6d0, self=0x83acd10) at sofia/tport/tport.c:2571 #24 0x807962b in su_poll_port_wait_events (self=0x83ab220, tout=50) at sofia_1-12-6/su/su_poll_port.c:592 #25 0x8077f4d in su_base_port_step (self=0x83ab220, tout=50) at sofia_1-12-6/su/su_base_port.c:423 #26 0x8070280 in su_port_step (self=0x83ab220, tout=50) at sofia/su/su_port.h:330 #27 0x806f7a8 in su_root_step (self=0x83abbe8, tout=50) ---Type <return> to continue, or q <return> to quit--- at sofia/su/su_root.c:720 #28 0x8056f42 in correr_sofia () at funciones_sofia.c:640 #29 0x804c6e6 in main (argc=1, argv=0xbffffe14) at sip.cc:98 #30 0x401ed469 in BIO_free () at eval.c:88 Current language: auto; currently c ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Sofia-sip-devel mailing list Sofia-sip-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel