FastNetMon

Monday, 10 May 2010

LD_DEBUG и подробнейший трейсинг работы динамического линкера

Кучу интересной информации о процессе можно получить вот так:
LD_DEBUG=all php -V


Для PHP отрывок выдачи будет вот такой:

1 29320:
2 29320: file=libcrypt.so.1 [0]; needed by php [0]
3 29320: find library=libcrypt.so.1 [0]; searching
4 29320: search cache=/etc/ld.so.cache
5 29320: trying file=/lib/libcrypt.so.1
6 29320:
7 29320: file=libcrypt.so.1 [0]; generating link map
8 29320: dynamic: 0x00007f22d3d83df8 base: 0x00007f22d3b7b000 size: 0x00000000002371c0
9 29320: entry: 0x00007f22d3b7ba30 phdr: 0x00007f22d3b7b040 phnum: 9
10 29320:
11 29320:
12 29320: file=libz.so.1 [0]; needed by php [0]
13 29320: find library=libz.so.1 [0]; searching
14 29320: search cache=/etc/ld.so.cache
15 29320: trying file=/usr/lib/libz.so.1

No comments :

Post a Comment

Note: only a member of this blog may post a comment.