Hey Bogdan,<br><br>See my log file:<br><br>Jul 19 13:04:45 opensips /usr/local/sbin/opensips[24759]: RouteAccounting: route accounting <br>Jul 19 13:04:46 opensips /usr/local/sbin/opensips[24756]: INFO:core:handle_sigs: child process 24758 exited by a signal 11<br>
Jul 19 13:04:46 opensips /usr/local/sbin/opensips[24756]: INFO:core:handle_sigs: core was generated<br>Jul 19 13:04:46 opensips /usr/local/sbin/opensips[24756]: INFO:core:handle_sigs: terminating due to SIGCHLD<br><br>In my main route script, the next step after route accounting is the route_authenticate. that contains the check_source_address function.<br>
<br>Follow my route_authenticate:<br>route[ROUTE_AUTHENTICATE] {<br> if (check_source_address("0","$avp(i:9)")) {<br> xlog("$avp(i:9)");<br> } <br>
<br>Regards,<br><br><div class="gmail_quote">On 20 July 2010 08:33, Bogdan-Andrei Iancu <span dir="ltr"><<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi Wesley,<br>
<br>
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.<br>
<br>
Are you sure the crash is triggered by "check_source_address" function ?<br>
<br>
Regards,<br>
Bogdan<br>
<br>
Wesley Volcov wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Andrew,<br>
<br><div class="im">
I'he downgrade my opensips to 1.6.2 version and the error gone! It just occur with the svn version.<br>
Follow my coredump:<br>
warning: exec file is newer than core file.<br>
Reading symbols from /lib/ld-linux.so.2...(no debugging symbols found)...done.<br>
Loaded symbols for /lib/ld-linux.so.2<br>
Core was generated by `/usr/local/sbin/opensips -P /var/run/opensips.pid -m 1024 -u root -g root'.<br>
Program terminated with signal 11, Segmentation fault.<br>
#0 0x080a2b10 in check_ip_address (ip=0xbfb5fc78, name=0x0, port=0, proto=0, resolver=0) at resolve.c:100<br>
100 if ((ip->af==AF_INET6) &&<br>
<br>
#0 0x080a2b10 in check_ip_address (ip=0xbfb5fc78, name=0x0, port=0, proto=0, resolver=0) at resolve.c:100<br>
he = <value optimized out><br>
__FUNCTION__ = "check_ip_address"<br>
#1 0x004a461e in ?? ()<br>
No symbol table info available.<br>
#2 0xbfb5fc78 in ?? ()<br>
No symbol table info available.<br>
#3 0x00000000 in ?? ()<br>
No symbol table info available.<br>
<br>
In this core, I had deleted the get_source_group function, but it crashed with check_source_address function. When I downgraded my opensips this error did not happen again.<br>
<br>
Cheers<br>
<br></div><div class="im">
On 19 July 2010 11:49, Andrew Pogrebennyk <<a href="mailto:andrew.pogrebennyk@portaone.com" target="_blank">andrew.pogrebennyk@portaone.com</a> <mailto:<a href="mailto:andrew.pogrebennyk@portaone.com" target="_blank">andrew.pogrebennyk@portaone.com</a>>> wrote:<br>
<br>
Wesley,<br>
<br>
May be. I can suggest three things here:<br>
<br>
1) try to run svn update again, recompile opensips and see if the<br>
problem goes away<br>
2) set debug=6 and send us the log before moment of crash<br>
3) if you get a coredump file, get a bracktrace from it and post<br>
it here<br>
<br>
Hope this helps.<br>
<br>
<br>
On 19.07.2010 17:43, Wesley Volcov wrote:<br>
<br>
Andrew,<br>
<br>
I'm using like the documentations says:<br>
<br>
if ( get_source_group("$var(group)") ) {<br>
# do something with $var(group)<br>
xlog("group is $var(group)\n");<br>
};<br>
<br>
I have deleted this lines and the error continue... Can it be<br>
a bug<br>
version ?<br>
<br>
<br>
-- Sincerely,<br>
Andrew Pogrebennyk<br>
<br>
<br>
<br>
<br>
-- <br>
Wesley Volcov<br></div>
Email: <a href="mailto:wesleyvolcov@gmail.com" target="_blank">wesleyvolcov@gmail.com</a> <mailto:<a href="mailto:wesleyvolcov@gmail.com" target="_blank">wesleyvolcov@gmail.com</a>><br>
Messenger: <a href="mailto:volcov@live.com" target="_blank">volcov@live.com</a> <mailto:<a href="mailto:volcov@live.com" target="_blank">volcov@live.com</a>><div class="im"><br>
Mobile: +55 11 9989-5348<br>
Website: <a href="http://volcov.blogspot.com" target="_blank">http://volcov.blogspot.com</a><br></div><div class="im">
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br>
</div></blockquote><div><div></div><div class="h5">
<br>
<br>
-- <br>
Bogdan-Andrei Iancu<br>
OpenSIPS Bootcamp<br>
20 - 24 September 2010, Frankfurt, Germany<br>
<a href="http://www.voice-system.ro" target="_blank">www.voice-system.ro</a><br>
<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Wesley Volcov<br>Email: <a href="mailto:wesleyvolcov@gmail.com">wesleyvolcov@gmail.com</a><br>Messenger: <a href="mailto:volcov@live.com">volcov@live.com</a><br>
Mobile: +55 11 9989-5348<br>Website: <a href="http://volcov.blogspot.com">http://volcov.blogspot.com</a><br>