Gentoo Archives: gentoo-user

From: Fernando Rodriguez <frodriguez.developer@×××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: plugin-containers missing libraries
Date: Thu, 28 May 2015 18:22:14
Message-Id: BLU436-SMTP1016EB5C2C6D8F7934F185F8DCA0@phx.gbl
In Reply to: Re: [gentoo-user] Re: plugin-containers missing libraries by Adam Carter
1 On Thursday, May 28, 2015 6:01:22 PM Adam Carter wrote:
2 > How do you tell that the library is loaded by firefox?
3
4 Load a page with a plugin then run htop, you may see a few plugin-container
5 child processes for firefox, note it's pid and then run (as root):
6
7 cat /proc/<pid>/maps | grep libxul.so
8
9 You'll see something like this:
10 7ff264f9b000-7ff269e4b000 r-xp 00000000 08:06 8736977
11 /usr/lib64/firefox/libxul.so
12 7ff269e4b000-7ff26a04a000 ---p 04eb0000 08:06 8736977
13 /usr/lib64/firefox/libxul.so
14 7ff26a04a000-7ff26a4ef000 r--p 04eaf000 08:06 8736977
15 /usr/lib64/firefox/libxul.so
16 7ff26a4ef000-7ff26a56e000 rw-p 05354000 08:06 8736977
17 /usr/lib64/firefox/libxul.so
18 f
19
20 > How would it know to load libraries for other binaries?
21
22 When firefox starts the plugin-container process it may just set the
23 LD_LIBRARY_PATH environment variable for it, just like the script from the
24 binary packages do, or it may do something more complicated. You'll have to
25 look at the code to find out.
26
27 --
28 Fernando Rodriguez

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] Re: plugin-containers missing libraries Adam Carter <adamcarter3@×××××.com>