[SR-Users] core dump error when running under docker
Daniel-Constantin Mierla
miconda at gmail.com
Mon Nov 30 10:27:54 CET 2020
Maybe the hints on stackoverflow are also useful:
*
https://stackoverflow.com/questions/28335614/how-to-generate-core-file-in-docker-container
Cheers,
Daniel
On 29.11.20 14:23, Sergey Safarov wrote:
> you can change
> set args -f /etc/kamailio/kamailio.cfg -D -d -E
>
> To
> set args -f /etc/kamailio/kamailio.cfg -DD -d -E
>
> On Sun, Nov 29, 2020 at 4:14 PM Carlos Vicente
> <cvicente.lists at gmail.com <mailto:cvicente.lists at gmail.com>> wrote:
>
> Thank you for your response.
>
> I'm trying to run it under gdb but it's not doing anything:
>
> ```
> (gdb) exec-file /usr/sbin/kamailio
> (gdb) set args -f /etc/kamailio/kamailio.cfg -D -d -E
> (gdb) run
> Starting program: /usr/sbin/kamailio -f /etc/kamailio/kamailio.cfg
> -D -d -E
> warning: Error disabling address space randomization: Success
> ```
>
> It just stops there. Am I missing something?
>
> cv
>
> On Sat, Nov 28, 2020 at 11:37 AM Sergey Safarov
> <s.safarov at gmail.com <mailto:s.safarov at gmail.com>> wrote:
>
> 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 <mailto: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
> <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
> <mailto:sr-users at lists.kamailio.org>
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
> <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
> <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
> <https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users>
>
>
> _______________________________________________
> 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
Funding: https://www.paypal.me/dcmierla
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20201130/83032ee7/attachment.htm>
More information about the sr-users
mailing list