On Sat, Jul 22, 2017 at 3:28 AM, danielos <guacam...@dan-tech.pl> wrote:
> I managed to install gdb in guacd container:
>
> -----------------------------
>
> [root@480dcc5d723f /]# top
> top - 10:44:32 up 104 days, 23:28,  0 users,  load average: 1.66, 1.95, 1.65
> Tasks:   4 total,   1 running,   3 sleeping,   0 stopped,   0 zombie
> %Cpu(s):  4.7 us,  0.7 sy,  0.0 ni, 93.8 id,  0.8 wa,  0.0 hi,  0.0 si,  0.0
> st
> KiB Mem : 32714444 total,  4350124 free,  4299328 used, 24064992 buff/cache
> KiB Swap:  1048572 total,   993004 free,    55568 used. 27710752 avail Mem
>
>   PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
>    32 root      20   0  495456  45820   9360 S 100.0  0.1 132:28.00 guacd
>     1 root      20   0  295568  15732   5332 S   0.0  0.0   0:01.08 guacd
>    39 root      20   0   11880   2996   2584 S   0.0  0.0   0:00.00 bash
>   178 root      20   0   52004   3888   3308 R   0.0  0.0   0:00.00 top
>
> -----------------------------
>
>
> [root@480dcc5d723f /]# gdb -batch -ex bt -p 32
> [New LWP 38]
> [New LWP 36]
> [Thread debugging using libthread_db enabled]
> Using host libthread_db library "/lib64/libthread_db.so.1".
> 0x00007f328ab93ef7 in pthread_join () from /lib64/libpthread.so.0
> #0  0x00007f328ab93ef7 in pthread_join () from /lib64/libpthread.so.0
> #1  0x00007f32820aa859 in guac_vnc_client_free_handler
> (client=0x7f327c00abc0) at client.c:71
> #2  0x00007f328b554b72 in guac_client_free (client=0x7f327c00abc0) at
> client.c:193
> #3  0x0000000000404310 in guacd_exec_proc (protocol=0x7f327c002b63 "vnc",
> proc=0x7f327c00aba0) at proc.c:191
> #4  guacd_create_proc (protocol=protocol@entry=0x7f327c002b63 "vnc") at
> proc.c:253
> #5  0x0000000000403a80 in guacd_route_connection (socket=0x7f327c00ad10,
> map=0x7f328bacd010) at connection.c:299
> #6  guacd_connection_thread (data=0x251e450) at connection.c:394
> #7  0x00007f328ab92dc5 in start_thread () from /lib64/libpthread.so.0
> #8  0x00007f3289b6173d in clone () from /lib64/libc.so.6
> [root@480dcc5d723f /]#
>

guacd and its per-connection processes use multiple threads, so this
backtrace does not necessarily represent where things are spinning.
Rather than just running "bt", please try "thread apply all bt". That
will run bt for all running threads within the process.

- Mike

Reply via email to