New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kamailio crushes when tcp errors invalid fd -1 #748
Comments
What do you mean by crashes? Does it stop running or just printing error messages? If stops, provide the logs at shutdown. |
it stops. tcp_logs.txt |
kamailio_backtrace.txt Hello Log in this case: |
the Private memory was 4 mb. I increased the Private memory to 32 mb. Probably it will help to resolve the issue. |
Private memory increase did not help. Kamailio crushed yestearday |
hi may be it helps to solve the issue? |
Did you install from source code or from packages? Because the symbols are missing in most of the frames in backtraces, looking invalid and being not useful to track down the issue. |
Core.dumps were generated in production server. Is it safe to install this rpn on production server (it has a high load) so probably it may be done at night. I made gdb at another server with kamailio-dbg installed. |
The production kamailio was installed from Kazoo repository(2600hz rpm)Core.dumps were generated in production server. On Friday, August 26, 2016 12:20 PM, Daniel-Constantin Mierla notifications@github.com wrote: Did you install from source code or from packages? Because the symbols are missing in most of the frames in backtraces, looking invalid and being not useful to track down the issue.— |
Package kazoo-kamailio-debuginfo-4.3.4-8.el6.x86_64 already installed and latest version so - all core dumps were done with this module on the same server(where the problem occured). |
Can you try with master branch or backport the patch referenced above into your clone? If all ok, then I will backport to stable branches inside kamailio repo. |
Use also the second patch referenced above, because your version was older than I first looked at. |
Reopen if the latest patches don't fix it. |
Hi
Kamailio crushes with lots of such CRITICAL errors:
Aug 16 15:09:48 kam-fe1 kamailio[8485]: CRITICAL: [tcp_read.c:1654]: handle_io(): io_watch_del failed for 0x7f3e610a3a70 id 105 fd -1, state -1, flags 4028, main fd -1, refcnt -2117 ([178.209.103.226]:40855 -> [178
.209.103.226]:5060)
Aug 16 15:09:48 kam-fe1 kamailio[8479]: CRITICAL: [io_wait.h:594]: io_watch_del(): invalid fd -1, not in [0, 23)
Aug 16 15:09:48 kam-fe1 kamailio[8481]: WARNING: [tcp_read.c:1629]: handle_io(): F_TCPCONN connection marked as bad: 0x7f3e608454e8 id 78 refcnt -257
Aug 16 15:09:48 kam-fe1 kamailio[8379]: INFO: <script>: 52373459-303f6c6b@192.168.2.2|log|source 128.204.55.172:5160
Aug 16 15:09:48 kam-fe1 kamailio[8485]: WARNING: [tcp_read.c:1629]: handle_io(): F_TCPCONN connection marked as bad: 0x7f3e610a3a70 id 105 refcnt -2117
Aug 16 15:09:48 kam-fe1 kamailio[8479]: CRITICAL: [tcp_read.c:1654]: handle_io(): io_watch_del failed for 0x7f3e63c73d90 id 984 fd -1, state -1, flags 5022, main fd -1, refcnt -126097 ([81.211.54.218]:51642 -> [81.
211.54.218]:5060)
Aug 16 15:09:48 kam-fe1 kamailio[8481]: CRITICAL: [io_wait.h:594]: io_watch_del(): invalid fd -1, not in [0, 2)
Aug 16 15:09:48 kam-fe1 kamailio[8379]: INFO: <script>: 52373459-303f6c6b@192.168.2.2|log|from sip:Menedzher1_UYHPQ@29161.ztpbx.ru
Aug 16 15:09:48 kam-fe1 kamailio[8485]: CRITICAL: [io_wait.h:594]: io_watch_del(): invalid fd -1, not in [0, 2)
Aug 16 15:09:48 kam-fe1 kamailio[8377]: ALERT: [main.c:728]: handle_sigs(): child process 8504 exited by a signal 11
+++++++++++++++++++++++++++++++++
kamailio -v
version: kamailio 4.3.5 (x86_64/linux)
flags: STATS: Off, USE_TCP, USE_TLS, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, DBG_QM_MALLOC, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, 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 on 17:51:55 Mar 8 2016 with gcc 4.4.7
The text was updated successfully, but these errors were encountered: