I compiled brand new kamailio, and use my kamailio.cfg
```
$> git branch -v
* master ec0ba37 jsonrpc-c: proper error handling for pipe cmd callback
$> kamcmd core.info
{
version: kamailio 4.4.0-dev2
id: ec0ba3
compiler: gcc 4.7.2
compiled: 22:33:06 Aug 27 2015
flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE,
USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, F_MALLOC, DBG_F_MALLOC, USE_FUTEX,
FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST,
HAVE_RESOLV_RES
}
```
#### Strange Result
* **It NEVER crash**
* use `kamcmd core.shmmem` shows still consumed shmmem and did not free
* when shmmem free reaches 0 ( or near 0 ), it frees all memory suddenly, and free mem
restore max.
* when restored all mem, the sipp shows:
`Error on TCP connection, remote peer probably closed the socket: Connection reset by
peer.`
and the test finished.
* in the mean time, in kamailio syslog, it only shows:
```
ERROR: <core> [tcp_read.c:271]: tcp_read_data(): error reading: Connection reset by
peer (104)
ERROR: <core> [tcp_read.c:1296]: tcp_read_req(): ERROR: tcp_read_req: error reading
```
seems like all fd were gone.
---
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/296#issuecomment-135462739