Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 86785 - Mozilla and Firefox : unable to run them...
Summary: Mozilla and Firefox : unable to run them...
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-26 10:06 UTC by Sandro Bonazzola (RETIRED)
Modified: 2006-11-11 12:04 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge-info.txt,2.92 KB, text/plain)
2005-03-26 10:07 UTC, Sandro Bonazzola (RETIRED)
Details
strace firefox (strace-firefox.txt,25.84 KB, text/plain)
2005-03-26 10:07 UTC, Sandro Bonazzola (RETIRED)
Details
strace firefox without -Wl,-z,now. (firefox-strace-new.txt,25.75 KB, text/plain)
2005-03-29 09:28 UTC, Sandro Bonazzola (RETIRED)
Details
gzipped strace -f firefox without -Wl,-z,now. (strace-f_firefox.txt.gz,82.45 KB, application/x-gzip)
2005-03-30 09:25 UTC, Sandro Bonazzola (RETIRED)
Details
gzipped strace -ff firefox without -Wl,-z,now. (strace-ff_firefox.txt.gz,82.83 KB, application/x-gzip)
2005-03-30 09:26 UTC, Sandro Bonazzola (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sandro Bonazzola (RETIRED) gentoo-dev 2005-03-26 10:06:31 UTC
When I try to start any of Mozilla, Firefox and Thunderbird they exit with exit status 1 before they cna be displayed.

Reproducible: Always
Steps to Reproduce:
1. open a shell
2. run firefox
3. firefox exit with error 1

Actual Results:  
When I try to start any of Mozilla, Firefox and Thunderbird they exit with exit
status 1 before they cna be displayed.

Expected Results:  
When I try to start any of Mozilla, Firefox and Thunderbird they should start.

See attached emerge-info.txt and strace-firefox.txt
Comment 1 Sandro Bonazzola (RETIRED) gentoo-dev 2005-03-26 10:07:13 UTC
Created attachment 54534 [details]
emerge --info
Comment 2 Sandro Bonazzola (RETIRED) gentoo-dev 2005-03-26 10:07:59 UTC
Created attachment 54535 [details]
strace firefox
Comment 3 Aron Griffis (RETIRED) gentoo-dev 2005-03-26 16:17:25 UTC
What if you move aside your profile?

mv .mozilla .mozilla-mine
firefox
Comment 4 Sandro Bonazzola (RETIRED) gentoo-dev 2005-03-27 00:03:45 UTC
~ # mv .mozilla .mozilla-mine

solve the problem for thunderbird-1.0.2.

Firefox-1.0.2 still say:

~ # firefox 
No running windows found
firefox-bin exited with non-zero status (1)
Comment 5 Walter Meinl 2005-03-29 01:39:09 UTC
As I am not a developper I cannot say what causes this, however I had the same trouble, maybe caused by the LDFLAGS='-Wl,-z,now' statement. After re-emerging all "mozillas" with LDFLAGS='-Wl,-O1' all worked fine again with the old profile
Comment 6 Sandro Bonazzola (RETIRED) gentoo-dev 2005-03-29 09:26:16 UTC
Comments From wuno@lsvw.de
>As I am not a developper I cannot say what causes this, however I had the same
>trouble, maybe caused by the LDFLAGS='-Wl,-z,now' statement. After re-emerging
>all "mozillas" with LDFLAGS='-Wl,-O1' all worked fine again with the old profile

Removed -Wl,-z,now from LDFLAGS and reemerged. This DON'T solve the problem, but it CHAMGES the error. Now: 
# firefox 
No running windows found
INTERNAL ERROR on Browser End: No manager for initializing factory?

System error?:: Success
firefox-bin exited with non-zero status (255)


I'll create a new attachment with the new strace.
Comment 7 Sandro Bonazzola (RETIRED) gentoo-dev 2005-03-29 09:28:12 UTC
Created attachment 54774 [details]
strace firefox without -Wl,-z,now. 

I leave the old strace, it may be usefull.
Comment 8 Ewgenij Starostin 2005-03-29 14:33:02 UTC
I have the same or a similar problem, with LDFLAGS unset or set to
Walter's suggested value. The only hint I have found so far is this:

      5155:     /usr/lib/MozillaFirefox/components/libgklayout.so:
error: symbol lookup error: undefined symbol:
_Z25cairo_set_target_drawableP6_cairoP9_XDisplaym (fatal)
      5155:     calling fini:
/usr/lib/MozillaFirefox/components/libgklayout.so [0]

The symbol is indeed not defined in libcairo.so on my system; however, a
similar one is:

$ nm --no-demangle /usr/lib/libcairo.so | grep cairo_set_target_drawable
0002be00 T cairo_set_target_drawable

Is this significant? Sandro, can you run

LD_DEBUG=symbols firefox 2>&1 | grep 'undefined symbol'

and post any interesting stuff that turns up? Btw, which flags do you
use for strace? Try -f or -o and -ff.
Comment 9 Sandro Bonazzola (RETIRED) gentoo-dev 2005-03-30 09:23:00 UTC
Comments From estar@cs.tu-berlin.de
> Is this significant? Sandro, can you run
> LD_DEBUG=symbols firefox 2>&1 | grep 'undefined symbol'

 # LD_DEBUG=symbols firefox 2>&1 | grep 'undefined symbol'
      8694:     /usr/lib/gconv/ISO8859-1.so: error: symbol lookup error: 
undefined symbol: gconv_end (fatal)
      8694:     /usr/lib/MozillaFirefox/firefox-bin: error: symbol 
lookup error: undefined symbol: nspr_use_zone_allocator (fatal)
      8694:     /usr/lib/gtk-2.0/2.4.0/loaders/libpixbufloader-xpm.so: 
error: symbol lookup error: undefined symbol: g_module_check_init 
(fatal)
      8694:     /usr/lib/gtk-2.0/2.4.0/loaders/libpixbufloader-xpm.so: 
error: symbol lookup error: undefined symbol: g_module_unload (fatal)
      8694:     /usr/lib/nsbrowser/plugins/libnullplugin.so: error: 
symbol lookup error: undefined symbol: NSGetFactory (fatal)


revdep-rebuild says nothing about broken libraryes.
Tonight I'll try rebuilding all the packages containing the above probably broken
libraries. I'll send a new report ASAP.

> and post any interesting stuff that turns up? Btw, which flags do you
> use for strace? Try -f or -o and -ff.

I don't use flags for strace. I'll attach the result of the two new run 
using these flags.
Comment 10 Sandro Bonazzola (RETIRED) gentoo-dev 2005-03-30 09:25:13 UTC
Created attachment 54854 [details]
gzipped strace -f firefox without -Wl,-z,now.
Comment 11 Sandro Bonazzola (RETIRED) gentoo-dev 2005-03-30 09:26:51 UTC
Created attachment 54855 [details]
gzipped strace -ff firefox without -Wl,-z,now.
Comment 12 Ewgenij Starostin 2005-03-31 06:04:17 UTC
Sandro,

my problem is different from yours. I will file a separate bug for it.

In the output you posted, the message regarding NSGetFactory looks
serious (I suppose). On my system, this symbol is defined and found in
/usr/lib/MozillaFirefox/libjsj.so. What does 
readelf -s /usr/lib/MozillaFirefox/libjsj.so
say on your system?

I think it's safe to ignore errors regarding gconv_end and g_module_*,
but anybody who knows more about this is very welcome to correct me ;)

