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
Created attachment 54534 [details] emerge --info
Created attachment 54535 [details] strace firefox
What if you move aside your profile? mv .mozilla .mozilla-mine firefox
~ # 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)
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
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.
Created attachment 54774 [details] strace firefox without -Wl,-z,now. I leave the old strace, it may be usefull.
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.
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.
Created attachment 54854 [details] gzipped strace -f firefox without -Wl,-z,now.
Created attachment 54855 [details] gzipped strace -ff firefox without -Wl,-z,now.
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.
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.
> 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?
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.
The rebuild have not resolved the problem. I'm rebuilding world with "-O2 -march=pentium3 -pipe", without LDFLAGS. I hope it will solve.
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
>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?
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?
Can people check the latest release of Firefox and/or blackdown-jdk and report whether the bug still exists? Thanks
Some user response needed...