How do I know which shared libraries are loaded by an already running process?

Posted on

Problem :

How do I know which shared libraries are loaded by an already running process?

I’m using Linux.

Solution :

Try

lsof -p <pid> | grep .so

you may need to install lsof (apt-get install lsof on Ubuntu)

Try

cat /proc/<pid>/maps

It shows the process memory map. A library should have --x- bit set in perm.

Leave a Reply

Your email address will not be published. Required fields are marked *