[SR-Users] crash/mem leaks on low memory

Daniel-Constantin Mierla miconda at gmail.com
Tue Sep 3 16:04:15 CEST 2019


Hello,

you were looking at the wrong log message, that warning is not the
reason of kamailio not running, just saying that libssl is known to have
some issue when low shared memory is available, but starting and
operating is fine till that moment.

The real problem is pointed by:

Sep 03 12:09:18 talk /usr/local/sbin/kamailio[27270]: ERROR: <core>
[core/tcp_main.c:2850]: tcp_init(): bind(c, 0x7f0b41b001f4, 16) on
172.31.35.49:5091 <http://172.31.35.49:5091> : Address already in use

There is another application listening on the same ip:port. Maybe
kamailio is already running?

Cheers,
Daniel

On 03.09.19 15:28, Gaurav Bmotra wrote:
> hi Vlad
> thanks you for reply 
>  kamailio shared memory is already 512 (kamailio -m 512)
> but still same error getting  in logs 
>
> On Tue, Sep 3, 2019 at 6:44 PM Vlad Toma <vldtoma at gmail.com
> <mailto:vldtoma at gmail.com>> wrote:
>
>     Hello,
>     You should try to increase the ram memory for kamailio when you
>     start it ( kamailio -m 256) . I think your problem is similar to
>     this one https://github.com/kamailio/kamailio/issues/1635 
>
>     Regards,
>     Vlad
>
>
>     On Tue, Sep 3, 2019 at 3:46 PM Gaurav Bmotra
>     <saigauravmehra91 at gmail.com <mailto:saigauravmehra91 at gmail.com>>
>     wrote:
>
>         hi 
>         i m using kamailio 5.1 on Ubuntu 18.04
>         i m geting this error in logs and it stop registration form
>         soft-phone
>         plz help me 
>
>         --------------------------------------------------------------------------------------------------------
>         WARNING: tls [tls_init.c:778]: init_tls_h(): openssl bug #1491
>         (crash/mem leaks on low memory) workaround enabled (on low
>         memory tls operations will fail preemptively) with free memory th
>         --------------------------------------------------------------------------------------------------------
>         kamailio.service - LSB: Start the Kamailio SIP proxy server
>            Loaded: loaded (/etc/init.d/kamailio; generated)
>            Active: active (exited) since Tue 2019-09-03 12:09:19 UTC;
>         26min ago
>              Docs: man:systemd-sysv-generator(8)
>           Process: 27237 ExecStart=/etc/init.d/kamailio start
>         (code=exited, status=0/SUCCESS)
>
>         Sep 03 12:09:18 talk /usr/local/sbin/kamailio[27270]: INFO:
>         <core> [core/cfg/cfg_ctx.c:595]: cfg_set_now():
>         tls.low_mem_threshold2 has been changed to 7077888
>         Sep 03 12:09:18 talk /usr/local/sbin/kamailio[27270]: INFO:
>         <core> [main.c:2636]: main(): processes (at least): 27 - shm
>         size: 536870912 - pkg size: 8388608
>         Sep 03 12:09:18 talk /usr/local/sbin/kamailio[27270]: ERROR:
>         dispatcher [dispatcher.c:813]: ds_warn_fixup(): failover
>         functions used, but required AVP parameters are NULL --
>         feature disabled
>         Sep 03 12:09:18 talk /usr/local/sbin/kamailio[27270]: INFO:
>         <core> [core/udp_server.c:153]: probe_max_receive_buffer():
>         SO_RCVBUF is initially 212992
>         Sep 03 12:09:18 talk /usr/local/sbin/kamailio[27270]: INFO:
>         <core> [core/udp_server.c:205]: probe_max_receive_buffer():
>         SO_RCVBUF is finally 425984
>         Sep 03 12:09:18 talk /usr/local/sbin/kamailio[27270]: ERROR:
>         <core> [core/tcp_main.c:2850]: tcp_init(): bind(c,
>         0x7f0b41b001f4, 16) on 172.31.35.49:5091
>         <http://172.31.35.49:5091> : Address already in use
>         Sep 03 12:09:18 talk /usr/local/sbin/kamailio[27270]: INFO:
>         <core> [core/sctp_core.c:53]: sctp_core_destroy(): SCTP API
>         not initialized 
>
>         -- 
>         thank you 
>
>
>
>
>
>
>
>         *Regards:*
>         Gaurav Kumar
>
>         _______________________________________________
>         Kamailio (SER) - Users Mailing List
>         sr-users at lists.kamailio.org <mailto:sr-users at lists.kamailio.org>
>         https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
>     _______________________________________________
>     Kamailio (SER) - Users Mailing List
>     sr-users at lists.kamailio.org <mailto:sr-users at lists.kamailio.org>
>     https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
>
>
> -- 
>
>
>
>
>
>
>
>
> *Regards:*
> Gaurav Kumar
>
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20190903/d6e8b050/attachment.html>


More information about the sr-users mailing list