On an unrelated note, regarding strace: -f makes it follow forks.
Otherwise, only the shell script gets traced. -ff is like -f unless you
specify -o, which puts the output of strace into a file, in which case
-ff will tell strace to follow forks and write to files foo.pid, where
foo is what you specified for -o and pid are the process numbers of the
processes traced. (That way, you could post just the trace for
firefox-bin.) See the manpage for more details.

However, just specifying -f is enough in this case.
Comment 13 djinnZ 2005-04-01 03:41:29 UTC
Same problem, after the upgrade to firefox (from source) it die with status 1, same error in mozilla starting.
After seeing this message I have unmerged mozilla, firefox, mozilla-start and thunderbird, deleted its dir in /usr/lib and reemerged all. Now it work fine but
I have not verified what are in the directory.
Comment 14 Sandro Bonazzola (RETIRED) gentoo-dev 2005-04-01 22:27:55 UTC
> In the output you posted, the message regarding NSGetFactory looks
> serious (I suppose). On my system, this symbol is defined and found in
> /usr/lib/MozillaFirefox/libjsj.so. What does 
> readelf -s /usr/lib/MozillaFirefox/libjsj.so
> say on your system?

readelf -s /usr/lib/MozillaFirefox/libjsj.so|grep NSGetFactory

168: 00015ad0   132 FUNC    GLOBAL DEFAULT   10 NSGetFactory

It is present. 

> I think it's safe to ignore errors regarding gconv_end and g_module_*,
> but anybody who knows more about this is very welcome to correct me ;)

Next week I'll try to remove any optimization flag and reemerging any 
dependency of mozilla-firefox and mozilla and reemerge them too.

