[OpenSIPS-Users] OpenSIPs 2.2.3 SegFault

Răzvan Crainea razvan at opensips.org
Wed Nov 6 04:32:45 EST 2019


Hi, Ahmed!

OpenSIPS 2.2 is quite an old version and is no longer supported for a 
while. If you have the possibility, I'd suggest you to migrate to 2.4, 
which is a stable LTS - if the issue occurs there, then we are able to 
investigate it and track down the problem.
If you can't do that, you're best chance is to upgrade to the latest 2.2 
release, which is 2.2.7. If that still crashes, there's not that much 
you can do, as 2.2 is out of support now, and you will need to migrate 
to 2.4 anyway.

Best regards,
Răzvan

On 11/5/19 9:35 PM, Ahmed Chohan wrote:
> Hi,
> 
> I'm currently using OpenSIPs v 2.2.3 in our environment for over a year 
> after migrated from version 1.6. As per on 1.6, we were experiencing 
> Segfault and advised to move on 2.2.3 (update to date version during 
> that time) to resolve this issue but it didn't help at all.
> 
> After going through the forums, it stated root cause is memory 
> allocation for pkmem as last week, I've upgraded from 16 M to 32 MB  in 
> config but still experiencing the same issue. See below message below 
> from logs;
> 
> Nov  4 17:49:50 qorclvsiproxy05 kernel: opensips[7800] general 
> protection ip:4f6112 sp:7fffd35bc6b0 error:0 in opensips 
> (deleted)[400000+1ed000
> 
> See below extracted coredump. Please advise to find the root cause and 
> to resolve this issue.
> 
> Core was generated by `/sbin/opensips -P /var/run/opensips/opensips.pid 
> -m 4096 -M 32 -u opensips -g o'.
> Program terminated with signal 11, Segmentation fault.
> #0  fm_status (qm=<value optimized out>) at mem/f_malloc.c:709
> 709                                     
> size+=f->size,f=f->u.nxt_free,i++,j++){ }
> (gdb) bt full
> #0  fm_status (qm=<value optimized out>) at mem/f_malloc.c:709
>          f = 0x7f7994902d8000
>          i = 140018
>          j = <value optimized out>
>          h = <value optimized out>
>          unused = 0
>          size = 35881011432156432
>          __FUNCTION__ = "fm_status"
> #1  0x000000000043a32a in shm_status (show_status=<value optimized out>) 
> at mem/shm_mem.h:611
> No locals.
> #2  cleanup (show_status=<value optimized out>) at main.c:339
>          __FUNCTION__ = "cleanup"
> #3  0x000000000043ad2c in handle_sigs () at main.c:520
>          chld = <value optimized out>
>          chld_status = 139
>          overall_status = 139
>          i = <value optimized out>
>          do_exit = 1
>          __FUNCTION__ = "handle_sigs"
> #4  0x000000000043ea12 in main_loop (argc=<value optimized out>, 
> argv=<value optimized out>) at main.c:720
>          startup_done = <value optimized out>
>          chd_rank = 0
> #5  main (argc=<value optimized out>, argv=<value optimized out>) at 
> main.c:1265
>          cfg_stream = <value optimized out>
>          c = <value optimized out>
>          r = <value optimized out>
>          tmp = 0x7fffd35be90d ""
>          tmp_len = <value optimized out>
>          port = 0
>          proto = 5848501
>          protos_no = <value optimized out>
>          options = 0x59b568 "f:cCm:M:b:l:n:N:rRvdDFETSVhw:t:u:g:P:G:W:o:"
>          ret = -1
>          seed = 666110575
>          rfd = <value optimized out>
>          __FUNCTION__ = "main"
> 
> 
> 
> -- 
> 
> Regards,
> 
> Ahmed Munir Chohan
> 
> 
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> 

-- 
Răzvan Crainea
OpenSIPS Core Developer
   http://www.opensips-solutions.com



More information about the Users mailing list