<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Maybe the hints on stackoverflow are also useful:</p>
    <p>  *
<a class="moz-txt-link-freetext" href="https://stackoverflow.com/questions/28335614/how-to-generate-core-file-in-docker-container">https://stackoverflow.com/questions/28335614/how-to-generate-core-file-in-docker-container</a></p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <div class="moz-cite-prefix">On 29.11.20 14:23, Sergey Safarov
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAHtxdDc_bHwS2bF4251FheGm+ZqycK7zUm5Z5M8kq-ZL188+hw@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">you can change<br>
        set args -f /etc/kamailio/kamailio.cfg -D -d -E<br>
        <br>
        To<br>
        set args -f /etc/kamailio/kamailio.cfg -DD -d -E<br>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">On Sun, Nov 29, 2020 at 4:14
          PM Carlos Vicente <<a
            href="mailto:cvicente.lists@gmail.com"
            moz-do-not-send="true">cvicente.lists@gmail.com</a>>
          wrote:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0px 0px 0px
          0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
          <div dir="ltr">
            <div dir="ltr">Thank you for your response.
              <div><br>
              </div>
              <div>I'm trying to run it under gdb but it's not doing
                anything:</div>
              <div><br>
              </div>
              <div>```</div>
              <div>(gdb) exec-file /usr/sbin/kamailio<br>
                (gdb) set args -f /etc/kamailio/kamailio.cfg -D -d -E<br>
                (gdb) run<br>
                Starting program: /usr/sbin/kamailio -f
                /etc/kamailio/kamailio.cfg -D -d -E<br>
                warning: Error disabling address space randomization:
                Success<br>
              </div>
              <div>```</div>
              <div><br>
              </div>
              <div>It just stops there. Am I missing something?</div>
              <div><br>
              </div>
              <div>cv</div>
            </div>
            <br>
            <div class="gmail_quote">
              <div dir="ltr" class="gmail_attr">On Sat, Nov 28, 2020 at
                11:37 AM Sergey Safarov <<a
                  href="mailto:s.safarov@gmail.com" target="_blank"
                  moz-do-not-send="true">s.safarov@gmail.com</a>>
                wrote:<br>
              </div>
              <blockquote class="gmail_quote" style="margin:0px 0px 0px
                0.8ex;border-left:1px solid
                rgb(204,204,204);padding-left:1ex">
                <div dir="auto">You can start kamailio under GDB
                  debugger.
                  <div dir="auto">When issue reproduced, then you can
                    get stack trace and variables values</div>
                  <div dir="auto"><br>
                  </div>
                </div>
                <br>
                <div class="gmail_quote">
                  <div dir="ltr" class="gmail_attr">сб, 28 нояб. 2020
                    г., 18:35 Carlos Vicente <<a
                      href="mailto:cvicente.lists@gmail.com"
                      target="_blank" moz-do-not-send="true">cvicente.lists@gmail.com</a>>:<br>
                  </div>
                  <blockquote class="gmail_quote" style="margin:0px 0px
                    0px 0.8ex;border-left:1px solid
                    rgb(204,204,204);padding-left:1ex">
                    <div dir="ltr">Greetings,
                      <div><br>
                      </div>
                      <div>I'm having a "fun" time trying to run
                        Kamailio inside a Docker container. It keeps
                        failing with:</div>
                      <div><br>
                      </div>
                      <div> 0(238) DEBUG: <core>
                        [core/mem/pkg.c:108]: pkg_print_manager(): pkg -
                        using memory manager: q_malloc<br>
                         0(238) DEBUG: <core>
                        [core/mem/shm.c:300]: shm_print_manager(): shm -
                        using memory manager: q_malloc<br>
                        Illegal instruction (core dumped)<br>
                      </div>
                      <div><br>
                      </div>
                      <div>Unfortunately the core dump is nowhere to be
                        found. I have tried to follow the instructions
                        at:</div>
                      <div><br>
                      </div>
                      <div>    <a
href="https://www.kamailio.org/wiki/tutorials/troubleshooting/coredumpfile"
                          rel="noreferrer" target="_blank"
                          moz-do-not-send="true">https://www.kamailio.org/wiki/tutorials/troubleshooting/coredumpfile</a><br>
                      </div>
                      <div><br>
                      </div>
                      <div>but that hasn't helped.</div>
                      <div><br>
                      </div>
                      <div>The environment is as follows:</div>
                      <div><br>
                      </div>
                      <div>* Host hardware: Raspberry Pi 4 (4G memory)</div>
                      <div>* Host OS: Ubuntu 20.04.1 LTS</div>
                      <div>* Docker version 19.03.13</div>
                      <div>* Docker base image: arm32v7/ubuntu</div>
                      <div><br>
                      </div>
                      <div>root@2ef8a21534fa:/# kamailio -v<br>
                        version: kamailio 5.3.2 (arm/linux) <br>
                        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<br>
                        ADAPTIVE_WAIT_LOOPS 1024, MAX_RECV_BUFFER_SIZE
                        262144, MAX_URI_SIZE 1024, BUF_SIZE 65535,
                        DEFAULT PKG_SIZE 8MB<br>
                        poll method support: poll, epoll_lt, epoll_et,
                        sigio_rt, select.<br>
                        id: unknown <br>
                        compiled with gcc 9.2.1<br>
                      </div>
                      <div><br>
                      </div>
                      <div>The config file passes the syntax check:</div>
                      <div><br>
                      </div>
                      <div>    kamailio -c -f /etc/kamailio/kamailio.cfg<br>
                      </div>
                      <div><br>
                      </div>
                      <div>and, the most interesting part, if I run
                        Kamailio on the host machine, _with the exact
                        same config file_, it runs fine.</div>
                      <div><br>
                      </div>
                      <div>I'd appreciate any clues you may have.
                        Thanks.</div>
                      <div><br>
                      </div>
                      <div>cv<br>
                      </div>
                      <div><br>
                      </div>
                      <div><br>
                      </div>
                    </div>
                    _______________________________________________<br>
                    Kamailio (SER) - Users Mailing List<br>
                    <a href="mailto:sr-users@lists.kamailio.org"
                      rel="noreferrer" target="_blank"
                      moz-do-not-send="true">sr-users@lists.kamailio.org</a><br>
                    <a
                      href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users"
                      rel="noreferrer noreferrer" target="_blank"
                      moz-do-not-send="true">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
                  </blockquote>
                </div>
                _______________________________________________<br>
                Kamailio (SER) - Users Mailing List<br>
                <a href="mailto:sr-users@lists.kamailio.org"
                  target="_blank" moz-do-not-send="true">sr-users@lists.kamailio.org</a><br>
                <a
                  href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users"
                  rel="noreferrer" target="_blank"
                  moz-do-not-send="true">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
              </blockquote>
            </div>
          </div>
          _______________________________________________<br>
          Kamailio (SER) - Users Mailing List<br>
          <a href="mailto:sr-users@lists.kamailio.org" target="_blank"
            moz-do-not-send="true">sr-users@lists.kamailio.org</a><br>
          <a
            href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users"
            rel="noreferrer" target="_blank" moz-do-not-send="true">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
        </blockquote>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Funding: <a class="moz-txt-link-freetext" href="https://www.paypal.me/dcmierla">https://www.paypal.me/dcmierla</a></pre>
  </body>
</html>