I've observed the compilation of mozilla, I've noticed the following output:
[quote]
i686-pc-linux-gnu-g++ -o morkFile.o -c -DOSTYPE=\"Linux2.6\" -DOSARCH=\"Linux\"  -I../../../dist/include/xpcom 
-I../../../dist/include/mork -I../../../dist/include -I/var/tmp/portage/mozilla-1.7.6-r1/work/mozilla/dist/include/nspr        
-fPIC   -fno-rtti
-fno-exceptions  -Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy 
-Wno-non-virtual-dtor -Wno-long-long -march=pentium3 -pipe -Wno-deprecated -fshort-wchar -pthread -pipe  -DNDEBUG 
-DTRIMMED -ffunction-sections -O2   -DMOZILLA_CLIENT -include ../../../mozilla-config.h -Wp,-MD,.deps/morkFile.pp 
morkFile.cpp
In file included from morkEnv.h:47,
                 from morkFile.cpp:52:
morkNode.h:224: warning: `virtual mork_refs morkNode::AddStrongRef(morkEnv*)' was hidden
morkObject.h:126: warning:   by `virtual nsresult morkObject::AddStrongRef(nsIMdbEnv*)'
morkNode.h:225: warning: `virtual mork_refs morkNode::CutStrongRef(morkEnv*)' was hidden
morkObject.h:129: warning:   by `virtual nsresult morkObject::CutStrongRef(nsIMdbEnv*)'
[/quote]
Is it possible that -fvisibility-inlines-hidden have broken something somewhere?


Comment 15 Sandro Bonazzola (RETIRED) gentoo-dev 2005-04-01 22:28:44 UTC
Comments From nicola.rauseo@gmail.com 
> After seeing this message I have unmerged mozilla, firefox,
> mozilla-start and thunderbird, deleted its dir in /usr/lib and 
> reemerged all. Now it work fine but
> I have not verified what are in the directory.

