Closed Bug 135369 Opened 22 years ago Closed 22 years ago

URL crashes mozilla (due to applet?)

Categories

(Core Graveyard :: Java: OJI, defect)

x86
Linux
defect
Not set
critical

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: fago, Assigned: joe.chou)

References

()

Details

(Keywords: crash)

From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9+) Gecko/20020403
BuildID:    2002040308

Loading the given applet crashes Mozilla without warning or Talkback.

Reproducible: Always
Steps to Reproduce:
1.Load URL
2.
3.

Actual Results:  Crash

Expected Results:  Load URL

This is probably a duplicate of one of the many applet / javascript bugs already
filed ... but I'm not sure which one.
This also happens on:

http://java.sun.com

Konquorer correctly renders page, but several applets are greyed out with the
message "Java applet is not loaded (jave interpreter disabled)"

By the way, the applet mentioned in the origional report only seems to print
"Hello World."
Reporter:
Which JRE type do you use ?
Have you symlinked the plugin (and not copied) to the mozilla plugin folder ?

-> Oji (=Java / Java!=Javascript)
Assignee: rogerl → joe.chou
Component: JavaScript Engine → OJI
Keywords: crash
QA Contact: pschwartau → pmac
The JRE is 1.3.1_01. I'm downloading 1.4 right now (slowly).

No, I did not symlink the plugin. Where is it supposed to be installed, and why
the symlink?
I'm a win32 user :-)
but from the release notes:
http://www.mozilla.org/releases/mozilla0.9.9/#java :

"Make a soft link from /plugins/libjavaplugin_oji.so to
/usr/java/j*/jre/plugins/i386/ns610/libjavaplugin_oji.so "

You can get a crash if you copy the plugin..
Ok, the symlink does fix the bug. RTFM ;-)

Why the crash though? Will this issue eventually be addressed, and if so what is
the existing bug?


JRE 1.4.0 works fine too BTW.
Tried it on Solaris, and it worked too. Mark it WORKSFORME.
Xiaobin, do you know the answer to Matt's question: why would it crash if the
Java plugin lib was copied to plugins directory instead of making a symbolic
link?
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → WORKSFORME
No idea! Matt, do you have the stack trace?
So there is no plan to ever fix this bug? The easy work around should rule it
out for 1.0 and even maybe 1.1, but it _is_ a crasher, no?


Here is what comes up on the command-line:

INTERNAL ERROR on Browser End: Exec of "java_vm" failed: 2
<
System error?:: No such file or directory


How to I obtain a stack trace? 

Talkback does not activate in this case, and I cannot seem to get mozilla
running in a debugger (with mozilla -g): it gives me the error "init.c not found."
The java plugin can't find the JVM if you copy the plugin and you get a crash.
(You get also crash if you change mozilla's UA String and the JVM rejects to
load with the wrong UA)
It still seems that Mozilla should be able to handle the plugins better so that
an errant java (or flash!) plugin cannot bomb the entire application.

I've had both crashed happen regularly. This one is easy to work around, but the
flash issue is only resolved by removing the (poorly written) plugin.

Hopefully this particular bug with java will no longer be an issue for anyone
when the automatic java plugin installer actually works.
Yep, plugin uses actual library location to deduce location of jvm executables.
The problem is widely known and documented in release notes.

As for mozilla's unability to survive this - this is also well known problem 
and caused by java plugin design ("around success" paradigm).
Current plugin implementations simply call exit() if any serious error happens.
Because exit() is called on the mozilla side (in the same process) - we can not
survice this :(

This was already discussed in several bugs here. 
For instance see bug 105287.
*** Bug 142995 has been marked as a duplicate of this bug. ***
QA Contact: pmac → petersen
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.