Hi Bogdan,<br><br>The has more than 1GB size.<br>Follow the backtrace you asked me.:<br><b>[root@opensips /]# gdb opensips core.24758</b><br>GNU gdb (GDB) Red Hat Enterprise Linux (7.0.1-23.el5_5.1)<br>Copyright (C) 2009 Free Software Foundation, Inc.<br>
License GPLv3+: GNU GPL version 3 or later <<a href="http://gnu.org/licenses/gpl.html">http://gnu.org/licenses/gpl.html</a>><br>This is free software: you are free to change and redistribute it.<br>There is NO WARRANTY, to the extent permitted by law. Type "show copying"<br>
and "show warranty" for details.<br>This GDB was configured as "i386-redhat-linux-gnu".<br>For bug reporting instructions, please see:<br><<a href="http://www.gnu.org/software/gdb/bugs/">http://www.gnu.org/software/gdb/bugs/</a>>...<br>
Reading symbols from /usr/local/sbin/opensips...done.<br><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=0xbfd63268, name=0x0, port=0, proto=135, resolver=0) at resolve.c:100<br>
100 if ((ip->af==AF_INET6) &&<br><b><br>(gdb) bt full</b><br>#0 0x080a2b10 in check_ip_address (ip=0xbfd63268, name=0x0, port=0, proto=135, resolver=0) at resolve.c:100<br> he = <value optimized out><br>
__FUNCTION__ = "check_ip_address"<br>#1 0x00ef961e in ?? ()<br>No symbol table info available.<br>#2 0xbfd63268 in ?? ()<br>No symbol table info available.<br>#3 0x00000000 in ?? ()<br>No symbol table info available.<br>
<br>Cheers,<br><br><div class="gmail_quote">On 20 July 2010 12:04, 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>
But as the log says, the crashing process is 24758, not the one logging the route accounting (24759).<br>
<br>
But I see a core file is generated -> could you use GDB to extract the backtrace ?<div class="im"><br>
<br>
Regards,<br>
Bogdan<br>
<br>
Wesley Volcov wrote:<br>
</div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">
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><div><div></div><div class="h5">
On 20 July 2010 08:33, Bogdan-Andrei Iancu <<a href="mailto:bogdan@voice-system.ro" target="_blank">bogdan@voice-system.ro</a> <mailto:<a href="mailto:bogdan@voice-system.ro" target="_blank">bogdan@voice-system.ro</a>>> wrote:<br>
<br>
Hi Wesley,<br>
<br>
The first frames of the core are bogus ... :(...the crash happens<br>
in the "check_ip_address" function because the name param is<br>
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"<br>
function ?<br>
<br>
Regards,<br>
Bogdan<br>
<br>
Wesley Volcov wrote:<br>
<br>
Andrew,<br>
<br>
I'he downgrade my opensips to 1.6.2 version and the error<br>
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<br>
symbols found)...done.<br>
Loaded symbols for /lib/ld-linux.so.2<br>
Core was generated by `/usr/local/sbin/opensips -P<br>
/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,<br>
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,<br>
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<br>
it crashed with check_source_address function. When I<br>
downgraded my opensips this error did not happen again.<br>
<br>
Cheers<br>
<br>
On 19 July 2010 11:49, Andrew Pogrebennyk<br>
<<a href="mailto:andrew.pogrebennyk@portaone.com" target="_blank">andrew.pogrebennyk@portaone.com</a><br>
<mailto:<a href="mailto:andrew.pogrebennyk@portaone.com" target="_blank">andrew.pogrebennyk@portaone.com</a>><br>
<mailto:<a href="mailto:andrew.pogrebennyk@portaone.com" target="_blank">andrew.pogrebennyk@portaone.com</a><br>
<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<br>
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<br>
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<br>
it be<br>
a bug<br>
version ?<br>
<br>
<br>
-- Sincerely,<br>
Andrew Pogrebennyk<br>
<br>
<br>
<br>
<br>
-- Wesley Volcov<br>
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></div></div>
<mailto:<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>>><div class="im"><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>><br></div>
<mailto:<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>
<br>
Mobile: +55 11 9989-5348<br>
Website: <a href="http://volcov.blogspot.com" target="_blank">http://volcov.blogspot.com</a><br>
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
Users mailing list<br></div>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a> <mailto:<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>><div class="im"><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>
<br>
<br>
-- Bogdan-Andrei Iancu<br>
OpenSIPS Bootcamp<br>
20 - 24 September 2010, Frankfurt, Germany<br></div>
<a href="http://www.voice-system.ro" target="_blank">www.voice-system.ro</a> <<a href="http://www.voice-system.ro" target="_blank">http://www.voice-system.ro</a>><br>
<br>
<br>
<br>
<br>
-- <br>
Wesley Volcov<div class="im"><br>
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>><br>
Mobile: +55 11 9989-5348<br>
Website: <a href="http://volcov.blogspot.com" target="_blank">http://volcov.blogspot.com</a><br>
</div></blockquote>
<br>
<br>
-- <br><div><div></div><div class="h5">
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>