Upgrading from 1.9 to 1.11 - usrloc issue

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Upgrading from 1.9 to 1.11 - usrloc issue

osiris123d
I am trying to upgrade to the latest version and I am running into some segfault issues

I've update the database version numbers and don't have any WARNINGs showing up when I start OpenSIPS.  Here is the issue I see in syslog

Aug 17 17:44:51 SIPProxy02 kernel: [25783210.686957] opensips[18086]: segfault at 0 ip 00007f45fc9bcbbe sp 00007fffe7daee80 error 4 in usrloc.so[7f45fc9b5000+27000]
Aug 17 17:44:55 SIPProxy02 /usr/local/sbin/opensips[18072]: INFO:core:handle_sigs: child process 18086 exited by a signal 11
Aug 17 17:44:55 SIPProxy02 /usr/local/sbin/opensips[18072]: INFO:core:handle_sigs: core was generated
Aug 17 17:44:55 SIPProxy02 /usr/local/sbin/opensips[18072]: INFO:core:handle_sigs: terminating due to SIGCHLD
Aug 17 17:44:55 SIPProxy02 /usr/local/sbin/opensips[18087]: INFO:core:sig_usr: signal 15 received
Aug 17 17:44:55 SIPProxy02 /usr/local/sbin/opensips[18085]: INFO:core:sig_usr: signal 15 received
Aug 17 17:44:55 SIPProxy02 /usr/local/sbin/opensips[18081]: INFO:core:sig_usr: signal 15 received
Aug 17 17:44:55 SIPProxy02 /usr/local/sbin/opensips[18079]: INFO:core:sig_usr: signal 15 received
Aug 17 17:44:55 SIPProxy02 /usr/local/sbin/opensips[18077]: INFO:core:sig_usr: signal 15 received
Aug 17 17:44:55 SIPProxy02 /usr/local/sbin/opensips[18088]: INFO:core:sig_usr: signal 15 received
Aug 17 17:44:55 SIPProxy02 /usr/local/sbin/opensips[18078]: INFO:core:sig_usr: signal 15 received
Aug 17 17:44:55 SIPProxy02 /usr/local/sbin/opensips[18084]: INFO:core:sig_usr: signal 15 received
Aug 17 17:44:55 SIPProxy02 /usr/local/sbin/opensips[18076]: INFO:core:sig_usr: signal 15 received
Aug 17 17:44:55 SIPProxy02 /usr/local/sbin/opensips[18075]: INFO:core:sig_usr: signal 15 received
Aug 17 17:44:55 SIPProxy02 /usr/local/sbin/opensips[18083]: INFO:core:sig_usr: signal 15 received
Aug 17 17:44:55 SIPProxy02 /usr/local/sbin/opensips[18080]: INFO:core:sig_usr: signal 15 received
Aug 17 17:44:55 SIPProxy02 /usr/local/sbin/opensips[18074]: INFO:core:sig_usr: signal 15 received
Aug 17 17:44:55 SIPProxy02 /usr/local/sbin/opensips[18072]: INFO:core:cleanup: cleanup



Here is what the core dump says

Program terminated with signal 11, Segmentation fault.
#0  0x00007f45fc9bcbbe in get_all_db_ucontacts (buf=<value optimized out>, len=<value optimized out>, flags=<value optimized out>, part_idx=<value optimized out>, part_max=<value optimized out>) at dlist.c:200
200                                     flag_list.len = strlen(flag_list.s);



Here is the backtrace
(gdb) backtrace
#0  0x00007f45fc9bcbbe in get_all_db_ucontacts (buf=<value optimized out>, len=<value optimized out>, flags=<value optimized out>, part_idx=<value optimized out>, part_max=<value optimized out>) at dlist.c:200
#1  get_all_ucontacts (buf=<value optimized out>, len=<value optimized out>, flags=<value optimized out>, part_idx=<value optimized out>, part_max=<value optimized out>) at dlist.c:506
#2  0x00007f45f9040e81 in nh_timer (ticks=<value optimized out>, timer_idx=<value optimized out>) at nathelper.c:1175
#3  0x00000000004d0790 in timer_ticker () at timer.c:384
#4  run_timer_process () at timer.c:477
#5  start_timer_processes () at timer.c:616
#6  0x000000000043c30b in main_loop (argc=<value optimized out>, argv=<value optimized out>) at main.c:1016
#7  main (argc=<value optimized out>, argv=<value optimized out>) at main.c:1634


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Upgrading from 1.9 to 1.11 - usrloc issue

Liviu Chircu
Hello Duane,

Make sure the "cflags" column is also migrated to a "CHAR" type instead of the old "INT" type.

Best regards,

Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com
On 18.08.2014 01:50, Duane Larson wrote:
I am trying to upgrade to the latest version and I am running into some segfault issues

I've update the database version numbers and don't have any WARNINGs showing up when I start OpenSIPS.  Here is the issue I see in syslog

