Anca,<div><br></div><div>The b2b_logic module will not compile:</div><div><div><br></div><div>make[1]: Entering directory `/usr/local/src/opensips_1_6/modules/b2b_logic'</div><div>Compiling b2b_logic.c</div><div>gcc -fPIC -DPIC -g -O9 -funroll-loops -Wcast-align -Wall -minline-all-stringops -falign-loops -ftree-vectorize -mtune=prescott -Wold-style-definition -Wmissing-field-initializers -Wredundant-decls -DMOD_NAME='"b2b_logic"' -DNAME='"opensips"' -DVERSION='"1.6.3-notls"' -DARCH='"i386"' -DOS='"linux"' -DCOMPILER='"gcc 4.3.2"' -D__CPU_i386 -D__OS_linux -D__SMP_yes -DCFG_DIR='"/usr/local/etc/opensips/"' -DPKG_MALLOC -DSHM_MEM -DSHM_MMAP -DUSE_IPV6 -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE -DHAVE_RESOLV_RES -DSTATISTICS -DCHANGEABLE_DEBUG_LEVEL -DF_MALLOC -DSVNREVISION='"2:7361"' -DFAST_LOCK -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024 -DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN -DHAVE_SCHED_YIELD -DHAVE_MSG_NOSIGNAL -DHAVE_MSGHDR_MSG_CONTROL -DHAVE_ALLOCA_H -DHAVE_TIMEGM -DHAVE_EPOLL -DHAVE_SIGIO_RT -DHAVE_SELECT -I/usr/include/libxml2 -I/usr/local/include/libxml2 -I/usr/local/include -c b2b_logic.c -o b2b_logic.o</div>
<div>Compiling logic.c</div><div>gcc -fPIC -DPIC -g -O9 -funroll-loops -Wcast-align -Wall -minline-all-stringops -falign-loops -ftree-vectorize -mtune=prescott -Wold-style-definition -Wmissing-field-initializers -Wredundant-decls -DMOD_NAME='"b2b_logic"' -DNAME='"opensips"' -DVERSION='"1.6.3-notls"' -DARCH='"i386"' -DOS='"linux"' -DCOMPILER='"gcc 4.3.2"' -D__CPU_i386 -D__OS_linux -D__SMP_yes -DCFG_DIR='"/usr/local/etc/opensips/"' -DPKG_MALLOC -DSHM_MEM -DSHM_MMAP -DUSE_IPV6 -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE -DHAVE_RESOLV_RES -DSTATISTICS -DCHANGEABLE_DEBUG_LEVEL -DF_MALLOC -DSVNREVISION='"2:7361"' -DFAST_LOCK -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024 -DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN -DHAVE_SCHED_YIELD -DHAVE_MSG_NOSIGNAL -DHAVE_MSGHDR_MSG_CONTROL -DHAVE_ALLOCA_H -DHAVE_TIMEGM -DHAVE_EPOLL -DHAVE_SIGIO_RT -DHAVE_SELECT -I/usr/include/libxml2 -I/usr/local/include/libxml2 -I/usr/local/include -c logic.c -o logic.o</div>
<div>logic.c: In function ‘process_bridge_bye’:</div><div>logic.c:352: warning: passing argument 4 of ‘b2b_api.send_reply’ makes integer from pointer without a cast</div><div>logic.c:352: warning: passing argument 7 of ‘b2b_api.send_reply’ from incompatible pointer type</div>
<div>logic.c:352: error: too few arguments to function ‘b2b_api.send_reply’</div><div>logic.c: In function ‘b2b_logic_notify’:</div><div>logic.c:780: warning: passing argument 4 of ‘b2b_api.send_reply’ makes integer from pointer without a cast</div>
<div>logic.c:780: warning: passing argument 7 of ‘b2b_api.send_reply’ from incompatible pointer type</div><div>logic.c:780: error: too few arguments to function ‘b2b_api.send_reply’</div><div>logic.c:848: warning: passing argument 4 of ‘b2b_api.send_reply’ makes integer from pointer without a cast</div>
<div>logic.c:848: warning: passing argument 7 of ‘b2b_api.send_reply’ from incompatible pointer type</div><div>logic.c:848: error: too few arguments to function ‘b2b_api.send_reply’</div><div>logic.c:851: warning: passing argument 4 of ‘b2b_api.send_reply’ makes integer from pointer without a cast</div>
<div>logic.c:851: warning: passing argument 7 of ‘b2b_api.send_reply’ from incompatible pointer type</div><div>logic.c:851: error: too few arguments to function ‘b2b_api.send_reply’</div><div>logic.c:857: warning: passing argument 4 of ‘b2b_api.send_reply’ makes integer from pointer without a cast</div>
<div>logic.c:857: warning: passing argument 7 of ‘b2b_api.send_reply’ from incompatible pointer type</div><div>logic.c:857: error: too few arguments to function ‘b2b_api.send_reply’</div><div>logic.c:1052: warning: passing argument 4 of ‘b2b_api.send_reply’ makes integer from pointer without a cast</div>
<div>logic.c:1052: warning: passing argument 7 of ‘b2b_api.send_reply’ from incompatible pointer type</div><div>logic.c:1052: error: too few arguments to function ‘b2b_api.send_reply’</div><div>make[1]: *** [logic.o] Error 1</div>
<div>make[1]: Leaving directory `/usr/local/src/opensips_1_6/modules/b2b_logic'</div><div>make: *** [modules] Error 2</div><div><br></div><div>Regards.</div><br><div class="gmail_quote">On Wed, Nov 10, 2010 at 6:10 AM, Anca Vamanu <span dir="ltr"><<a href="mailto:anca@opensips.org">anca@opensips.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div text="#000000" bgcolor="#ffffff">
Hi,<br>
<br>
I have found the cause of the crash and fixed it. Please update your
code.<br>
<br>
Thanks and regards,<div class="im"><br>
<br>
<pre cols="72">--
Anca Vamanu
<a href="http://www.voice-system.ro" target="_blank">www.voice-system.ro</a></pre>
<br>
<br></div><div><div></div><div class="h5">
On 11/09/2010 06:40 PM, thrillerbee wrote:
<blockquote type="cite">Anca,
<div><br>
</div>
<div>I am seeing a crash about every 13-14 days. I've attached the
backtrace from this morning.</div>
<div>The other problem is that OpenSIPS immediately crashes when
monit tries to restart it. I have to manually truncate the b2b_entities
& b2b_logic tables to get it to start w/o crashing. I'm attaching
this backtrace as well (called <i>restart</i>).</div>
<div><br>
</div>
<div>Thanks.<br>
<br>
<div class="gmail_quote">On Mon, Nov 1, 2010 at 10:56 AM, thrillerbee
<span dir="ltr"><<a href="mailto:thrillerbee@gmail.com" target="_blank">thrillerbee@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex">Anca,<br>
<br>
I had not altered the code. It core dumped pretty quickly so I was
force to revert to revision 7317.<br>
I will try to schedule some time to retest the newest revision and see
if it core dumps again.<br>
<br>
Thanks again.
<div>
<div>
<div><br>
<div class="gmail_quote">On Mon, Nov 1, 2010 at 10:44 AM, Anca
Vamanu <span dir="ltr"><<a href="mailto:anca@opensips.org" target="_blank">anca@opensips.org</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex">
<div text="#000000" bgcolor="#ffffff">
Hi,<br>
<br>
The lines in your gdb backtrace don't match at all. Have you altered
the code or is the core corrupted?
<div><br>
<br>
Regards,<br>
<pre cols="72">--
Anca Vamanu
<a href="http://www.voice-system.ro" target="_blank">www.voice-system.ro</a></pre>
<br>
<br>
</div>
<div>
<div>On 11/01/2010 04:35 PM, thrillerbee wrote:
<blockquote type="cite">Anca,
<div><br>
</div>
<div>I am still seeing core dumps. bt attached.</div>
<div><br>
</div>
<div>Thanks .<br>
<br>
<div class="gmail_quote">On Tue, Oct 26, 2010 at 8:44 AM,
thrillerbee <span dir="ltr"><<a href="mailto:thrillerbee@gmail.com" target="_blank">thrillerbee@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex">Anca,
<div><br>
</div>
<div>Thanks for the info. I'll let you know if I have issues
after
the upgrade.</div>
<div><br>
</div>
<div>Thanks.
<div>
<div><br>
<br>
<div class="gmail_quote">On Tue, Oct 26, 2010 at 3:42 AM,
Anca
Vamanu <span dir="ltr"><<a href="mailto:anca@opensips.org" target="_blank">anca@opensips.org</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex">Hi,<br>
<br>
At startup, the b2b_tables are copied into memory and are truncated,<br>
then the data is updated in the database at an interval controlled by<br>
the update_period parameter ( by default 100 seconds).<br>
<br>
As for the core dump, if you are using trunk, can you please update your<br>
code? I just committed a lot of changes in those modules.<br>
<br>
Regards,<br>
<br>
--<br>
Anca Vamanu<br>
<a href="http://www.voice-system.ro" target="_blank">www.voice-system.ro</a><br>
<div>
<div><br>
<br>
<br>
<br>
On 10/26/2010 06:58 AM, thrillerbee wrote:<br>
> I'm waiting for my b2bua box to core dump again so I can get the<br>
> backtrace, but is it expected behavior that OpenSIPS cannot restart<br>
> w/o first truncating the b2b_entities & b2b_logic tables?
That makes<br>
> for a messy recovery...<br>
><br>
> Thanks.<br>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</blockquote>
</div></div></div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">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></blockquote></div><br></div>