[sr-dev] [kamailio/kamailio] Kamailio 5.0.2 suddenly stops processing traffic, then generates a core when restarting. (#1172)

Joel Serrano notifications at github.com
Thu Jun 29 10:08:33 CEST 2017


Ok! I'll wait until it happens again. 

Some extra info:

1- Pike is enabled, but we have logging when it blocks something (and no logs appeared).
2- CPU is always < 1% usage.
3- I have enabled kernel.core_uses_pid=1. 
4- Our traffic is:

[clients]--> IPv4/IPv6 tls_443 [Kamailio] IPv4 udp_5060 --> IPv4 udp_5060 [dispatcher setid 4].

If I run the bt full right now to a worker process, should we get random stuff?

Becase right now I'm getting mostly the same on each process:

```
root:~# for i in `kamctl ps | grep PID | awk '{print $2}' | tr -d ","`; do gdb /usr/sbin/kamailio -ex "bt full" --batch $i >> $i.txt 2>&1; done
root:~# 

root:~# ls -l
total 140
-rw-r--r-- 1 root root 1769 Jun 29 01:04 23585.txt
-rw-r--r-- 1 root root 3300 Jun 29 01:04 23586.txt
-rw-r--r-- 1 root root 3300 Jun 29 01:04 23587.txt
-rw-r--r-- 1 root root 3301 Jun 29 01:04 23588.txt
-rw-r--r-- 1 root root 3300 Jun 29 01:04 23589.txt
-rw-r--r-- 1 root root 3301 Jun 29 01:04 23590.txt
-rw-r--r-- 1 root root 3300 Jun 29 01:04 23591.txt
-rw-r--r-- 1 root root 3301 Jun 29 01:04 23592.txt
-rw-r--r-- 1 root root 3301 Jun 29 01:04 23593.txt
-rw-r--r-- 1 root root 3432 Jun 29 01:04 23594.txt
-rw-r--r-- 1 root root 3432 Jun 29 01:04 23595.txt
-rw-r--r-- 1 root root 3431 Jun 29 01:04 23596.txt
-rw-r--r-- 1 root root 3432 Jun 29 01:04 23597.txt
-rw-r--r-- 1 root root 3432 Jun 29 01:04 23598.txt
-rw-r--r-- 1 root root 3432 Jun 29 01:04 23599.txt
-rw-r--r-- 1 root root 3432 Jun 29 01:04 23600.txt
-rw-r--r-- 1 root root 3432 Jun 29 01:04 23601.txt
-rw-r--r-- 1 root root 2388 Jun 29 01:04 23602.txt
-rw-r--r-- 1 root root 1836 Jun 29 01:04 23603.txt
-rw-r--r-- 1 root root 2245 Jun 29 01:04 23604.txt
-rw-r--r-- 1 root root 4023 Jun 29 01:04 23605.txt
-rw-r--r-- 1 root root 2950 Jun 29 01:04 23606.txt
-rw-r--r-- 1 root root 2837 Jun 29 01:04 23607.txt
-rw-r--r-- 1 root root 4691 Jun 29 01:04 23608.txt
-rw-r--r-- 1 root root 2740 Jun 29 01:04 23609.txt
-rw-r--r-- 1 root root 2691 Jun 29 01:04 23610.txt
-rw-r--r-- 1 root root 2691 Jun 29 01:04 23611.txt
-rw-r--r-- 1 root root 2691 Jun 29 01:04 23612.txt
-rw-r--r-- 1 root root 2691 Jun 29 01:04 23613.txt
-rw-r--r-- 1 root root 2691 Jun 29 01:04 23614.txt
-rw-r--r-- 1 root root 2691 Jun 29 01:04 23615.txt
-rw-r--r-- 1 root root 2691 Jun 29 01:04 23616.txt
-rw-r--r-- 1 root root 2691 Jun 29 01:04 23617.txt
-rw-r--r-- 1 root root 2151 Jun 29 01:04 23618.txt
root:~#

root:~# grep -n ffff *
23585.txt:31:        p = 0xffffffff <error: Cannot access memory at address 0xffffffff>
23586.txt:39:        p = 0xffffffff <error: Cannot access memory at address 0xffffffff>
23587.txt:39:        p = 0xffffffff <error: Cannot access memory at address 0xffffffff>
23588.txt:39:        p = 0xffffffff <error: Cannot access memory at address 0xffffffff>
23589.txt:39:        p = 0xffffffff <error: Cannot access memory at address 0xffffffff>
23590.txt:39:        p = 0xffffffff <error: Cannot access memory at address 0xffffffff>
23591.txt:39:        p = 0xffffffff <error: Cannot access memory at address 0xffffffff>
23592.txt:39:        p = 0xffffffff <error: Cannot access memory at address 0xffffffff>
23593.txt:39:        p = 0xffffffff <error: Cannot access memory at address 0xffffffff>
23594.txt:39:        p = 0xffffffff <error: Cannot access memory at address 0xffffffff>
23595.txt:39:        p = 0xffffffff <error: Cannot access memory at address 0xffffffff>
23596.txt:39:        p = 0xffffffff <error: Cannot access memory at address 0xffffffff>
23597.txt:39:        p = 0xffffffff <error: Cannot access memory at address 0xffffffff>
23598.txt:39:        p = 0xffffffff <error: Cannot access memory at address 0xffffffff>
23599.txt:39:        p = 0xffffffff <error: Cannot access memory at address 0xffffffff>
23600.txt:39:        p = 0xffffffff <error: Cannot access memory at address 0xffffffff>
23601.txt:39:        p = 0xffffffff <error: Cannot access memory at address 0xffffffff>
23602.txt:40:        p = 0xffffffff <error: Cannot access memory at address 0xffffffff>
23603.txt:33:        p = 0xffffffff <error: Cannot access memory at address 0xffffffff>
23604.txt:39:        p = 0xffffffff <error: Cannot access memory at address 0xffffffff>
23605.txt:75:        p = 0xffffffff <error: Cannot access memory at address 0xffffffff>
23606.txt:51:        p = 0xffffffff <error: Cannot access memory at address 0xffffffff>
23607.txt:49:        p = 0xffffffff <error: Cannot access memory at address 0xffffffff>
23608.txt:75:        p = 0xffffffff <error: Cannot access memory at address 0xffffffff>
23609.txt:50:        p = 0xffffffff <error: Cannot access memory at address 0xffffffff>
23610.txt:47:        p = 0xffffffff <error: Cannot access memory at address 0xffffffff>
23611.txt:47:        p = 0xffffffff <error: Cannot access memory at address 0xffffffff>
23612.txt:47:        p = 0xffffffff <error: Cannot access memory at address 0xffffffff>
23613.txt:47:        p = 0xffffffff <error: Cannot access memory at address 0xffffffff>
23614.txt:47:        p = 0xffffffff <error: Cannot access memory at address 0xffffffff>
23615.txt:47:        p = 0xffffffff <error: Cannot access memory at address 0xffffffff>
23616.txt:47:        p = 0xffffffff <error: Cannot access memory at address 0xffffffff>
23617.txt:47:        p = 0xffffffff <error: Cannot access memory at address 0xffffffff>
23618.txt:41:        p = 0xffffffff <error: Cannot access memory at address 0xffffffff>
root:~#
```

Am I missing something or am I doing anything wrong here?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/1172#issuecomment-311893980
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20170629/1a99009f/attachment.html>


More information about the sr-dev mailing list