procdump

Description:

프로세스 심볼 덤프

Features:

  1. 1.
    동작하고 있는 process의 실시간 symbol 덤프.
  2. 2.
    실행 binary가 debug mode로 빌드되었다면 더 자세한 정보가 나온다.
  3. 3.
    php에서 java의 thread dump 하는 것 처럼 사용이 가능

Reference:

1
[[email protected] ~]$ procdump /usr/sbin/memcached 628
2
/usr/bin/gdb /usr/sbin/memcached
3
## /usr/sbin/memcached 628 debugging ##
4
5
GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-80.el7
6
Copyright (C) 2013 Free Software Foundation, Inc.
7
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
8
This is free software: you are free to change and redistribute it.
9
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
10
and "show warranty" for details.
11
This GDB was configured as "x86_64-redhat-linux-gnu".
12
For bug reporting instructions, please see:
13
<http://www.gnu.org/software/gdb/bugs/>...
14
Reading symbols from /usr/sbin/memcached...done.
15
Attaching to program: /usr/sbin/memcached, process 628
16
Reading symbols from /lib64/libevent-2.0.so.5...Reading symbols from /lib64/libevent-2.0.so.5...(no debugging symbols found)...done.
17
(no debugging symbols found)...done.
18
Loaded symbols for /lib64/libevent-2.0.so.5
19
Reading symbols from /lib64/libpthread.so.0...(no debugging symbols found)...done.
20
[New LWP 638]
21
[New LWP 637]
22
[New LWP 636]
23
[New LWP 635]
24
[New LWP 634]
25
[Thread debugging using libthread_db enabled]
26
Using host libthread_db library "/lib64/libthread_db.so.1".
27
Loaded symbols for /lib64/libpthread.so.0
28
Reading symbols from /lib64/libc.so.6...(no debugging symbols found)...done.
29
Loaded symbols for /lib64/libc.so.6
30
Reading symbols from /lib64/ld-linux-x86-64.so.2...(no debugging symbols found)...done.
31
Loaded symbols for /lib64/ld-linux-x86-64.so.2
32
0x00007ff9dbf807f3 in epoll_wait () from /lib64/libc.so.6
33
Missing separate debuginfos, use: debuginfo-install memcached-1.4.24-1.an3.x86_64
34
(gdb) #0 0x00007ff9dbf807f3 in epoll_wait () from /lib64/libc.so.6
35
#1 0x00007ff9dc48b803 in epoll_dispatch () from /lib64/libevent-2.0.so.5
36
#2 0x00007ff9dc4773ea in event_base_loop () from /lib64/libevent-2.0.so.5
37
#3 0x00007ff9dc8d7ce9 in main (argc=<optimized out>, argv=<optimized out>) at memcached.c:5724
38
(gdb) A debugging session is active.
39
40
Inferior 1 [process 628] will be detached.
41
42
Quit anyway? (y or n) [answered Y; input not from terminal]
43
Detaching from program: /usr/sbin/memcached, process 628
44
45
Copied!

Dependencies:

  • gdb

Sub Packages:

  • None

Releated Packages:

  • None
Last modified 2yr ago