Closed Bug 552891 Opened 14 years ago Closed 14 years ago

XID collision, trouble ahead AND "LoadPlugin: failed to initialize shared library" messages

Categories

(SeaMonkey :: General, defect)

x86
Linux
defect
Not set
critical

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: grgoffe, Unassigned)

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.3a4pre) Gecko/20100316 SeaMonkey/2.1a1pre
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.3a4pre) Gecko/20100316 SeaMonkey/2.1a1pre

This is with the latest(?) nightly build of seamonkey. The target site was mail.yahoo.com but I would NOT bet that they are the problem.

shooter bash-4.0 ~# sm2 (bash alias for /opt/seamonkey/seamonkey)
[2] 10555
shooter bash-4.0 ~# LoadPlugin: failed to initialize shared library /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/lib/i386/IcedTeaPlugin.so [/usr/lib/xulrunner-1.9.1/libxul.so: undefined symbol: js_GetErrorMessage]

(seamonkey-bin:10555): Gdk-WARNING **: XID collision, trouble ahead
(seamonkey-bin:10555): Gdk-WARNING **: XID collision, trouble ahead
(seamonkey-bin:10555): Gdk-WARNING **: XID collision, trouble ahead
(seamonkey-bin:10555): Gdk-WARNING **: XID collision, trouble ahead

MANY of these removed. You're welcome.

(seamonkey-bin:10555): Gdk-WARNING **: XID collision, trouble ahead
(seamonkey-bin:10555): Gdk-WARNING **: XID collision, trouble ahead
(seamonkey-bin:10555): Gdk-WARNING **: XID collision, trouble ahead
(seamonkey-bin:10555): Gdk-WARNING **: XID collision, trouble ahead
LoadPlugin: failed to initialize shared library /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/lib/i386/IcedTeaPlugin.so [/usr/lib/xulrunner-1.9.1/libxul.so: undefined symbol: js_GetErrorMessage]
LoadPlugin: failed to initialize shared library /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/lib/i386/IcedTeaPlugin.so [/usr/lib/xulrunner-1.9.1/libxul.so: undefined symbol: js_GetErrorMessage]
LoadPlugin: failed to initialize shared library /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/lib/i386/IcedTeaPlugin.so [/usr/lib/xulrunner-1.9.1/libxul.so: undefined symbol: js_GetErrorMessage]
 LoadPlugin: failed to initialize shared library /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/lib/i386/IcedTeaPlugin.so [/usr/lib/xulrunner-1.9.1/libxul.so: undefined symbol: js_GetErrorMessage]
LoadPlugin: failed to initialize shared library /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/lib/i386/IcedTeaPlugin.so [/usr/lib/xulrunner-1.9.1/libxul.so: undefined symbol: js_GetErrorMessage]


Reproducible: Always

Steps to Reproduce:
1.enter "ff2" (bash alias for /opt/seamonkey/seamonkey)
2.go to mail.yahoo.com
3.
Actual Results:  
see messages above

Expected Results:  
no messages

Eventually the browser will crash. Sometimes saving the tabs and sometimes not.
After installing "noscript" plugin, the problem seems to be gone.
xid collision trouble ahead is bug 497561 (roughly i think it's a bug in gtk with x11 as an indited co-conspirator)

the jdk thing is odd, i think it should be a bug in icedtea, but i can't find that symbol in their codebase.... i'd suggest filing a bug w/ them anyway. they can help you track down what's going wrong. if it turns out that they're using some macro/function that they think is public and it's pulling in something private, then they'd need to explain to us what they're doing anyway.
Timeless,

Thanks for your help.

Do you have a link for the icedtea team by any chance?

Regards,

George...
Timeless,

I found the reference in xulrunner-1.9.1.8-1 at this url.

http://mxr.mozilla.org/mozilla/search?find=%2F&string=js_GetErrorMessage

It looks like this code "lives" in the mozilla tree. Is that right?

I did the search above and got these results.

js_GetErrorMessage

Found 117 matching lines  in 21 files
yes, we have a symbol by that name, but no, that's not really the interesting part of the error.

http://mxr.mozilla.org/mozilla-central/source/modules/plugin/base/src/nsPluginsDirUnix.cpp#86
82     char errorMsg[PLUGIN_MAX_LEN_OF_TMP_ARR] = "Cannot get error from NSPR.";
83     if (PR_GetErrorTextLength() < (int) sizeof(errorMsg))
84         PR_GetErrorText(errorMsg);
85 
86     fprintf(stderr, "LoadPlugin: failed to initialize shared library %s [%s]\n",
87         libName, errorMsg);

that message comes from:

151 static void DLLErrorInternal(PRIntn oserr)

160     error = dlerror();...
169         PR_SetErrorText(strlen(error), error);

   dlerror
       The function dlerror() returns a human readable string describing the most recent error that occurred from any of the dl routines (dlopen, dlsym or dlclose) since the last call to dlerror().  It returns NULL if no errors have occurred since initialization or since it was last called.

Again, you error was:
LoadPlugin: failed to initialize shared library /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/lib/i386/IcedTeaPlugin.so
[/usr/lib/xulrunner-1.9.1/libxul.so: undefined symbol: js_GetErrorMessage]

If you're running in a Gecko 1.9.3 which you are according to your "Build Identifier", then you really don't want to load Gecko 1.9.1 into that process.

Roughly, what you have is:

IcedTea linked against Gecko1.9.1 where spidermonkey was probably(* I don't want to waste my time looking for the history of how 4 year old code was organized, it's a complete waste of my time) in a different library. IcedTea shouldn't be linking against XULRunner, that's a total violation of how plugins and xpcom work. INVALID. If you have a problem with IcedTea, please contact your IcedTea vendor.
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → INVALID
Timeless,

I'm running the pre-release of firefox so I can report any bugs I find.

It looks like OpenJDK provides the icedtea implementation (see output of yum whatprovides below). Is this where this bug should go? I would guess that it belongs with Fedora. What do you think?

Thanks for your help and time.

George...

 yum whatprovides /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/lib/i386/IcedTeaPlugin.so
Loaded plugins: aliases, auto-update-debuginfo, basearchonly, changelog, downloadonly, fastestmirror, filter-data, fs-snapshot, keys, list-data, local, merge-conf, post-transaction-actions, presto, priorities, protect-
              : packages, protectbase, refresh-packagekit, refresh-updatesd, remove-with-leaves, rpm-warm-cache, security, show-leaves, tmprepo, tsflags, upgrade-helper, verify, versionlock
Loading mirror speeds from cached hostfile
 * fedora: mirror.stanford.edu
 * kde: apt.kde-redhat.org
 * updates: mirrors.xmission.com
0 packages excluded due to repository protections
_local/filelists_db                                                                                                                                                                                   | 1.0 MB     00:00 ... 
updates/filelists_db                                                                                                                                                                                  | 6.8 MB     00:23     
1:java-1.6.0-openjdk-plugin-1.6.0.0-31.b16.fc12.i686 : OpenJDK Web Browser Plugin
Repo        : fedora
Matched from:
Filename    : /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/lib/i386/IcedTeaPlugin.so
yep
You need to log in before you can comment on or make changes to this bug.