Re: [gentoo-user] Re: plugin-containers missing libraries

2015-05-29 Thread Adam Carter
On Fri, May 29, 2015 at 4:21 AM, Fernando Rodriguez <
frodriguez.develo...@outlook.com> wrote:

> On Thursday, May 28, 2015 6:01:22 PM Adam Carter wrote:
> > How do you tell that the library is loaded by firefox?
>
> Load a page with a plugin then run htop, you may see a few plugin-container
> child processes for firefox, note it's pid and then run (as root):
>
> cat /proc//maps | grep libxul.so
>
> You'll see something like this:
> 7ff264f9b000-7ff269e4b000 r-xp  08:06 8736977
> /usr/lib64/firefox/libxul.so
>

Thanks for that. Using that method I can see that the libraries are indeed
loaded.


Re: [gentoo-user] Re: plugin-containers missing libraries

2015-05-28 Thread Fernando Rodriguez
On Thursday, May 28, 2015 6:01:22 PM Adam Carter wrote:
> How do you tell that the library is loaded by firefox? 

Load a page with a plugin then run htop, you may see a few plugin-container 
child processes for firefox, note it's pid and then run (as root):

cat /proc//maps | grep libxul.so

You'll see something like this:
7ff264f9b000-7ff269e4b000 r-xp  08:06 8736977
/usr/lib64/firefox/libxul.so
7ff269e4b000-7ff26a04a000 ---p 04eb 08:06 8736977
/usr/lib64/firefox/libxul.so
7ff26a04a000-7ff26a4ef000 r--p 04eaf000 08:06 8736977
/usr/lib64/firefox/libxul.so
7ff26a4ef000-7ff26a56e000 rw-p 05354000 08:06 8736977
/usr/lib64/firefox/libxul.so
f

> How would it know to load libraries for other binaries?

When firefox starts the plugin-container process it may just set the 
LD_LIBRARY_PATH environment variable for it, just like the script from the 
binary packages do, or it may do something more complicated. You'll have to 
look at the code to find out.

-- 
Fernando Rodriguez

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Re: plugin-containers missing libraries

2015-05-28 Thread Neil Bothwick
On Thu, 28 May 2015 18:02:24 +1000, Adam Carter wrote:

> > It might help if you said which firefox and thunderbird packages you
> > have installed.

> The non -bin ones (is that what you were asking?)

Exactly, all the confusion over whether the firefox executable is a
script or not come down to this, as does the location of libraries as
they are bundled with the -bin package.


-- 
Neil Bothwick

Capt'n! The spellchecker kinna take this abuse!


pgplfKnpl8sRz.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Re: plugin-containers missing libraries

2015-05-28 Thread Adam Carter
>
> > There's no firefox-bin in /usr/bin on my system, there's just
> > # ls -l /usr/bin/firefox*
> > lrwxrwxrwx 1 root root 26 May  9 19:13 /usr/bin/firefox ->
> > /usr/lib64/firefox/firefox
> >
> > And in that directory, again no shell script;
> > # file /usr/lib64/firefox/firefox-bin
> > /usr/lib64/firefox/firefox-bin: ELF 64-bit LSB executable, x86-64,
> > version 1 (SYSV), dynamically linked,
> > interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, stripped
> >
> > System is ~amd64 for firefox/thunderbird
>
> It might help if you said which firefox and thunderbird packages you have
> installed.
>

The non -bin ones (is that what you were asking?)


Re: [gentoo-user] Re: plugin-containers missing libraries

2015-05-28 Thread Adam Carter
> > There's no firefox-bin in /usr/bin on my system, there's just
> > # ls -l /usr/bin/firefox*
> > lrwxrwxrwx 1 root root 26 May  9 19:13 /usr/bin/firefox ->
> > /usr/lib64/firefox/firefox
> >
> > And in that directory, again no shell script;
> > # file /usr/lib64/firefox/firefox-bin
> > /usr/lib64/firefox/firefox-bin: ELF 64-bit LSB executable, x86-64,
> version
> > 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2,
> for
> > GNU/Linux 2.6.32, stripped
> >
> > System is ~amd64 for firefox/thunderbird
>
> I'm also using ~amd64 firefox (37.0.2) and mine is also a binary. Anyways,
> what
> this means is that the library is not loaded by the loader but by firefox
> at
> runtime so it's nothing to worry about. I guess some versions or build use
> a
> script to preload the library.
>

