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 <[email protected]> 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 <[email protected]> > 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 <[email protected]>: >> >>> 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@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 >>> [email protected] >>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users >>> >> _______________________________________________ >> Kamailio (SER) - Users Mailing List >> [email protected] >> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users >> > _______________________________________________ > Kamailio (SER) - Users Mailing List > [email protected] > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users >
_______________________________________________ Kamailio (SER) - Users Mailing List [email protected] https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