Aug 17 17:44:51 SIPProxy02 kernel: [25783210.686957] opensips[18086]: segfault at 0 ip 00007f45fc9bcbbe sp 00007fffe7daee80 error 4 in usrloc.so[7f45fc9b5000+27000]
Aug 17 17:44:55 SIPProxy02 /usr/local/sbin/opensips[18072]: <a class="moz-txt-link-freetext" href="INFO:core:handle_sigs">INFO:core:handle_sigs: child process 18086 exited by a signal 11
Aug 17 17:44:55 SIPProxy02 /usr/local/sbin/opensips[18072]: <a class="moz-txt-link-freetext" href="INFO:core:handle_sigs">INFO:core:handle_sigs: core was generated
Aug 17 17:44:55 SIPProxy02 /usr/local/sbin/opensips[18072]: <a class="moz-txt-link-freetext" href="INFO:core:handle_sigs">INFO:core:handle_sigs: terminating due to SIGCHLD
Aug 17 17:44:55 SIPProxy02 /usr/local/sbin/opensips[18087]: <a class="moz-txt-link-freetext" href="INFO:core:sig_usr">INFO:core:sig_usr: signal 15 received
Aug 17 17:44:55 SIPProxy02 /usr/local/sbin/opensips[18085]: <a class="moz-txt-link-freetext" href="INFO:core:sig_usr">INFO:core:sig_usr: signal 15 received
Aug 17 17:44:55 SIPProxy02 /usr/local/sbin/opensips[18081]: <a class="moz-txt-link-freetext" href="INFO:core:sig_usr">INFO:core:sig_usr: signal 15 received
Aug 17 17:44:55 SIPProxy02 /usr/local/sbin/opensips[18079]: <a class="moz-txt-link-freetext" href="INFO:core:sig_usr">INFO:core:sig_usr: signal 15 received
Aug 17 17:44:55 SIPProxy02 /usr/local/sbin/opensips[18077]: <a class="moz-txt-link-freetext" href="INFO:core:sig_usr">INFO:core:sig_usr: signal 15 received
Aug 17 17:44:55 SIPProxy02 /usr/local/sbin/opensips[18088]: <a class="moz-txt-link-freetext" href="INFO:core:sig_usr">INFO:core:sig_usr: signal 15 received
Aug 17 17:44:55 SIPProxy02 /usr/local/sbin/opensips[18078]: <a class="moz-txt-link-freetext" href="INFO:core:sig_usr">INFO:core:sig_usr: signal 15 received
Aug 17 17:44:55 SIPProxy02 /usr/local/sbin/opensips[18084]: <a class="moz-txt-link-freetext" href="INFO:core:sig_usr">INFO:core:sig_usr: signal 15 received
Aug 17 17:44:55 SIPProxy02 /usr/local/sbin/opensips[18076]: <a class="moz-txt-link-freetext" href="INFO:core:sig_usr">INFO:core:sig_usr: signal 15 received
Aug 17 17:44:55 SIPProxy02 /usr/local/sbin/opensips[18075]: <a class="moz-txt-link-freetext" href="INFO:core:sig_usr">INFO:core:sig_usr: signal 15 received
Aug 17 17:44:55 SIPProxy02 /usr/local/sbin/opensips[18083]: <a class="moz-txt-link-freetext" href="INFO:core:sig_usr">INFO:core:sig_usr: signal 15 received
Aug 17 17:44:55 SIPProxy02 /usr/local/sbin/opensips[18080]: <a class="moz-txt-link-freetext" href="INFO:core:sig_usr">INFO:core:sig_usr: signal 15 received
Aug 17 17:44:55 SIPProxy02 /usr/local/sbin/opensips[18074]: <a class="moz-txt-link-freetext" href="INFO:core:sig_usr">INFO:core:sig_usr: signal 15 received
Aug 17 17:44:55 SIPProxy02 /usr/local/sbin/opensips[18072]: <a class="moz-txt-link-freetext" href="INFO:core:cleanup">INFO:core:cleanup: cleanup



Here is what the core dump says

Program terminated with signal 11, Segmentation fault.
#0  0x00007f45fc9bcbbe in get_all_db_ucontacts (buf=<value optimized out>, len=<value optimized out>, flags=<value optimized out>, part_idx=<value optimized out>, part_max=<value optimized out>) at dlist.c:200
200                                     flag_list.len = strlen(flag_list.s);



Here is the backtrace
(gdb) backtrace
#0  0x00007f45fc9bcbbe in get_all_db_ucontacts (buf=<value optimized out>, len=<value optimized out>, flags=<value optimized out>, part_idx=<value optimized out>, part_max=<value optimized out>) at dlist.c:200
#1  get_all_ucontacts (buf=<value optimized out>, len=<value optimized out>, flags=<value optimized out>, part_idx=<value optimized out>, part_max=<value optimized out>) at dlist.c:506
#2  0x00007f45f9040e81 in nh_timer (ticks=<value optimized out>, timer_idx=<value optimized out>) at nathelper.c:1175
#3  0x00000000004d0790 in timer_ticker () at timer.c:384
#4  run_timer_process () at timer.c:477
#5  start_timer_processes () at timer.c:616
#6  0x000000000043c30b in main_loop (argc=<value optimized out>, argv=<value optimized out>) at main.c:1016
#7  main (argc=<value optimized out>, argv=<value optimized out>) at main.c:1634



