Closed Bug 450118 Opened 18 years ago Closed 10 years ago

Firefox 3.0.0 and 3.0.1 dump core when the IBM Java 1.4.2 plugin is installed and we open 'about:plugins'.

Categories

(External Software Affecting Firefox :: Other, defect)

All
Linux
defect
Not set
critical

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: bhdevdas, Unassigned)

Details

(Keywords: crash, stackwanted, Whiteboard: [IBM Java])

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.14) Gecko/20080707 Fedora/2.0.0.14-3.oc2 (CK-IBM) Firefox/2.0.0.14 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.1) Gecko/2008070206 Firefox/3.0.1 We get into the firefox/plugins directory and create a symbolic link to the IBM Java 1.4.2 plugin. Then we start firefox and try opening the page 'about:plugins' to check for the installation of the plugin. But firefox dumps a core. We are checking to support our plugin on RHEL and SLES. RHEL behavior (RHEL 5.2): After the crash, once we restart firefox, everything starts working fine. SLES behavior (SLES 10 SP2): Firefox itself did not start because the GTK library levels was not correct. Upgraded as per this blog: http://blogs.warwick.ac.uk/mikewillis/entry/of_firefox_3/ . Firefox does come up and works fine. But once the IBM Java plugin is installed, firefox keeps dumping cores everytime. Reproducible: Always Steps to Reproduce: 1. Install IBM Java 1.4.2 and create a symbolic link to the IBM Java plugin (/usr/lib/jvm/java-1.4.2-ibm/jre/bin/libjavaplugin_ojigcc3.so) in firefox/plugins directory. 2. Start firefox and open the address - about:plugins Actual Results: Firefox will dump a core and crash. Expected Results: To show all installed plugins.
Component: General → Plug-ins
Product: Firefox → Core
QA Contact: general → plugins
Version: unspecified → 1.9.0 Branch
Keywords: crash, stackwanted
After extensive testing this is where I have reached on the two Operating Systems (latest versions of RHEL 5 and SLES 10). But, the core file still does not give stack traces to identify any problem. General procedures I followed for the testing - Firefox installation: --------------------- 1. Extract the contents of firefox-3.0.1.tar.bz2 into the /usr/lib directory. 2. Change directory to /usr/bin and look for the symbolic link named firefox which points to the firefox start up script of the old installation of firefox. The old or default installation could again be found at /usr/lib. Modify the symbolic link to point to the firefox script of the new firefox 3.0.1 which you just installed. This new script can be found in the /usr/lib/<the name od the directory to which you extracted firefox 3.0.1>/firefox. The file firefox-bin in this directory is the firefox executable binary file. 3. Now try starting firefox and browse a few links. Java installation: ------------------ 1. Download a JDK in the PRM format given by IBM. 2. Install the JDK using the command 'rpm -i <Java RPM file>'. This should install the JDK in /opt directory. Plugin installation: -------------------- 1. Change directory to where firefox is installed. If you followed the above firefox installation steps, it should be /usr/lib/firefox. 2. Look for a directory named plugins and change directory into this directory. 3. Create a symbolic link to the Java plugin in this directory to install the plugin for firefox. The command to do that is 'ln -s <Java install directory>/jre/bin/libjavaplugin_jnigcc3.so'. Check for the plugin to be installed: ------------------------------------- 1. Start firefox. 2. Type the address as 'about:plugins' in the address bar of the browser. 3. The above address must display all the plugins installed for the browser. ***** ***** ***** ***** ***** Results of testing on RHEL 5: The firefox 3 is easy to be installed and started. The environment seems to be fit to install and bring up the browser. The problem of crash exists only when we install the plugin. So here are the steps to re-create and analysis. From the above mentioned procedures, 1. Install the firefox browser and Java. 2. Attach the Java plugin to the browser as mentioned above. 3. Check if the plugin is installed as mentioned above. Firefox will crash and the crash is picked up by the firefox crash reporter tool. The core is generated by this crash reporter and when I use GDB, I am not able to make much sense from it as this is probably not a debug build to give us symbols. Although we realized that every time firefox tries to find and initialize a plugin, it will generate a file named pluginreg.dat in the path <user's home directory>/.mozilla/firefox. This file usually contains the complete information of all the plugins installed for the browser. Since this is a new installation, the firefox tries to create or update the new Java plugin's information in this file. After the file is generated or updated the firefox browser crashes. Once the file is generated or updated with the Java plugin information, there seems to be no problem. Restart firefox after this crash and try using the plugin and we realize that everything works fine without any issues. Once I realized this, I tried the same with SUN Java instead of IBM's. I found the same behavior. The problem seems to be in the code which updates the Java plugin information to the pluginreg.dat file of the browser. ***** ***** ***** ***** ***** Results of testing on SLES 10: The SLES 10 Operating System does not have the appropriate library levels to even bring up the firefox. The default version of the libraries available are not up to date for firefox 3.0.1 to work. For testing purposes, I updated the below mentioned libraries to their respective latest versions (also mentioned below), which I got from the net from the following link: http://blogs.warwick.ac.uk/mikewillis/entry/of_firefox_3/ Glib - http://ftp.gnome.org/pub/gnome/sources/glib/2.16/glib-2.16.3.tar.bz2 Cairo - http://www.cairographics.org/releases/cairo-1.2.6.tar.gz Pango - http://ftp.gnome.org/pub/GNOME/sources/pango/1.20/pango-1.20.3.tar.bz2 ATK - http://ftp.gnome.org/pub/gnome/sources/atk/1.22/atk-1.22.0.tar.bz2 GTK - http://ftp.gnome.org/pub/gnome/sources/gtk+/2.12/gtk+-2.12.10.tar.bz2 From the above mentioned procedures, 1. Install the firefox browser and Java. 2. Attach the Java plugin to the browser as mentioned above. 3. Check if the plugin is installed as mentioned above or/and try opening a page which has Java applets to be run. The firefox crashes every time we try to use the Java plugin. Every initialization of the plugin will crash the firefox and dump a core file. These crashes are not picked up by the crash reporter of firefox too. The browser simply does not work with the plugin in this environment. Another problem in the SLES environment is a crash if the firefox is tried to run from the user's home directory. To re-create this, follow the installation procedure of firefox as mentioned above. But, instead of extracting the contents of firefox-3.0.1.tar.bz2 to /usr/lib directory, extract the contents to the user's home directory. Since this is only for testing, extracting the contents to anywhere in the file system should not matter. Now try bringing up the firefox and check for installed plugins by giving the address as 'about:plugins' in the address bar of the browser. The firefox crashes with a segmentation fault. Again this crash is not picked up by the crash reporter tool. The complete above testing is for the Java version 1.4.2 and its plugin. -Bharat Devdas
Component: Plug-ins → Other
Product: Core → Plugins
QA Contact: plugins → other
Whiteboard: [IBM Java]
Version: 1.9.0 Branch → unspecified
Closing old bugs in the Plugins component. We aren't going to track issues in 3rd-party plugins in the Mozilla bug tracker. In addition, support for NPAPI plugins will be removed at the end of this year; for more details see the post at https://blog.mozilla.org/futurereleases/2015/10/08/npapi-plugins-in-firefox/ If there is a serious bug in Firefox, it needs to be filed in the "Core" product, "Plug-Ins" component.
Status: UNCONFIRMED → RESOLVED
Closed: 10 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.