I've done the same, if it can be useful I've a ls -R of the mozilla and 
MozillaFirefox after the unmerge. If requested I'll attach the output.
Comment 16 Sandro Bonazzola (RETIRED) gentoo-dev 2005-04-05 11:07:12 UTC
The rebuild have not resolved the problem. I'm rebuilding world with "-O2 -march=pentium3 -pipe", without LDFLAGS. I hope it will solve.
Comment 17 Sandro Bonazzola (RETIRED) gentoo-dev 2005-04-06 05:50:17 UTC
I think I've found the problem. NSGetFactory is in /usr/lib/MozillaFirefox/libmozjs.so
But firefox doesn't lookup that symbol there. 
It search for dlerror but not for NSGetFactory.
Any idea about it?
I've firefox runninh on another pc, on that firefox don't lookup for NSGetFactory.
What this symbol is required for?

     13995:     symbol=PR_FindSymbol;  lookup in file=/usr/lib/MozillaFirefox/libnspr4.so
     13995:     symbol=NSGetFactory;  lookup in file=/usr/lib/nsbrowser/plugins/libnullplugin.so
     13995:     symbol=NSGetFactory;  lookup in file=/usr/lib/MozillaFirefox/libxpcom.so
     13995:     symbol=NSGetFactory;  lookup in file=/usr/lib/MozillaFirefox/libplds4.so
     13995:     symbol=NSGetFactory;  lookup in file=/usr/lib/MozillaFirefox/libplc4.so
     13995:     symbol=NSGetFactory;  lookup in file=/usr/lib/MozillaFirefox/libnspr4.so
     13995:     symbol=NSGetFactory;  lookup in file=/lib/libpthread.so.0
     13995:     symbol=NSGetFactory;  lookup in file=/lib/libdl.so.2
     13995:     symbol=NSGetFactory;  lookup in file=/usr/lib/libXt.so.6
     13995:     symbol=NSGetFactory;  lookup in file=/usr/lib/libgtk-x11-2.0.so.0
     13995:     symbol=NSGetFactory;  lookup in file=/usr/lib/libgdk-x11-2.0.so.0
     13995:     symbol=NSGetFactory;  lookup in file=/usr/lib/libatk-1.0.so.0
     13995:     symbol=NSGetFactory;  lookup in file=/usr/lib/libgdk_pixbuf-2.0.so.0
     13995:     symbol=NSGetFactory;  lookup in file=/usr/lib/libpangoxft-1.0.so.0
     13995:     symbol=NSGetFactory;  lookup in file=/usr/lib/libpangox-1.0.so.0
     13995:     symbol=NSGetFactory;  lookup in file=/usr/lib/libpango-1.0.so.0
     13995:     symbol=NSGetFactory;  lookup in file=/usr/lib/libgobject-2.0.so.0
     13995:     symbol=NSGetFactory;  lookup in file=/usr/lib/libgmodule-2.0.so.0
     13995:     symbol=NSGetFactory;  lookup in file=/usr/lib/libglib-2.0.so.0
     13995:     symbol=NSGetFactory;  lookup in file=/usr/lib/libX11.so.6
     13995:     symbol=NSGetFactory;  lookup in file=/lib/libm.so.6
     13995:     symbol=NSGetFactory;  lookup in file=/usr/lib/gcc/i686-pc-linux-gnu/3.4.3-20050110/./libstdc++.so.6
     13995:     symbol=NSGetFactory;  lookup in file=/usr/lib/gcc/i686-pc-linux-gnu/3.4.3-20050110/./libgcc_s.so.1
     13995:     symbol=NSGetFactory;  lookup in file=/lib/libc.so.6
     13995:     symbol=NSGetFactory;  lookup in file=/lib/ld-linux.so.2
     13995:     symbol=NSGetFactory;  lookup in file=/usr/lib/libSM.so.6
     13995:     symbol=NSGetFactory;  lookup in file=/usr/lib/libICE.so.6
     13995:     symbol=NSGetFactory;  lookup in file=/usr/lib/libXrandr.so.2
     13995:     symbol=NSGetFactory;  lookup in file=/usr/lib/libXi.so.6
     13995:     symbol=NSGetFactory;  lookup in file=/usr/lib/libXinerama.so.1
     13995:     symbol=NSGetFactory;  lookup in file=/usr/lib/libXft.so.2
     13995:     symbol=NSGetFactory;  lookup in file=/usr/lib/libfreetype.so.6
     13995:     symbol=NSGetFactory;  lookup in file=/usr/lib/libfontconfig.so.1
     13995:     symbol=NSGetFactory;  lookup in file=/usr/lib/libXfixes.so.3
     13995:     symbol=NSGetFactory;  lookup in file=/usr/lib/libXcursor.so.1
     13995:     symbol=NSGetFactory;  lookup in file=/usr/lib/libXrender.so.1
     13995:     symbol=NSGetFactory;  lookup in file=/usr/lib/libXext.so.6
     13995:     symbol=NSGetFactory;  lookup in file=/usr/lib/libpangoft2-1.0.so.0
     13995:     symbol=NSGetFactory;  lookup in file=/usr/lib/libexpat.so.0
     13995:     symbol=NSGetFactory;  lookup in file=/lib/libz.so.1
     13995:     /usr/lib/nsbrowser/plugins/libnullplugin.so: error: symbol lookup error: undefined symbol: NSGetFactory (fatal)
     13995:     symbol=dlerror;  lookup in file=/usr/lib/MozillaFirefox/firefox-bin
     13995:     symbol=dlerror;  lookup in file=/usr/lib/MozillaFirefox/libmozjs.so
     13995:     symbol=dlerror;  lookup in file=/usr/lib/MozillaFirefox/libxpcom.so
     13995:     symbol=dlerror;  lookup in file=/usr/lib/MozillaFirefox/libplds4.so
     13995:     symbol=dlerror;  lookup in file=/usr/lib/MozillaFirefox/libplc4.so
     13995:     symbol=dlerror;  lookup in file=/usr/lib/MozillaFirefox/libnspr4.so
     13995:     symbol=dlerror;  lookup in file=/lib/libpthread.so.0
     13995:     symbol=dlerror;  lookup in file=/lib/libdl.so.2

Comment 18 Sandro Bonazzola (RETIRED) gentoo-dev 2005-04-06 05:59:29 UTC
>What this symbol is required for?
After a quick search on google: http://www.mozilla.org/oji/oji-intro.html
[quote]
Note: The above function gets called when LiveConnect is started. It is your opportunity to return an instance of nsIPlugin. You may find it convenient to have this instance also implement nsIJVMPlugin.
[/quote]
The only plugin I know is installed is the java plugin from blackdown jdk...
Maybe the problem is there?
Comment 19 Sandro Bonazzola (RETIRED) gentoo-dev 2005-04-06 06:23:45 UTC
Ok, I can confirm that removing the java plugin ( blackdown-jdk-1.4.2.01-r2 ) from /usr/lib/nsbrowser/plugins let firefox and mozilla start. The problem is somewhere in the plugin management. Well, is it a blackdown-jdk or a mozilla-* bug?
Comment 20 Stuart Longland (RETIRED) gentoo-dev 2006-09-25 05:42:11 UTC
Can people check the latest release of Firefox and/or blackdown-jdk and report whether the bug still exists?

Thanks
Comment 21 Jakub Moc (RETIRED) gentoo-dev 2006-11-11 12:04:42 UTC
Some user response needed...