Hi Daniel,
On 10/24/2014 09:03 AM, Daniel-Constantin Mierla wrote:
Can you attach with gdb to one of the async processes and see with the
backtrace command what is the process doing at that time?
Sometimes I can do this:
(gdb) where
#0 0x00007f4c17007673 in __recvfrom_nocancel () from /lib64/libc.so.6
#1 0x000000000042c10c in async_task_run (idx=1) at async_task.c:201
#2 0x000000000042b449 in async_task_child_init (rank=0) at async_task.c:144
#3 0x0000000000590af0 in init_child (rank=0) at sr_module.c:944
#4 0x00000000004a603c in main_loop () at main.c:1705
#5 0x00000000004aad16 in main (argc=11, argv=0x7fff73224228) at main.c:2560
But at other times:
Process:: ID=11 PID=1932 Type=Async Task Worker
Process:: ID=12 PID=1933 Type=Async Task Worker
root@centosity6 ~]# gdb
GNU gdb (GDB) Red Hat Enterprise Linux (7.2-64.el6_5.2)
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
(gdb) attach 1932
Attaching to process 1932
[nothing happens, gdb hangs]
Moreover, no signals crash or kill the process:
[root@centosity6 kamailio]# kill -SEGV 1932
[root@centosity6 kamailio]# kill -TERM 1932
[root@centosity6 kamailio]# kill -INT 1932
[root@centosity6 kamailio]#
... not even kill, which shouldn't be trappable:
[root@centosity6 kamailio]# kill -9 1932
[root@centosity6 kamailio]# kill -9 1932
[root@centosity6 kamailio]# kill -9 1932
[root@centosity6 kamailio]# kill -9 1932
[root@centosity6 kamailio]# kill -9 1932
-- Alex
--
Alex Balashov - Principal
Evariste Systems LLC
Tel: +1-678-954-0670
Web: http://www.evaristesys.com/, http://www.alexbalashov.com/
Please be kind to the English language:
http://www.entrepreneur.com/article/232906
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users