How do you tell that the library is loaded by firefox? How would it know to
load libraries for other binaries?


Re: [gentoo-user] Re: plugin-containers missing libraries

2015-05-27 Thread Fernando Rodriguez
On Wednesday, May 27, 2015 04:20:52 PM Adam Carter wrote:
> On Wed, May 27, 2015 at 4:03 PM, Franz Fellner 
> 
> wrote:
> > Adam Carter wrote:
> > > On Wed, May 27, 2015 at 3:24 PM, Franz Fellner 
> > > 
> > > wrote:
> > > > "Look at" usually means "Read the file" - look at the content ;)
> > > 
> > > Lets pretend for one minute that i'm a dumbass. In what way would I read
> > 
> > a
> > 
> > > binary executable, and how is that relevant to plugin-container?
> > 
> > Just have a look and don't pretend it's a binary file ;)
> > 
> > $ cat /usr/bin/firefox-bin
> > #!/bin/sh
> > unset LD_PRELOAD
> > LD_LIBRARY_PATH="/opt/firefox/"
> > GTK_PATH=/usr/lib/gtk-2.0/
> > exec /opt/firefox/firefox "$@"
> 
> There's no firefox-bin in /usr/bin on my system, there's just
> # ls -l /usr/bin/firefox*
> lrwxrwxrwx 1 root root 26 May  9 19:13 /usr/bin/firefox ->
> /usr/lib64/firefox/firefox
> 
> And in that directory, again no shell script;
> # file /usr/lib64/firefox/firefox-bin
> /usr/lib64/firefox/firefox-bin: ELF 64-bit LSB executable, x86-64, version
> 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for
> GNU/Linux 2.6.32, stripped
> 
> System is ~amd64 for firefox/thunderbird

I'm also using ~amd64 firefox (37.0.2) and mine is also a binary. Anyways, what 
this means is that the library is not loaded by the loader but by firefox at 
runtime so it's nothing to worry about. I guess some versions or build use a 
script to preload the library.




Re: [gentoo-user] Re: plugin-containers missing libraries

2015-05-27 Thread Neil Bothwick
On Wed, 27 May 2015 16:20:52 +1000, Adam Carter wrote:

> There's no firefox-bin in /usr/bin on my system, there's just
> # ls -l /usr/bin/firefox*
> lrwxrwxrwx 1 root root 26 May  9 19:13 /usr/bin/firefox ->
> /usr/lib64/firefox/firefox
> 
> And in that directory, again no shell script;
> # file /usr/lib64/firefox/firefox-bin
> /usr/lib64/firefox/firefox-bin: ELF 64-bit LSB executable, x86-64,
> version 1 (SYSV), dynamically linked,
> interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, stripped
> 
> System is ~amd64 for firefox/thunderbird

It might help if you said which firefox and thunderbird packages you have
installed.


-- 
Neil Bothwick

Why do they lock gas station bathrooms? Are they afraid someone will
clean them?


pgpfTgXFFO7sX.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Re: plugin-containers missing libraries

2015-05-26 Thread Adam Carter
On Wed, May 27, 2015 at 4:03 PM, Franz Fellner 
wrote:

> Adam Carter wrote:
> > On Wed, May 27, 2015 at 3:24 PM, Franz Fellner 
> > wrote:
> >
> > > "Look at" usually means "Read the file" - look at the content ;)
> > >
> >
> > Lets pretend for one minute that i'm a dumbass. In what way would I read
> a
> > binary executable, and how is that relevant to plugin-container?
>
> Just have a look and don't pretend it's a binary file ;)
>
> $ cat /usr/bin/firefox-bin
> #!/bin/sh
> unset LD_PRELOAD
> LD_LIBRARY_PATH="/opt/firefox/"
> GTK_PATH=/usr/lib/gtk-2.0/
> exec /opt/firefox/firefox "$@"
>
>
There's no firefox-bin in /usr/bin on my system, there's just
# ls -l /usr/bin/firefox*
lrwxrwxrwx 1 root root 26 May  9 19:13 /usr/bin/firefox ->
/usr/lib64/firefox/firefox

And in that directory, again no shell script;
# file /usr/lib64/firefox/firefox-bin
/usr/lib64/firefox/firefox-bin: ELF 64-bit LSB executable, x86-64, version
1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for
GNU/Linux 2.6.32, stripped