_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Upgrading from 1.9 to 1.11 - usrloc issue

osiris123d
Spot on Liviu.  Thought I checked everything new in the database but I missed that the datatype changed.  That fixed it.

Thanks.


On Mon, Aug 18, 2014 at 12:43 AM, Liviu Chircu <[hidden email]> wrote:
Hello Duane,

Make sure the "cflags" column is also migrated to a "CHAR" type instead of the old "INT" type.

Best regards,

Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com
On 18.08.2014 01:50, Duane Larson wrote:
I am trying to upgrade to the latest version and I am running into some segfault issues

I've update the database version numbers and don't have any WARNINGs showing up when I start OpenSIPS.  Here is the issue I see in syslog

Aug 17 17:44:51 SIPProxy02 kernel: [25783210.686957] opensips[18086]: segfault at 0 ip 00007f45fc9bcbbe sp 00007fffe7daee80 error 4 in usrloc.so[7f45fc9b5000+27000]
Aug 17 17:44:55 SIPProxy02 /usr/local/sbin/opensips[18072]: INFO:core:handle_sigs: child process 18086 exited by a signal 11
Aug 17 17:44:55 SIPProxy02 /usr/local/sbin/opensips[18072]: INFO:core:handle_sigs: core was generated
Aug 17 17:44:55 SIPProxy02 /usr/local/sbin/opensips[18072]: INFO:core:handle_sigs: terminating due to SIGCHLD
Aug 17 17:44:55 SIPProxy02 /usr/local/sbin/opensips[18087]: INFO:core:sig_usr: signal 15 received
Aug 17 17:44:55 SIPProxy02 /usr/local/sbin/opensips[18085]: INFO:core:sig_usr: signal 15 received
Aug 17 17:44:55 SIPProxy02 /usr/local/sbin/opensips[18081]: INFO:core:sig_usr: signal 15 received
Aug 17 17:44:55 SIPProxy02 /usr/local/sbin/opensips[18079]: INFO:core:sig_usr: signal 15 received
Aug 17 17:44:55 SIPProxy02 /usr/local/sbin/opensips[18077]: INFO:core:sig_usr: signal 15 received
Aug 17 17:44:55 SIPProxy02 /usr/local/sbin/opensips[18088]: INFO:core:sig_usr: signal 15 received
Aug 17 17:44:55 SIPProxy02 /usr/local/sbin/opensips[18078]: INFO:core:sig_usr: signal 15 received
Aug 17 17:44:55 SIPProxy02 /usr/local/sbin/opensips[18084]: INFO:core:sig_usr: signal 15 received
Aug 17 17:44:55 SIPProxy02 /usr/local/sbin/opensips[18076]: INFO:core:sig_usr: signal 15 received
Aug 17 17:44:55 SIPProxy02 /usr/local/sbin/opensips[18075]: INFO:core:sig_usr: signal 15 received
Aug 17 17:44:55 SIPProxy02 /usr/local/sbin/opensips[18083]: INFO:core:sig_usr: signal 15 received
Aug 17 17:44:55 SIPProxy02 /usr/local/sbin/opensips[18080]: INFO:core:sig_usr: signal 15 received
Aug 17 17:44:55 SIPProxy02 /usr/local/sbin/opensips[18074]: INFO:core:sig_usr: signal 15 received
Aug 17 17:44:55 SIPProxy02 /usr/local/sbin/opensips[18072]: INFO:core:cleanup: cleanup



Here is what the core dump says

Program terminated with signal 11, Segmentation fault.
#0  0x00007f45fc9bcbbe in get_all_db_ucontacts (buf=<value optimized out>, len=<value optimized out>, flags=<value optimized out>, part_idx=<value optimized out>, part_max=<value optimized out>) at dlist.c:200
200                                     flag_list.len = strlen(flag_list.s);



Here is the backtrace
(gdb) backtrace
#0  0x00007f45fc9bcbbe in get_all_db_ucontacts (buf=<value optimized out>, len=<value optimized out>, flags=<value optimized out>, part_idx=<value optimized out>, part_max=<value optimized out>) at dlist.c:200
#1  get_all_ucontacts (buf=<value optimized out>, len=<value optimized out>, flags=<value optimized out>, part_idx=<value optimized out>, part_max=<value optimized out>) at dlist.c:506
#2  0x00007f45f9040e81 in nh_timer (ticks=<value optimized out>, timer_idx=<value optimized out>) at nathelper.c:1175
#3  0x00000000004d0790 in timer_ticker () at timer.c:384
#4  run_timer_process () at timer.c:477
#5  start_timer_processes () at timer.c:616
#6  0x000000000043c30b in main_loop (argc=<value optimized out>, argv=<value optimized out>) at main.c:1016
#7  main (argc=<value optimized out>, argv=<value optimized out>) at main.c:1634



_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users




--
--
*--*--*--*--*--*
Duane
*--*--*--*--*--*
--

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users