Hi Chevio, Hard to say as the backtrace points to a crashing point into your modules......
#0 tncgw_route (msg=0x81950f8, _para1=0x0, _para2=0x0) at /usr/include/bits/string3.h:85 Regards, Bogdan Chevio wrote: > I am writing a custom module for opensips 1.4. It apparently runs fine and > clears memory OK, but with some traffic (around 256 consurrent sessions) I > am getting the following error in opensips log: > > Mar 4 16:45:24 a2 /sbin/opensips[7078]: INFO:tncgw:tncgw_ip_lookup: TNCGW > ip_address_lookup 0.01n beta > Mar 4 16:45:24 a2 /sbin/opensips[7078]: INFO:tncgw:tncgw_ip_lookup: > ---Memory allocation > Mar 4 16:45:24 a2 /sbin/opensips[7078]: INFO:tncgw:tncgw_ip_lookup: ---get > ip address from the sender > Mar 4 16:45:24 a2 /sbin/opensips[7078]: INFO:tncgw:tncgw_ip_lookup: > ---Prepare the query > Mar 4 16:45:24 a2 /sbin/opensips[7078]: INFO:tncgw:tncgw_ip_lookup: ---Run > the query > Mar 4 16:45:24 a2 /sbin/opensips[7078]: INFO:tncgw:tncgw_ip_lookup: ---IP > Match, read the tech prefix > Mar 4 16:45:24 a2 /sbin/opensips[7078]: INFO:tncgw:tncgw_ip_lookup: > ---Compare Prefixes msg:() db:() > Mar 4 16:45:24 a2 /sbin/opensips[7078]: INFO:tncgw:tncgw_ip_lookup: > ---Releasing Memory > Mar 4 16:45:24 a2 /sbin/opensips[7078]: INFO:tncgw:tncgw_ip_lookup: > ---Return OK > Mar 4 16:45:24 a2 kernel: [ 1625.912326] opensips[7078]: segfault at 0 ip > b7b05c3a sp bf82ae60 error 6 in tncgw.so[b7b03000+b000] > Mar 4 16:45:24 a2 /sbin/opensips[7076]: INFO:core:handle_sigs: child > process 7078 exited by a signal 11 > > Here is the back trace > > Reading symbols from /lib/tls/i686/cmov/libnss_dns.so.2...done. > Loaded symbols for /lib/tls/i686/cmov/libnss_dns.so.2 > Core was generated by `/sbin/opensips -P /var/run/opensips.pid'. > Program terminated with signal 11, Segmentation fault. > [New process 7078] > #0 tncgw_route (msg=0x81950f8, _para1=0x0, _para2=0x0) > at /usr/include/bits/string3.h:85 > 85 return __builtin___memset_chk (__dest, __ch, __len, __bos0 > (__dest)); > (gdb) bt > #0 tncgw_route (msg=0x81950f8, _para1=0x0, _para2=0x0) at > /usr/include/bits/string3.h:85 > #1 0x08055235 in do_action (a=0x818d948, msg=0x81950f8) at action.c:845 > #2 0x08054132 in run_action_list (a=0x818d948, msg=0x81950f8) at > action.c:138 > #3 0x080a0166 in eval_expr (e=0x818d9b0, msg=0x81950f8, val=0xbf82b268) at > route.c:1104 > #4 0x08053def in do_assign (msg=0x81950f8, a=0x818d9d8) at action.c:207 > #5 0x080549b5 in do_action (a=0x818d9d8, msg=0x81950f8) at action.c:951 > #6 0x08054132 in run_action_list (a=0x818d218, msg=0x81950f8) at > action.c:138 > #7 0x08056805 in do_action (a=0x818f120, msg=0x81950f8) at action.c:717 > #8 0x08054132 in run_action_list (a=0x8189fd0, msg=0x81950f8) at > action.c:138 > #9 0x080577b4 in run_top_route (a=0x8189fd0, msg=0x81950f8) at action.c:118 > #10 0x08091e44 in receive_msg ( > buf=0x8162f80 "INVITE sip:[email protected] SIP/2.0\r\nVia: > SIP/2.0/UDP > 216.66.234.201:5060;branch=z9hG4bK06e2c4b6;rport\r\nMax-Forwards: > 69\r\nFrom: \"7579908981\" > <sip:[email protected]>;tag=as73d1d8c6\r\nTo"..., len=861, > rcv_info=0xbf82b798) at receive.c:165 > #11 0x080ce5d3 in udp_rcv_loop () at udp_server.c:449 > #12 0x0806c456 in main (argc=3, argv=0xbf82b924) at main.c:780 > > Any idea what might I be doing wrong ? > > > _______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