System is ~amd64 for firefox/thunderbird


Re: [gentoo-user] Re: plugin-containers missing libraries

2015-05-26 Thread Franz Fellner
Adam Carter wrote:
> On Wed, May 27, 2015 at 3:24 PM, Franz Fellner 
> wrote:
> 
> > "Look at" usually means "Read the file" - look at the content ;)
> >
> 
> Lets pretend for one minute that i'm a dumbass. In what way would I read a
> binary executable, and how is that relevant to plugin-container?

Just have a look and don't pretend it's a binary file ;)

$ cat /usr/bin/firefox-bin
#!/bin/sh
unset LD_PRELOAD
LD_LIBRARY_PATH="/opt/firefox/"
GTK_PATH=/usr/lib/gtk-2.0/
exec /opt/firefox/firefox "$@"



Re: [gentoo-user] Re: plugin-containers missing libraries

2015-05-26 Thread Adam Carter
On Wed, May 27, 2015 at 3:24 PM, Franz Fellner 
wrote:

> "Look at" usually means "Read the file" - look at the content ;)
>

Lets pretend for one minute that i'm a dumbass. In what way would I read a
binary executable, and how is that relevant to plugin-container?


Re: [gentoo-user] Re: plugin-containers missing libraries

2015-05-26 Thread Franz Fellner
"Look at" usually means "Read the file" - look at the content ;)

Adam Carter wrote:
> On Wed, May 27, 2015 at 10:37 AM, Holger Hoffstätte <
> holger.hoffstae...@googlemail.com> wrote:
> 
> > On Wed, 27 May 2015 09:54:33 +1000, Adam Carter wrote:
> >
> > > Is this working looking into? The programs generally work ok, so this is
> > > more for interests sake.
> > >
> > > # ldd /usr/lib64/firefox/plugin-container | grep not
> > > libmozalloc.so => not found
> > > libxul.so => not found
> >
> > This is normal, look at e.g. /usr/bin/firefox-bin to see why it works
> > as expected.
> >
> 
> $ ls -l /usr/bin/firefox*
> lrwxrwxrwx 1 root root 26 May  9 19:13 /usr/bin/firefox ->
> /usr/lib64/firefox/firefox*
> 
> $ ls -l /usr/lib64/firefox/firefox*
> -rwxr-xr-x 1 root root 441096 May  9 19:13 /usr/lib64/firefox/firefox*
> -rwxr-xr-x 1 root root 441096 May  9 19:13 /usr/lib64/firefox/firefox-bin*
> 
> $ md5sum /usr/lib64/firefox/firefox*
> 61f2c178ef765770824c45c6ea9fa5e1  /usr/lib64/firefox/firefox
> 61f2c178ef765770824c45c6ea9fa5e1  /usr/lib64/firefox/firefox-bin
> 
> Is that what you expect me to see? I dont think I understand what you're
> saying.





Re: [gentoo-user] Re: plugin-containers missing libraries

2015-05-26 Thread Adam Carter
On Wed, May 27, 2015 at 10:37 AM, Holger Hoffstätte <
holger.hoffstae...@googlemail.com> wrote:

> On Wed, 27 May 2015 09:54:33 +1000, Adam Carter wrote:
>
> > Is this working looking into? The programs generally work ok, so this is
> > more for interests sake.
> >
> > # ldd /usr/lib64/firefox/plugin-container | grep not
> > libmozalloc.so => not found
> > libxul.so => not found
>
> This is normal, look at e.g. /usr/bin/firefox-bin to see why it works
> as expected.
>

$ ls -l /usr/bin/firefox*
lrwxrwxrwx 1 root root 26 May  9 19:13 /usr/bin/firefox ->
/usr/lib64/firefox/firefox*

$ ls -l /usr/lib64/firefox/firefox*
-rwxr-xr-x 1 root root 441096 May  9 19:13 /usr/lib64/firefox/firefox*
-rwxr-xr-x 1 root root 441096 May  9 19:13 /usr/lib64/firefox/firefox-bin*

$ md5sum /usr/lib64/firefox/firefox*
61f2c178ef765770824c45c6ea9fa5e1  /usr/lib64/firefox/firefox
61f2c178ef765770824c45c6ea9fa5e1  /usr/lib64/firefox/firefox-bin

Is that what you expect me to see? I dont think I understand what you're
saying.