[SR-Users] core dump error when running under docker

Sergey Safarov s.safarov at gmail.com
Sat Nov 28 17:36:44 CET 2020


You can start kamailio under GDB debugger.
When issue reproduced, then you can get stack trace and variables values


сб, 28 нояб. 2020 г., 18:35 Carlos Vicente <cvicente.lists at gmail.com>:

> Greetings,
>
> I'm having a "fun" time trying to run Kamailio inside a Docker container.
> It keeps failing with:
>
>  0(238) DEBUG: <core> [core/mem/pkg.c:108]: pkg_print_manager(): pkg -
> using memory manager: q_malloc
>  0(238) DEBUG: <core> [core/mem/shm.c:300]: shm_print_manager(): shm -
> using memory manager: q_malloc
> Illegal instruction (core dumped)
>
> Unfortunately the core dump is nowhere to be found. I have tried to follow
> the instructions at:
>
>     https://www.kamailio.org/wiki/tutorials/troubleshooting/coredumpfile
>
> but that hasn't helped.
>
> The environment is as follows:
>
> * Host hardware: Raspberry Pi 4 (4G memory)
> * Host OS: Ubuntu 20.04.1 LTS
> * Docker version 19.03.13
> * Docker base image: arm32v7/ubuntu
>
> root at 2ef8a21534fa:/# kamailio -v
> version: kamailio 5.3.2 (arm/linux)
> flags: USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS,
> DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MMAP, PKG_MALLOC, Q_MALLOC,
> F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX,
> FAST_LOCK-ADAPTIVE_WAIT-NOSMP, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR,
> USE_DST_BLACKLIST, HAVE_RESOLV_RES, TLS_PTHREAD_MUTEX_SHARED
> ADAPTIVE_WAIT_LOOPS 1024, MAX_RECV_BUFFER_SIZE 262144, MAX_URI_SIZE 1024,
> BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
> poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
> id: unknown
> compiled with gcc 9.2.1
>
> The config file passes the syntax check:
>
>     kamailio -c -f /etc/kamailio/kamailio.cfg
>
> and, the most interesting part, if I run Kamailio on the host machine,
> _with the exact same config file_, it runs fine.
>
> I'd appreciate any clues you may have. Thanks.
>
> cv
>
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20201128/8b211cea/attachment.htm>


More information about the sr-users mailing list