Re: Firefox problem for normal user, but OK for root



Beef <beef@xxxxxxxxxxxxxxx> writes:

>Hello, all.

>Firefox was working perfectly well last night, but this morning simply
>will not work properly! Curious, since I changed nothing in between times.

>As a normal user, firefor bombs out during the startup script. But for
>root it starts fine.

>Running the firefox binary directly, without going through the startup
>scripts gives me:
>$ /usr/local/FireFox/firefox-bin
>/usr/local/FireFox/firefox-bin: error while loading shared libraries: libmozjs.so: cannot open shared object file: No such file or directory

Well, do you have a library called libmozjs.so? Does it have permission for
anyone to read? Do all of the directories and subdirectories ( eg
/usr/local/Firefox) have rx permissions?



>So it looks like a library problem to my inexpert eyes.

>I tried running with the debug option, to check the libraries.

>Normal user first:
>$ firefox --debug
>/usr/local/FireFox/run-mozilla.sh -g /usr/local/FireFox/firefox-bin
>MOZILLA_FIVE_HOME=/usr/local/FireFox
> LD_LIBRARY_PATH=/usr/local/FireFox:/usr/local/FireFox/plugins:/usr/local/lib/mre/mre-1.0.7
>DISPLAY=:0.0
>DYLD_LIBRARY_PATH=/usr/local/FireFox:/usr/local/lib/mre/mre-1.0.7
> LIBRARY_PATH=/usr/local/FireFox:/usr/local/FireFox/components:/usr/local/lib/mre/mre-1.0.7
> SHLIB_PATH=/usr/local/FireFox:/usr/local/lib/mre/mre-1.0.7
> LIBPATH=/usr/local/FireFox:/usr/local/lib/mre/mre-1.0.7
> ADDON_PATH=/usr/local/FireFox
> MOZ_PROGRAM=/usr/local/FireFox/firefox-bin
> MOZ_TOOLKIT=
> moz_debug=1
> moz_debugger=
>which: no ddd in (/usr//bin:/bin:/usr/bin::/usr/local/bin:/usr/X11R6/bin/:/usr/games:.)
>/usr/bin/gdb /usr/local/FireFox/firefox-bin -x /tmp/mozargs6076
>GNU gdb 6.2-2mdk (Mandrakelinux)
>Copyright 2004 Free Software Foundation, Inc.
>GDB is free software, covered by the GNU General Public License, and you are
>welcome to change it and/or distribute copies of it under certain conditions.
>Type "show copying" to see the conditions.
>There is absolutely no warranty for GDB. Type "show warranty" for details.
>This GDB was configured as "i586-mandrake-linux-gnu"...(no debugging symbols found)...Using host libthread_db library "/lib/tls/libthread_db.so.1".


>Now as root:
># firefox --debug
>/usr/local/FireFox/run-mozilla.sh -g /usr/local/FireFox/firefox-bin
>MOZILLA_FIVE_HOME=/usr/local/FireFox
> LD_LIBRARY_PATH=/usr/local/FireFox:/usr/local/FireFox/plugins:/usr/local/lib/mre/mre-1.0.7
>DISPLAY=:0.0
>DYLD_LIBRARY_PATH=/usr/local/FireFox:/usr/local/lib/mre/mre-1.0.7
> LIBRARY_PATH=/usr/local/FireFox:/usr/local/FireFox/components:/usr/local/lib/mre/mre-1.0.7
> SHLIB_PATH=/usr/local/FireFox:/usr/local/lib/mre/mre-1.0.7
> LIBPATH=/usr/local/FireFox:/usr/local/lib/mre/mre-1.0.7
> ADDON_PATH=/usr/local/FireFox
> MOZ_PROGRAM=/usr/local/FireFox/firefox-bin
> MOZ_TOOLKIT=
> moz_debug=1
> moz_debugger=
>which: no ddd in (/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin)
>/usr/bin/gdb /usr/local/FireFox/firefox-bin -x /tmp/mozargs6489
>GNU gdb 6.2-2mdk (Mandrakelinux)
>Copyright 2004 Free Software Foundation, Inc.
>GDB is free software, covered by the GNU General Public License, and you are
>welcome to change it and/or distribute copies of it under certain conditions.
>Type "show copying" to see the conditions.
>There is absolutely no warranty for GDB. Type "show warranty" for details.
>This GDB was configured as "i586-mandrake-linux-gnu"...(no debugging symbols found)...Using host libthread_db library "/lib/tls/libthread_db.so.1".

>There is no difference in the output, so what's stopping firefox from

Uh, that is for some weird reason trying to start gdb, which is the machine
code debugger, which is NOT what you want.


>working when a normal user runs the binary? Is it the libmozjs.so?

>$ ls -al `locate libmozjs`
>-rwxr-xr-x 1 root root 548872 Sep 14 2004 /usr/lib/mozilla-1.7.2/libmozjs.so*
>-rwxr-xr-x 1 root root 557064 Sep 14 2004 /usr/lib/mozilla-thunderbird-0.8/libmozjs.so*
>-rw-r--r-- 1 root root 454704 Sep 9 2004 /usr/lib/openoffice/program/libmozjs.so
>-rwxr-xr-x 1 root root 449428 Sep 20 16:46 /usr/local/FireFox/libmozjs.so*

>LIBPATH contains /usr/local/FireFox and so should be finding
>local/FireFox/libmozjs.so for both a normal user and for root. Neither
>should be using the OpenOffice version of libmozjs.so.



>I'm stumped.



>Beef.
.



Relevant Pages

  • Re: [Full-disclosure] Firefox <= 2.0 crash
    ... Mozilla Firefox is prone to a D.O.S within its javascript Range object. ... then is initialized using the selectNode method against some element within ... Following is the GDB session registered in the crash moment, ...
    (Full-Disclosure)
  • [Full-disclosure] Firefox <= 2.0 crash
    ... Mozilla Firefox is prone to a D.O.S within its javascript Range object. ... then is initialized using the selectNode method against some element within ... Following is the GDB session registered in the crash moment, ...
    (Full-Disclosure)
  • Re: Firefox crashes and hangs my 6.1R system
    ... gdb. ... with write permissions and launch firefox ... - open another console, note the pid of firefox-bin and type the above ... Trying to use compiler optimizations for Gecko-based applications is the ...
    (freebsd-questions)
  • Firefox segfaults on gnome, not kde, only from XDMCP
    ... On a batch of machines I just upgraded from Breezy to Dapper, Firefox ... It doesn't segfault from KDE via XDMCP, ... GDB is free software, covered by the GNU General Public License, and you are ... There is absolutely no warranty for GDB. ...
    (Ubuntu)
  • Firefox problem for normal user, but OK for root
    ... Firefox was working perfectly well last night, ... As a normal user, firefor bombs out during the startup script. ... GDB is free software, covered by the GNU General Public License, and you are ... There is absolutely no warranty for GDB. ...
    (comp.os.linux.setup)