Anca, The b2b_logic module will not compile:
make[1]: Entering directory `/usr/local/src/opensips_1_6/modules/b2b_logic' Compiling b2b_logic.c 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 Compiling logic.c 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 logic.c: In function ‘process_bridge_bye’: logic.c:352: warning: passing argument 4 of ‘b2b_api.send_reply’ makes integer from pointer without a cast logic.c:352: warning: passing argument 7 of ‘b2b_api.send_reply’ from incompatible pointer type logic.c:352: error: too few arguments to function ‘b2b_api.send_reply’ logic.c: In function ‘b2b_logic_notify’: logic.c:780: warning: passing argument 4 of ‘b2b_api.send_reply’ makes integer from pointer without a cast logic.c:780: warning: passing argument 7 of ‘b2b_api.send_reply’ from incompatible pointer type logic.c:780: error: too few arguments to function ‘b2b_api.send_reply’ logic.c:848: warning: passing argument 4 of ‘b2b_api.send_reply’ makes integer from pointer without a cast logic.c:848: warning: passing argument 7 of ‘b2b_api.send_reply’ from incompatible pointer type logic.c:848: error: too few arguments to function ‘b2b_api.send_reply’ logic.c:851: warning: passing argument 4 of ‘b2b_api.send_reply’ makes integer from pointer without a cast logic.c:851: warning: passing argument 7 of ‘b2b_api.send_reply’ from incompatible pointer type logic.c:851: error: too few arguments to function ‘b2b_api.send_reply’ logic.c:857: warning: passing argument 4 of ‘b2b_api.send_reply’ makes integer from pointer without a cast logic.c:857: warning: passing argument 7 of ‘b2b_api.send_reply’ from incompatible pointer type logic.c:857: error: too few arguments to function ‘b2b_api.send_reply’ logic.c:1052: warning: passing argument 4 of ‘b2b_api.send_reply’ makes integer from pointer without a cast logic.c:1052: warning: passing argument 7 of ‘b2b_api.send_reply’ from incompatible pointer type logic.c:1052: error: too few arguments to function ‘b2b_api.send_reply’ make[1]: *** [logic.o] Error 1 make[1]: Leaving directory `/usr/local/src/opensips_1_6/modules/b2b_logic' make: *** [modules] Error 2 Regards. On Wed, Nov 10, 2010 at 6:10 AM, Anca Vamanu <[email protected]> wrote: > Hi, > > I have found the cause of the crash and fixed it. Please update your code. > > Thanks and regards, > > > -- > Anca Vamanuwww.voice-system.ro > > > > On 11/09/2010 06:40 PM, thrillerbee wrote: > > Anca, > > I am seeing a crash about every 13-14 days. I've attached the backtrace > from this morning. > 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 *restart*). > > Thanks. > > On Mon, Nov 1, 2010 at 10:56 AM, thrillerbee <[email protected]>wrote: > >> Anca, >> >> I had not altered the code. It core dumped pretty quickly so I was force >> to revert to revision 7317. >> I will try to schedule some time to retest the newest revision and see if >> it core dumps again. >> >> Thanks again. >> >> On Mon, Nov 1, 2010 at 10:44 AM, Anca Vamanu <[email protected]> wrote: >> >>> Hi, >>> >>> The lines in your gdb backtrace don't match at all. Have you altered the >>> code or is the core corrupted? >>> >>> >>> Regards, >>> >>> -- >>> Anca Vamanuwww.voice-system.ro >>> >>> >>> >>> On 11/01/2010 04:35 PM, thrillerbee wrote: >>> >>> Anca, >>> >>> I am still seeing core dumps. bt attached. >>> >>> Thanks . >>> >>> On Tue, Oct 26, 2010 at 8:44 AM, thrillerbee <[email protected]>wrote: >>> >>>> Anca, >>>> >>>> Thanks for the info. I'll let you know if I have issues after the >>>> upgrade. >>>> >>>> Thanks. >>>> >>>> >>>> On Tue, Oct 26, 2010 at 3:42 AM, Anca Vamanu <[email protected]> wrote: >>>> >>>>> Hi, >>>>> >>>>> At startup, the b2b_tables are copied into memory and are truncated, >>>>> then the data is updated in the database at an interval controlled by >>>>> the update_period parameter ( by default 100 seconds). >>>>> >>>>> As for the core dump, if you are using trunk, can you please update >>>>> your >>>>> code? I just committed a lot of changes in those modules. >>>>> >>>>> Regards, >>>>> >>>>> -- >>>>> Anca Vamanu >>>>> www.voice-system.ro >>>>> >>>>> >>>>> >>>>> >>>>> On 10/26/2010 06:58 AM, thrillerbee wrote: >>>>> > I'm waiting for my b2bua box to core dump again so I can get the >>>>> > backtrace, but is it expected behavior that OpenSIPS cannot restart >>>>> > w/o first truncating the b2b_entities & b2b_logic tables? That makes >>>>> > for a messy recovery... >>>>> > >>>>> > Thanks. >>>>> >>>> > _______________________________________________ > Users mailing list > [email protected] > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > >
_______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
