Re: [OpenSIPS-Users] get_source_group not working

2010-07-20 Thread Bogdan-Andrei Iancu
Hi Wesley, The first frames of the core are bogus ... :(...the crash happens in the check_ip_address function because the name param is empty, but I cannot see where it is called from , to identify the bug. Are you sure the crash is triggered by check_source_address function ? Regards, Bogdan

Re: [OpenSIPS-Users] get_source_group not working

2010-07-20 Thread Wesley Volcov
Hey Bogdan, See my log file: Jul 19 13:04:45 opensips /usr/local/sbin/opensips[24759]: RouteAccounting: route accounting Jul 19 13:04:46 opensips /usr/local/sbin/opensips[24756]: INFO:core:handle_sigs: child process 24758 exited by a signal 11 Jul 19 13:04:46 opensips

Re: [OpenSIPS-Users] get_source_group not working

2010-07-20 Thread Bogdan-Andrei Iancu
Hi Wesley, But as the log says, the crashing process is 24758, not the one logging the route accounting (24759). But I see a core file is generated - could you use GDB to extract the backtrace ? Regards, Bogdan Wesley Volcov wrote: Hey Bogdan, See my log file: Jul 19 13:04:45 opensips

Re: [OpenSIPS-Users] get_source_group not working

2010-07-20 Thread Wesley Volcov
Hi Bogdan, The has more than 1GB size. Follow the backtrace you asked me.: *[r...@opensips /]# gdb opensips core.24758* GNU gdb (GDB) Red Hat Enterprise Linux (7.0.1-23.el5_5.1) Copyright (C) 2009 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later

Re: [OpenSIPS-Users] get_source_group not working

2010-07-19 Thread Wesley Volcov
Hey Bogdan, I have this error too. I updated my opensips from https://opensips.svn.sourceforge.net/svnroot/opensips/branches/1.6, and after this update the opensips -c seems ok, but after some seconds opensips started it die: Jul 19 11:00:46 opensips /usr/local/sbin/opensips[32027]:

Re: [OpenSIPS-Users] get_source_group not working

2010-07-19 Thread Andrew Pogrebennyk
Wesley, Are you using the new style of calling this function: get_source_group($var(x)) ? On 19.07.2010 17:09, Wesley Volcov wrote: Hey Bogdan, I have this error too. I updated my opensips from https://opensips.svn.sourceforge.net/svnroot/opensips/branches/1.6, and after this update the

Re: [OpenSIPS-Users] get_source_group not working

2010-07-19 Thread Wesley Volcov
Andrew, I'm using like the documentations says: if ( get_source_group($var(group)) ) { # do something with $var(group) xlog(group is $var(group)\n); }; I have deleted this lines and the error continue... Can it be a bug version ? On 19 July 2010 11:25, Andrew Pogrebennyk

Re: [OpenSIPS-Users] get_source_group not working

2010-07-19 Thread Andrew Pogrebennyk
Wesley, May be. I can suggest three things here: 1) try to run svn update again, recompile opensips and see if the problem goes away 2) set debug=6 and send us the log before moment of crash 3) if you get a coredump file, get a bracktrace from it and post it here Hope this helps. On

Re: [OpenSIPS-Users] get_source_group not working

2010-07-19 Thread Wesley Volcov
Andrew, I'he downgrade my opensips to 1.6.2 version and the error gone! It just occur with the svn version. Follow my coredump: warning: exec file is newer than core file. Reading symbols from /lib/ld-linux.so.2...(no debugging symbols found)...done. Loaded symbols for /lib/ld-linux.so.2 Core was

[OpenSIPS-Users] get_source_group not working

2010-07-16 Thread Jayesh Nambiar
Hi All, I am trying to use the get_source_group function from the permissions module and it gives me command not found missing loadmodule error. I am trying to use it just as mentioned in the docs which is get_source_group(var(group_id)); Can someone please guide me to exact number of arguments