Closed Bug 211786 Opened 23 years ago Closed 21 years ago

Browser crashes when using Solaris Java 1.4.2 plugin (need a gcc compiled java plugin)

Categories

(Core Graveyard :: Java: OJI, defect)

Sun
Solaris
defect
Not set
critical

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: bob, Assigned: yuanyi21)

References

Details

(Keywords: crash)

Attachments

(4 files)

User-Agent: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.4) Gecko/20030705 Build Identifier: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.4) Gecko/20030705 Java 1.4.2 plugin causes Mozilla 1.4 to crash either (a) on startup if plugin link already exists or (b) while running and plugin link is created and About->Plugins is selected. No stdout/stderr output on crash. Plugin linked from ~/.mozilla/plugins directory to /usr/java/plugin/sparc/ns610/libjavaplugin_oji.so Solaris 2.8 Generic_108528-14 java full version "1.4.2-b28" Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.4) Gecko/20030705 (Compiled locally with gcc version 2.95.3 20010315) ac_add_options --with-pthreads ac_add_options --without-system-nspr ac_add_options --enable-js-ultrasparc ac_add_options --disable-debug ac_add_options --disable-tests ac_add_options --enable-optimize=-O3 ac_add_options --enable-strip ac_add_options --without-jpeg ac_add_options --without-zlib ac_add_options --without-png ac_add_options --without-mng ac_add_options --with-system-jpeg=/opt ac_add_options --with-system-zlib=/opt ac_add_options --with-system-png=/opt ac_add_options --with-system-mng=/opt ac_add_options --enable-mathml ac_add_options --enable-crypto ac_add_options --enable-ldap-experimental ac_add_options --enable-calendar --- Plugin is running properly on: java full version "1.4.1_03-b02" /usr/java/plugin/sparc/ns610/libjavaplugin_oji.so Reproducible: Always Steps to Reproduce: 1. Create link from ~/.mozilla/plugins directory to /usr/java/plugin/sparc/ns610/libjavaplugin_oji.so 2. Start browser Alt method: 1. Browser is already running. 2. Change /usr/java link to /usr/j2re1.4.2 3. Help->About Plugins Actual Results: Browser attempts to start (small CPU usage spike) and before any windows appear browser stops. No stderr/stdout messages. In alt method. Browser crashes immediately after selecting Help->About Plugins. No stderr/stdout messages. Expected Results: Browser should not crash. Plugin information should show correct java plugin info. Everything works properly against java full version "1.4.1_03-b02" /usr/java/plugin/sparc/ns610/libjavaplugin_oji.so
Not enough info. Run mozilla-bin under the debugger (setting your LD_LIBRARY_PATH appropriately beforehand) and provide stack trace.
.
Assignee: peterlubczynski → joshua.xia
Severity: major → critical
Component: Plug-ins → OJI
Keywords: crash
QA Contact: bmartin → dsirnapalli
Attachment #127122 - Attachment description: /usr/j2re1.4.0_02/plugin/sparc/ns610/libjavaplugin_oji.so → Truss output /usr/j2re1.4.0_02/plugin/sparc/ns610/libjavaplugin_oji.so
Re-ran test - this time using truss. In re-running the test I first removed the ~/.mozilla/pluginreg.dat and I discovered that Mozilla 1.4 crashes using any of the ns610 plugins in the following prior java releases: j2re1.4.0_02 j2re1.4.1_03 j2re1.4.2 Basically it appears that mozilla hasn't worked with the ns610 plugin for quite some time. I had been using the ns600 plugin. It wasn't until I removed the pluginreg.dat file that it re-scanned and actually started using the NS600 plugin - or so it seems. I have attached truss output for each of the runs.
Ooops - in my last comment I meant to say: "It wasn't until I removed the pluginreg.dat file that it re-scanned and actually started using the *NS610* plugin - or so it seems."
I am having this same problem on the Solaris 8 and Solaris 9 machines I'm involved in administering. This is forcing me to keep around an additional version of the jdk with the NS600 directory, which is undesirable. Sun technical support directed me to Mozilla, because they only officially support Netscape 7, with which JDK 1.4.2 works fine. What sort of information can I provide to help get this bug resolved?
I'm able to reproduce this. I'll try and figure out what's going on. If someone can attach a debug stack trace when it crashes, please do. I believe the issue is that both ns7 and 1.4.2 plugin is compiled with the Forte Compilers which work fine, but most binary builds here are compiled with gcc and may be triggering some incompatability (like the mess that is happening on Linux with gcc-3.x compile mozilla and gcc-2.95.x compiled plugins).
Attached a backtrace from running mozilla -g on a mozilla built on Solaris 9 using the following configure options: export MOZILLA_OFFICIAL=1 export BUILD_OFFICIAL=1 export LD=/usr/ccs/bin/ld export AR=/usr/ccs/bin/ar export AS=/usr/ccs/bin/as export STRIP=/usr/ccs/bin/strip export RANLIB=/usr/ccs/bin/ranlib LDFLAGS='-R/opt/local/lib -L/opt/local/lib' ./configure \ --prefix=/opt/mozilla-1.4 \ --enable-optimize \ --enable-crypto \ --enable-extensions \ --with-pthreads \ --with-system-jpeg \ --with-system-png \ --with-system-zlib \ --disable-xprint Is there any way I can make the backtrace more informative?
> Is there any way I can make the backtrace more informative? No, since the java plugin appears to be stripped... I can work with that for now internally in Sun.
OS: SunOS → Solaris
Refer to bug 116444 and bug 124006 for this issue. Sun has bug 4687814 that is fixed for Linux but isn't for Solaris. I can reproduce this behavior now and am actively seeking a solution
This is a know issue in Sun. Currently the 1.4.2 plugin will ONLY work with Forte compiled mozilla. Please use the Sun supplied community Forte compiled mozilla builds if you need to upgrrade to 1.4.2 java plugin or use an older plugin (1.4.1) that works with gcc compiled mozilla..
*** Bug 232896 has been marked as a duplicate of this bug. ***
Assignee: joshua.xia → kyle.yuan
Status: UNCONFIRMED → NEW
Ever confirmed: true
I wanted to update theis bug report to show that this problem still exists with the latest version of Java (1.4.2_03) and Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.6) Gecko/20040215 compiled with gcc 2.95.3. The requirement to use the Forte compiled version of mozilla odd since this type of issue does not come up with other 3rd party plugins that are compiled with unknown compilers. I suspect that Sun has a problem with their java plugin and that the Forte compiler is masking that problem. I have to assume that the 1.4.1_03 java package was compiled with a Forte compiler as well. So the fact that 1.4.2 java doesn't work with Mozilla appears to be due to a problem with Java and not with Mozilla although I can't rule out the possibility of a problem with both at the API level that is being tickled by some problem within the 1.4.2 java plugin. Does anyone have any pull with Sun to get this problem resolved. It is just plain annoying. Why is it that Java seems to always be the problem child?
over a year has passed and the problem remains the same. Is there anyone who can do something about this problem?
turns out that building your jdk is not that difficult. Techinically there is no reason for Sun to not release a gcc32 plugin for solaris, because I built it in less than 5 minutes with some hacking around the build setup. Its just that they are set on not doing it...too bad!!
changing summary... I was told that there is no plan for releasing a gcc compiled java plugin on Solaris. nothing can be done from the browser side, closed.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → WONTFIX
Summary: Browser crashes when using Solaris Java 1.4.2 plugin → Browser crashes when using Solaris Java 1.4.2 plugin (need a gcc compiled java plugin)
i'm not sure that's technically correct. we should be able to do what the cool people did for os/2 where you teach the loader how to recognize the compiler you don't like so that when it loads them, it creates a wrappers which wraps the call to the export with a function that wraps in/out parameters.
URL: n/a
Yeah, that's definitely not correct. We added code to Mozilla so that both our GCC compiled browser and VACPP compiled browser can load the VACPP compiled browser plugin. You basically have to write a mapping layer. Unfortunately, the mapping layer is not open source...
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: