Ubuntu

icedtea-java7-plugin always crashes firefox

Reported by Roberto Cássio Jr. on 2007-10-13
118
This bug affects 2 people
Affects Status Importance Assigned to Milestone
icedtea-java7 (Ubuntu)
High
Unassigned
Nominated for Hardy by Tommy Vestermark
Gutsy
High
Unassigned

Bug Description

Binary package hint: icedtea-java7-plugin

Hi,

I've been testing the Gutsy Release Candidate x86_64 and I was very happy when I tried to open an website with a java applet and I saw the plugin finder asking to install the icedtea-java7-plugin to allow me to open the applets. It installed normally, I restarted firefox, but, there was no way to make it work. Every site I tried to open (ex.: the java applet test page) just made firefox to hang.

I understand that icedtea-java7-plugin is a fork from the java 7 which is in an early stage of development, but I think that if the only thing it does is always crashing firefox when opening a java page, it may would be better to make it not avaliable while not fixed.

I was happy too seeing a java-browser-plugin on AMD64 so I gave icedtea java a try instantly. But neither the "normal" java, nor the plugin worked for me - I always got a crash dump.

It would be great if there is a working java-plugin for amd64 soon. Java is the only reason why I still have a 32-bit chroot.

If there is anything I can do in order do provide more details about the crashes, please tell me what exactly is needed. Thanks!

Matthias Klose (doko) wrote :

confirmed, please check the packages at http://people.ubuntu.com/~doko/ubuntu/gutsy/
which should work.

As another test: please rebuild the package from the archive and see if these rebuilt packages do fix your problem.

Changed in icedtea-java7:
importance: Undecided → High
status: New → Confirmed

I've tested adding this repository (deb http://people.ubuntu.com/~doko/ubuntu/ gutsy/), and it downloaded and installed the *b21-1.4+20071007-0ubuntu1 version from the packages (except for he java-common package, for this one it gets the 0.26ubuntu1 version from the ubuntu repositories).

The problem persisted, though (same thing - always hanging).

Right now I'm going to my job, and I can't do the rebuilding (or using the other package versions there), but I'll be back tonight and I can check about it.

Matthias Klose (doko) wrote :

did you install the -bin, -jre and -plugin packages, not just the -plugin package?

yeah, I added the repository and apt got all those packages (in the version I specified in my last comment) automatically.

Martin Pitt (pitti) wrote :

Confirmed here, too. I both get the crash with the current packages, and a mere local rebuild fixes it.

Matthew Koyle (mgkoyle) wrote :

Mine didn't crash, but it did generate SIGSEGV errors that saved in my home directory. I am attaching one that I think was generated when looking at http://www.java.com/en/download/help/testvm.xml

Anyway, a local build managed by APT and dpkg fixed it for me:

sudo apt-get build-dep icedtea-java7-plugin
sudo apt-get -b source icedtea-java7-plugin icedtea-java7-bin icedtea-java7-jre icedtea-java7-jdk
sudo dpkg -i icedtea-java7-*deb

--Matthew

Ernst Sjöstrand (ernstp) wrote :

I've got plenty of hs_err_pid files, get them both when trying to run a webapplet and something local.

I was browsing in the Launchpad bugs and I saw that a new file for iced tea (icedtea-java7 7~b22-1.5~20071018-0ubuntu1) was uploaded to hardy. Do you think is there any chance that this fixes this problem (if backported to Gutsy)?

Tommy Vestermark (tov) wrote :

I can confirm the problem too when running the Gutsy AMD64 livecd.

Tried to manually download and install the 20071018 packages from ftp://ftp.ubuntu.com/ubuntu/pool/universe/i/icedtea-java7/, but there seems to be a version disreprancy right now for the AMD64 packages.

icedtea-java7-jre_7~b22-1.5~20071018-0ubuntu3_all.deb
icedtea-java7-bin_7~b22-1.5~20071018-0ubuntu2_amd64.deb
icedtea-java7-plugin_7~b22-1.5~20071018-0ubuntu2_amd64.deb

Will probably go for a 32bit install if not fixed soon :-/

Self building work for me too !

(
sudo apt-get build-dep icedtea-java7-plugin
sudo apt-get -b source icedtea-java7-plugin icedtea-java7-bin icedtea-java7-jre icedtea-java7-jdk
sudo dpkg -i icedtea-java7-*deb
)

It is very very long ... but it work !

The compatibility of this plugin is mostly the same as gcjwebplugin for the moment ...

geeknik (brian-carpenter) wrote :

I tried self building. It didn't work. It took a few hours to download and compile everything successfully, but it still doesn't work.

When I visit http://www.java.com/en/download/installed.jsp?detect=jre&try=1 it tells me that additional plugins are required to display all of the media on this page. So I start the plugin finder and it tells me I need the GCJ web browser plugin. So I tell it to download it. And then it says that it's already installed.

This works great!

Tommy Vestermark (tov) wrote :

When running Firefox from a terminal and visiting http://www.java.com/en/download/help/testvm.xml the following is printed in stdout:
# An unexpected error has been detected by Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00002acfacff8e11, pid=9055, tid=1074792784
#
# Java VM: IcedTea 64-Bit Server VM (1.7.0-b21 mixed mode linux-amd64)
# Problematic frame:
# V [libjvm.so+0x5c9e11]
#
# An error report file with more information is saved as:
# /tmp/hs_err_pid9055.log

Tommy Vestermark (tov) wrote :

Managed to get the java test mentioned above to work by downloading the following three packages from http://people.ubuntu.com/~doko/ubuntu/gutsy/ :

icedtea-java7-bin_7~b22-1.5~20071018-0ubuntu1_amd64.deb
icedtea-java7-jre_7~b22-1.5~20071018-0ubuntu1_all.deb
icedtea-java7-plugin_7~b22-1.5~20071018-0ubuntu1_amd64.deb

and then installing them by running:
>sudo dpkg -i icedtea-java7-*

So a simple update might fix the crash problem. General compatibility seems to be another problem at the moment...

I disagree with the duplication of Bug #157721 with this bug.
This bug involves a crash of the VM, Bug #157721 does not. Bug #157721 describes missing functionality required for home banking.

Finally got java and its firefox plugin working properly based on updating java7 version b21 to b22 as suggested above.
Pretty straight forward and fast. Error was:

# Java VM: IcedTea 64-Bit Server VM (1.7.0-b21 mixed mode linux-amd64)
# Problematic frame:
# V [libjvm.so+0x5c9e11]

I should note that I had to download those 3 files directly from http://people.ubuntu.com/~doko/ubuntu/gutsy/ and then run dpkg.
Is there a repository that will actually handle this update as part as the synaptic software updates management? Gutsy GUI won't let me enter that link,
while editing the software sources.list directly returns an error.

Thanks.

chantra (chantra) wrote :

I can confirm that this version:
icedtea-java7-bin_7~b22-1.5~20071018-0ubuntu1_amd64.deb
icedtea-java7-jre_7~b22-1.5~20071018-0ubuntu1_all.deb
icedtea-java7-plugin_7~b22-1.5~20071018-0ubuntu1_amd64.deb

does work for me. Before, using te one from the standard repo, I could not even get the demo applet to work:
http://www.java.com/en/download/help/testvm.xml

Looking forward having this uploaded to the main repo.

chantra (chantra) wrote :

just a quick follow up,
even with icedtea-java7-*_7~b22-1.5~20071018-0ubuntu1_amd64.deb , the HP ILO applet failed to load, will try to get a dump uploaded to this bug report

davidc (scienceinthegreen) wrote :

Firefox didn't crash with my amd64 pc, but Sun's Java demo applet only worked after following Mathew Koyle's:
sudo apt-get build-dep icedtea-java7-plugin
sudo apt-get -b source icedtea-java7-plugin icedtea-java7-bin icedtea-java7-jre icedtea-java7-jdk
sudo dpkg -i icedtea-java7-*deb

This also helped fix my Azureus crash problem.

mabovo (mabovo) wrote :

[Gutsy-amd64] Firefox and Icedtea-java7-plugin doesn't work well on certain home bank websites using jvm.
Have tried all the posts before, downgraded them to 20071018, installed from hardy repositories but all seems to have packages dependency problems. Someone has to sync those packages in the repos !

mabovo (mabovo) wrote :

Firefox "demands" that icedtea-jav7-plugin needs to be installed in order to run the jvm application but when trying to install this package I got:

The following packages has dependency problems:
  icedtea-java7-plugin: Depend: icedtea-java7-jre (= 7~b22-1.5~20071018-0ubuntu2) but 7~b22-1.5~20071018-0ubuntu3 is going to be installed

graylion (graylion) wrote :

I wish i came to the point whrre it crashes. I simply get "click here to install plugin" and then "plugin already installed" wash, rinse, repeat ...

Սահակ (petrosyan) wrote :

Upgrading to
icedtea-java7-bin_7~b22-1.5~20071018-0ubuntu1_amd64.deb
icedtea-java7-jre_7~b22-1.5~20071018-0ubuntu1_all.deb
icedtea-java7-plugin_7~b22-1.5~20071018-0ubuntu1_amd64.deb

fixed the previous problem with http://time.gov/timezone.cgi?Eastern/d/-5/java website

Just a data point:
Nothing much (including Sun java test page) worked for me with the
~b21 versions that come from the standard repo, but installing
icedtea-java7-bin_7~b22-1.5~20071018-0ubuntu1_amd64.deb
icedtea-java7-jre_7~b22-1.5~20071018-0ubuntu1_all.deb
icedtea-java7-plugin_7~b22-1.5~20071018-0ubuntu1_amd64.deb
fixed it, now everything seems to work.

Brian Rogers (brian-rogers) wrote :

The problem isn't specific to the plugin. It affects the whole JVM. Simply instantiating a Frame or JFrame crashes it.

As a simplified test, you can create the file, Test.java:
class Test {
    public static void main(String[] args) {
        new java.awt.Frame();
    }
}

Then, assuming icedtea is the default JVM, run:
javac Test.java
java Test

And it crashes. Building my own package prevents the problem. Strange...

xylo (stefan-endrullis) wrote :

I'm also running gutsy-amd64 and tried to use the ubuntu packages of icedtea-java7. Because the gutsy packages (version ~b21-1.4+20071007-0ubuntu6_amd64) didn't work, I installed the hardy packages (version ~b24-1.5-1_amd64), but the java plugin is still not working in firefox.

So even the latest hardy version is broken :(
If I start the Test class of Brian Rogers the JVM crashes.

Colin Dean (colindean) wrote :

I tried Matthew's method, and met with moderate success. I was able to load the test applet on java.com, but unable to load the applet which Facebook uses for the upload of pictures.

I also tried to use the icedtea-java7-bin_7~b22-1.5~20071018-0ubuntu1_amd64.deb, icedtea-java7-jre_7~b22-1.5~20071018-0ubuntu1_all.deb, icedtea-java7-plugin_7~b22-1.5~20071018-0ubuntu1_amd64.deb, and others from the URL given above, but met with equal success/failure (depending on your choice of optimism/pessimism, I guess).

I know it's not icedtea, but I really want to have a working java plugin, so I tried downloading the jdk1.7.0 JDK from https://jdk7.dev.java.net/. I heard that there was a plugin in it, but I looked in jre/lib/amd64 and didn't see anything that looked like it would be a plugin.

Using the b22 packages, Brian's test works.

John Dong (jdong) wrote :

From what I understand, the underlying problem is when the JRE is built in an amd64 buildd, this bug shows up, but when rebuilt in a pbuilder, the problem is gone.

So, it's not really helpful for this bug to discuss other ways of building or installing IcedTea or other Java frameworks to work around the problem -- that's something to discuss on a mailing list, forum, or IRC channel. Let's restrict this bug to discussing why this is happening and how to fix it.

Thanks.

Noel J. Bergman (noeljb) wrote :

> From what I understand, the underlying problem is when the JRE is built in an amd64 buildd,
> this bug shows up, but when rebuilt in a pbuilder, the problem is gone.

I don't have pbuilder even installed. Just doing a local build from source provided me with a functioning Java plugin, which seems to be the common thread reported.

John Dong (jdong) wrote :

Local build from source and building in a pbuilder are the same thing in this case -- that is, outside the Launchpad buildd environment this problem does not exist. It's only when Ubuntu's build servers try this build that these segfaulting binaries are generated.

Noel J. Bergman (noeljb) wrote :

> It's only when Ubuntu's build servers try this build that these segfaulting binaries are generated.

John, are you saying that there something b0rked in the Ubuntu build environment? Would that also imply that some of the other SIGSEGV reports on x86_64 in otherwise unrelated packages?

graylion (graylion) wrote :

trying the local build I am getting

make[1]: *** [stamps/tools-class-files.stamp] Error 4
make[1]: Leaving directory `/home/graylion/LocalBuilds/icedtea-java7-7~b21-1.4+20071007'
make: *** [stamps/build] Error 2
Build command 'cd icedtea-java7-7~b21-1.4+20071007 && dpkg-buildpackage -b -uc' failed.

graylion (graylion) wrote :

actually:

mkdir -p lib/tools
/usr/lib/jvm/java-7-icedtea/bin/javac -J-Xmx512m -g -d lib/tools -bootclasspath '' -source 1.6 \
          -sourcepath rt:tools:openjdk/j2se/src/share/classes:openjdk/j2se/src/solaris/classes:openjdk/langtools/src/share/classes:generated \
          @tools-source-files.txt
An exception has occurred in the compiler (1.7.0-internal). Please file a bug at the Java Developer Connection (http://java.sun.com/webapps/bugreport) after checking the Bug Parade for duplicates. Include your program and the following diagnostic in your report. Thank you.
java.lang.ArrayIndexOutOfBoundsException: 5128
        at java.lang.Long.valueOf(Long.java:571)
        at com.sun.tools.javac.jvm.Items$ImmediateItem.coerce(Items.java:622)
        at com.sun.tools.javac.jvm.Items$Item.coerce(Items.java:264)
        at com.sun.tools.javac.jvm.Gen.genExpr(Gen.java:834)
        at com.sun.tools.javac.jvm.Gen.visitAssign(Gen.java:1773)
        at com.sun.tools.javac.tree.JCTree$JCAssign.accept(JCTree.java:1440)
        at com.sun.tools.javac.jvm.Gen.genExpr(Gen.java:832)
        at com.sun.tools.javac.jvm.Gen.visitExec(Gen.java:1626)
        at com.sun.tools.javac.tree.JCTree$JCExpressionStatement.accept(JCTree.java:1142)
        at com.sun.tools.javac.jvm.Gen.genDef(Gen.java:679)
        at com.sun.tools.javac.jvm.Gen.genStat(Gen.java:714)
        at com.sun.tools.javac.jvm.Gen.genStat(Gen.java:700)
        at com.sun.tools.javac.jvm.Gen.genStats(Gen.java:751)
        at com.sun.tools.javac.jvm.Gen.visitBlock(Gen.java:1027)
        at com.sun.tools.javac.tree.JCTree$JCBlock.accept(JCTree.java:765)
        at com.sun.tools.javac.jvm.Gen.genDef(Gen.java:679)
        at com.sun.tools.javac.jvm.Gen.genStat(Gen.java:714)
        at com.sun.tools.javac.jvm.Gen.genMethod(Gen.java:907)
        at com.sun.tools.javac.jvm.Gen.visitMethodDef(Gen.java:880)
        at com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:653)
        at com.sun.tools.javac.jvm.Gen.genDef(Gen.java:679)
        at com.sun.tools.javac.jvm.Gen.genClass(Gen.java:2219)
        at com.sun.tools.javac.main.JavaCompiler.genCode(JavaCompiler.java:631)
        at com.sun.tools.javac.main.JavaCompiler.generate(JavaCompiler.java:1303)
        at com.sun.tools.javac.main.JavaCompiler.generate(JavaCompiler.java:1273)
        at com.sun.tools.javac.main.JavaCompiler.compile2(JavaCompiler.java:779)
        at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:744)
        at com.sun.tools.javac.main.Main.compile(Main.java:386)
        at com.sun.tools.javac.main.Main.compile(Main.java:312)
        at com.sun.tools.javac.main.Main.compile(Main.java:303)
        at com.sun.tools.javac.Main.compile(Main.java:82)
        at com.sun.tools.javac.Main.main(Main.java:67)
make[1]: *** [stamps/tools-class-files.stamp] Error 4
make[1]: Leaving directory `/home/graylion/LocalBuilds/icedtea-java7-7~b21-1.4+20071007'
make: *** [stamps/build] Error 2
graylion@lionscage:~/LocalBuilds/icedtea-java7-7~b21-1.4+20071007$

graylion (graylion) wrote :

logged a bug with sun, I will publish the number once I have received it.

scamper (scamper-22) wrote :

Can anyone post a compiled deb of iced tea java 7 for AMD64 hardy.

I tried the compile steps as above. Maybe my laptop is just really crappy, but my compile was running for over 20 hours and it still wasn't done. The harddrive was going nuts. CPU usage seemed okay though. So i killed it and restarted the computer. I don't want to retry that disaster.

Thanks,

Brian Rogers (brian-rogers) wrote :

Actually, the instructions that were posted cause apt-get source to rebuild everything four times, because specifying any one of those java packages will build all of them. After installing the dependencies, just run 'apt-get -b source icedtea-java7-jre' (no sudo needed as long as you have fakeroot installed).

And if you've already got the jre package built, go ahead and install it, because that's the only one you need to replace.

scamper (scamper-22) wrote :

Thanks Brian,

It worked out that the icedtea-java7-jre.deb was built. Installed it, and so far so good.
It passes the java jvm test: http://www.java.com/en/download/help/testvm.xml

Nice. This is definitely a weird one. Same souce, but ubuntu build server muck it up.

Rashad Tatum (rmtatum) wrote :

For those who don't want to rebuild the package, there is one attached (built for hardy).

For information on how to build the package see https://wiki.ubuntu.com/PbuilderHowto#head-30bc8e6feee523ce1d8ba089c4a197e80cdb2e7f

Pelládi Gábor (pelladigabor) wrote :

The attached JRE works for me! The best solution would be to fix the repo system to build the JRE correctly, but even uploading a manually built JRE into the repos for amd64 would be better than an unusable one (like we have in Gutsy).

How can I find out how the repository system works and gain the proper
security credentials to work on it?

On Mon, Mar 17, 2008 at 2:25 PM, Pelladi Gabor <email address hidden>
wrote:

> The attached JRE works for me! The best solution would be to fix the
> repo system to build the JRE correctly, but even uploading a manually
> built JRE into the repos for amd64 would be better than an unusable one
> (like we have in Gutsy).
>
> --
> icedtea-java7-plugin always crashes firefox
> https://bugs.launchpad.net/bugs/152362
> You received this bug notification because you are a direct subscriber
> of the bug.
>

--
Rashad Tatum
----

"[W]e shall not fight our battles alone. There is a just God who presides
over the destinies of Nations, and who will raise up friends to fight our
battles for us. The battle, Sir, is not to the strong alone. It is to the
vigilant, the active, the brave." - Patrick Henry on the fight for
independence

"The moral and constitutional obligations of our representatives in
Washington are to protect our liberty, not coddle the world, precipitating
no-win wars, while bringing bankruptcy and economic turmoil to our people."
Freedom Under Siege, 1987 by Ron Paul

"I sincerely believe that banking establishments are more dangerous than
standing armies, and that the principle of spending money to be paid by
posterity, under the name of funding, is but swindling futurity on a large
scale. " - Thomas Jefferson

Lukasz Wisniewski (vishna) wrote :

amd64, hardy

This bug should be fixed asap. Apart from the firefox plugin not working, I cannot run any swing application and some parts of eclipse just won't work properly. I would really appreciate this fixed as it severely compromises usability of ubuntu as java developer's tool :|

Matti Lindell (mlind) wrote :

Is this issue reproducible in Hardy using icedtea-gcjwebplugin (which has replaced old icedtea-java7-plugin) ?

Brian Rogers (brian-rogers) wrote :

icedtea-gcjwebplugin does not suffer from this issue, and neither does openjdk. The problem is resolved.

Rashad Tatum (rmtatum) wrote :

icedtea-java7 is based on java7 whereas the icedtea-gcjwebplugin is based on
java6 (correct me if i'm wrong).

On Mon, Mar 24, 2008 at 2:39 AM, Brian Rogers <email address hidden>
wrote:

> icedtea-gcjwebplugin does not suffer from this issue, and neither does
> openjdk. The problem is resolved.
>
> --
> icedtea-java7-plugin always crashes firefox
> https://bugs.launchpad.net/bugs/152362
> You received this bug notification because you are a direct subscriber
> of the bug.
>

--
Rashad Tatum
----

"[W]e shall not fight our battles alone. There is a just God who presides
over the destinies of Nations, and who will raise up friends to fight our
battles for us. The battle, Sir, is not to the strong alone. It is to the
vigilant, the active, the brave." - Patrick Henry on the fight for
independence

"The moral and constitutional obligations of our representatives in
Washington are to protect our liberty, not coddle the world, precipitating
no-win wars, while bringing bankruptcy and economic turmoil to our people."
Freedom Under Siege, 1987 by Ron Paul

"I sincerely believe that banking establishments are more dangerous than
standing armies, and that the principle of spending money to be paid by
posterity, under the name of funding, is but swindling futurity on a large
scale. " - Thomas Jefferson

Ori Avtalion (salty-horse) wrote :

Matti, I'm still experiencing problems.

Using hardy on amd64 with icedtea-gcjwebplugin 1.0-0ubuntu3.

I tried loading the applet in <http://www.java.com/en/download/help/testvm.xml>.
The applet failed to run. Problematic frame from the log: [libjvm.so+0x5ca141]

Firefox itself did not crash.

Matti Lindell (mlind) wrote :

Ori, I wasn't able to reproduce your issue using icedtea-gcjwebplugin 1.0-0ubuntu3, but I'm using i386 though. Could you make sure that you've removed old icedtea-java7-plugin from your system and the only java plugin that's displayed when you open URL 'about:plugins' in firefox is "GCJ Web Browser Plugin (using IcedTea) 1.0".

Ori Avtalion (salty-horse) wrote :

Matti, you're right! I had the old "icedtea-java7-*" packages installed. Removing them loads the applet correctly.

Oddly, the plugin is reported as "GCJ Web Browser Plugin (using IcedTea) 1.5" and not 1.0.

Սահակ (petrosyan) wrote :

icedtea-java7-plugin seems to have been removed from Ubuntu repositories, however if I don't have any java plugins installed and browse to a java web page, Firefox is trying to install icedtea-java7-plugin and fails with "Can not find 'icedtea-java7-plugin'" error.

Matti Lindell (mlind) wrote :

Ani, firefox not installing correct Java plugin is tracked in ubufox bug #177514, see https://bugs.launchpad.net/ubuntu/+source/ubufox/+bug/177514/comments/34. Icedtea packages removed in favor of openjdk-6 is described in bug #203636.

I'll close this bug as fixed as icedtea-gcjwebplugin resolves the issue.

Changed in icedtea-java7:
status: Confirmed → Fix Released
Matthias Klose (doko) wrote :

reopening; the package is not yet in gutsy-updates; bug reports, please test this package in gutsy-proposed and report back your feedback in bug #204221. This is required to move the package from gutsy-proposed to gutsy-updates. thanks!

Changed in icedtea-java7:
status: Fix Released → In Progress
status: New → In Progress
status: In Progress → Fix Released
importance: Undecided → High
Matthias Klose (doko) wrote :

hardy-proposed: verified that the rt.jar file is in the architecture specific package

Matthias Klose (doko) wrote :

s/hardy/gutsy/ in the last comment

Martin Pitt (pitti) wrote :

Is there anyone using this gutsy SRU and can confirm that the package actually still works?

Martin Pitt (pitti) wrote :

This update had been in gutsy-proposed for almost a year without any feedback. I removed the proposed package.

Changed in icedtea-java7:
status: In Progress → Won't Fix
Changed in icedtea-java7 (Ubuntu):
status: Fix Released → Confirmed
assignee: nobody → Anthony Scuderi (ascuderi2647)
Matthias Klose (doko) on 2010-08-23
Changed in icedtea-java7 (Ubuntu):
assignee: Anthony Scuderi (ascuderi2647) → nobody
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers