<div dir="ltr">Hi Daniel,<div><br></div><div>I followed this guide: <a href="https://kamailio.org/docs/tutorials/5.5.x/kamailio-install-guide-git/">https://kamailio.org/docs/tutorials/5.5.x/kamailio-install-guide-git/</a></div><div><br></div><div>cv</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Nov 30, 2020 at 3:16 PM Daniel-Constantin Mierla <<a href="mailto:miconda@gmail.com">miconda@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>
<p>How did you compile kamailio? The binaries do not contain the
debugging symbols...</p>
<p>Cheers,<br>
Daniel<br>
</p>
<div>On 30.11.20 16:38, Carlos Vicente
wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>I couldn't find any "-debug" packages, so I compiled the
latest version:</div>
<div><br>
</div>
<div>
<div>
<div>```</div>
<div>root@348cbcfcb96c:~# /usr/local/sbin/kamailio -v<br>
version: kamailio 5.5.0-dev3 (arm/linux) d43163<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_BLOCKLIST, 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: d43163 <br>
compiled on 15:17:51 Nov 30 2020 with gcc 9.3.0<br>
</div>
</div>
<div>```</div>
</div>
<div><br>
</div>
<div>But still not symbols:</div>
<div><br>
</div>
<div>```</div>
root@348cbcfcb96c:~# gdb /usr/local/sbin/kamailio
/cores/core.kamailio.19 <br>
GNU gdb (Ubuntu 9.2-0ubuntu1~20.04) 9.2<br>
Copyright (C) 2020 Free Software Foundation, Inc.<br>
License GPLv3+: GNU GPL version 3 or later <<a href="http://gnu.org/licenses/gpl.html" target="_blank">http://gnu.org/licenses/gpl.html</a>><br>
This is free software: you are free to change and redistribute
it.<br>
There is NO WARRANTY, to the extent permitted by law.<br>
Type "show copying" and "show warranty" for details.<br>
This GDB was configured as "arm-linux-gnueabihf".<br>
Type "show configuration" for configuration details.<br>
For bug reporting instructions, please see:<br>
<<a href="http://www.gnu.org/software/gdb/bugs/" target="_blank">http://www.gnu.org/software/gdb/bugs/</a>>.<br>
Find the GDB manual and other documentation resources online at:<br>
<<a href="http://www.gnu.org/software/gdb/documentation/" target="_blank">http://www.gnu.org/software/gdb/documentation/</a>>.<br>
<br>
For help, type "help".<br>
Type "apropos word" to search for commands related to "word"...<br>
Reading symbols from /usr/local/sbin/kamailio...<br>
(No debugging symbols found in /usr/local/sbin/kamailio)<br>
[New LWP 19]<br>
[Thread debugging using libthread_db enabled]<br>
Using host libthread_db library
"/lib/arm-linux-gnueabihf/libthread_db.so.1".<br>
Core was generated by `/usr/local/sbin/kamailio -f
/etc/kamailio/kamailio.cfg -DD -E -d'.<br>
Program terminated with signal SIGILL, Illegal instruction.<br>
#0 0x00b06320 in tsl ()<br>
(gdb) bt full<br>
#0 0x00b06320 in tsl ()<br>
No symbol table info available.<br>
#1 0x00b06380 in get_lock ()<br>
No symbol table info available.<br>
#2 0x00b1979c in qm_shm_malloc ()<br>
No symbol table info available.<br>
#3 0x009504dc in ksr_shutdown_phase_init ()<br>
No symbol table info available.<br>
#4 0x0078e3f4 in main ()<br>
No symbol table info available.<br>
(gdb) quit
<div>```</div>
<div><br>
</div>
<div>TIA</div>
<div><br>
</div>
<div>cv<br>
<br>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Mon, Nov 30, 2020 at 9:33
AM Sergey Safarov <<a href="mailto:s.safarov@gmail.com" target="_blank">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="ltr">
<div dir="ltr">Are you compiled Kamailio from sources?</div>
<div><br>
</div>
<div>If compiled from sources or installed "debug" files
then pelase show output of "bt full" command.</div>
<div><br>
</div>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Mon, Nov 30, 2020 at
5:23 PM Carlos Vicente <<a href="mailto:cvicente.lists@gmail.com" target="_blank">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">Daniel,
<div><br>
</div>
<div>Thank you. That finally helped getting the core
file written. Here is the gdb output:</div>
<div><br>
</div>
<div>```</div>
<div>root@6e5c06e979cf:/# gdb /usr/sbin/kamailio
/cores/core.kamailio.207 <br>
GNU gdb (Ubuntu 9.2-0ubuntu1~20.04) 9.2<br>
Copyright (C) 2020 Free Software Foundation, Inc.<br>
License GPLv3+: GNU GPL version 3 or later <<a href="http://gnu.org/licenses/gpl.html" target="_blank">http://gnu.org/licenses/gpl.html</a>><br>
This is free software: you are free to change and
redistribute it.<br>
There is NO WARRANTY, to the extent permitted by
law.<br>
Type "show copying" and "show warranty" for details.<br>
This GDB was configured as "arm-linux-gnueabihf".<br>
Type "show configuration" for configuration details.<br>
For bug reporting instructions, please see:<br>
<<a href="http://www.gnu.org/software/gdb/bugs/" target="_blank">http://www.gnu.org/software/gdb/bugs/</a>>.<br>
Find the GDB manual and other documentation
resources online at:<br>
<<a href="http://www.gnu.org/software/gdb/documentation/" target="_blank">http://www.gnu.org/software/gdb/documentation/</a>>.<br>
<br>
For help, type "help".<br>
Type "apropos word" to search for commands related
to "word"...<br>
Reading symbols from /usr/sbin/kamailio...<br>
(No debugging symbols found in /usr/sbin/kamailio)<br>
[New LWP 207]<br>
[Thread debugging using libthread_db enabled]<br>
Using host libthread_db library
"/lib/arm-linux-gnueabihf/libthread_db.so.1".<br>
Core was generated by `/usr/sbin/kamailio -f
/etc/kamailio/kamailio.cfg -DD -E -ddd'.<br>
Program terminated with signal SIGILL, Illegal
instruction.<br>
#0 0x007d9cb8 in qm_shm_malloc ()<br>
(gdb) bt<br>
#0 0x007d9cb8 in qm_shm_malloc ()<br>
#1 0x0061a58c in init_atomic_ops ()<br>
#2 0x00562508 in main ()<br>
</div>
<div>```</div>
<div><br>
</div>
<div>What can be done about that?</div>
<div><br>
</div>
<div>cv</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Mon, Nov 30, 2020
at 4:29 AM Daniel-Constantin Mierla <<a href="mailto:miconda@gmail.com" target="_blank">miconda@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>
<p>Maybe the hints on stackoverflow are also
useful:</p>
<p> *
<a href="https://stackoverflow.com/questions/28335614/how-to-generate-core-file-in-docker-container" target="_blank">https://stackoverflow.com/questions/28335614/how-to-generate-core-file-in-docker-container</a></p>
<p>Cheers,<br>
Daniel<br>
</p>
<div>On 29.11.20 14:23, Sergey Safarov wrote:<br>
</div>
<blockquote type="cite">
<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" target="_blank">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">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">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">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">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer noreferrer" target="_blank">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">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">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">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote>
</div>
<br>
<fieldset></fieldset>
<pre>_______________________________________________
Kamailio (SER) - Users Mailing List
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<pre cols="72">--
Daniel-Constantin Mierla -- <a href="http://www.asipto.com" target="_blank">www.asipto.com</a>
<a href="http://www.twitter.com/miconda" target="_blank">www.twitter.com/miconda</a> -- <a href="http://www.linkedin.com/in/miconda" target="_blank">www.linkedin.com/in/miconda</a>
Funding: <a href="https://www.paypal.me/dcmierla" target="_blank">https://www.paypal.me/dcmierla</a></pre>
</div>
_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">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">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">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">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote>
</div>
<br>
<fieldset></fieldset>
<pre>_______________________________________________
Kamailio (SER) - Users Mailing List
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<pre cols="72">--
Daniel-Constantin Mierla -- <a href="http://www.asipto.com" target="_blank">www.asipto.com</a>
<a href="http://www.twitter.com/miconda" target="_blank">www.twitter.com/miconda</a> -- <a href="http://www.linkedin.com/in/miconda" target="_blank">www.linkedin.com/in/miconda</a>
Funding: <a href="https://www.paypal.me/dcmierla" target="_blank">https://www.paypal.me/dcmierla</a></pre>
</div>
</blockquote></div>