LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Firefox+java=segfault??? (https://www.linuxquestions.org/questions/linux-software-2/firefox-java%3Dsegfault-462721/)

haertig 07-10-2006 03:50 PM

Firefox+java=segfault???
 
Initially running Debian Sarge with Firefox v1.0.4 and Sun's JRE 1.5.0_07 Accessing a webpage requiring Java results in immediate segfault.

Then I installed Firefox v1.5.0.4 from www.backports.org ... same problem.

Any ideas on what I've done wrong and/or misconfigured? Thanks!
Code:

$ firefox
( ... after going to a Java website ... )
Segmentation fault
$ java -version
java version "1.5.0_07"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-b03)
Java HotSpot(TM) Client VM (build 1.5.0_07-b03, mixed mode, sharing)
$ firefox --version
Mozilla Firefox 1.5.0.4, Copyright (c) 1998 - 2006 mozilla.org
$ ls -l /usr/lib/mozilla-firefox/plugins
total 0
lrwxrwxrwx  1 root root 39 2006-07-10 12:16 libjavaplugin.so -> /etc/alternatives/firefox-javaplugin.so
$ ls -l /etc/alternatives/firefox-javaplugin.so
lrwxrwxrwx  1 root root 57 2006-07-10 12:16 /etc/alternatives/firefox-javaplugin.so -> /usr/lib/j2re1.5-sun/plugin/i386/ns7/libjavaplugin_oji.so
$ ls -l /usr/lib/j2re1.5-sun/plugin/i386/ns7/libjavaplugin_oji.so
-rw-r--r--  1 root root 135084 May  3 04:22 /usr/lib/j2re1.5-sun/plugin/i386/ns7/libjavaplugin_oji.so
$ uname -r
2.6.12-1-686
$


Mega Man X 07-10-2006 08:37 PM

Hi haertig!

You may be linking the wrong plugin to Firefox (you usually have two plugins available), resulting in a segmentation fault. Please, take a look at this link for a possible solution for your problem.

Regards!

haertig 07-11-2006 04:35 PM

Quote:

Originally Posted by Mega Man X
You may be linking the wrong plugin to Firefox

Thanks. I looked at this but unfortunately it doesn't appear to be the problem. I tried linking to each of the plugins (.../ns7/libjavaplugin_oji.so and .../ns7-gcc29/libjavaplugin_oji.so) from /usr/lib/mozilla/plugins, /usr/lib/mozilla-firefox/plugins and /usr/lib/firefox/plugins but no go. Same SIGSEGV.

Then I ran strace on firefox and can see that it's successfully accessing the plugin via the symlink, but it dies a bit later, right after spawning a child process and closing some socket file descriptors. I don't know what to make of that yet.

strace output right before the SIGSEGV:
Code:


...

stat64("/usr/lib/j2re1.5-sun/lib", {st_mode=S_IFDIR|0755, st_size=2048, ...}) = 0
socketpair(PF_FILE, SOCK_STREAM, 0, [49, 50]) = 0
fcntl64(49, F_GETFL)                    = 0x2 (flags O_RDWR)
fcntl64(49, F_SETFL, O_RDWR|O_NONBLOCK) = 0
fcntl64(50, F_GETFL)                    = 0x2 (flags O_RDWR)
fcntl64(50, F_SETFL, O_RDWR|O_NONBLOCK) = 0
socketpair(PF_FILE, SOCK_STREAM, 0, [51, 52]) = 0
fcntl64(51, F_GETFL)                    = 0x2 (flags O_RDWR)
fcntl64(51, F_SETFL, O_RDWR|O_NONBLOCK) = 0
fcntl64(52, F_GETFL)                    = 0x2 (flags O_RDWR)
fcntl64(52, F_SETFL, O_RDWR|O_NONBLOCK) = 0
socketpair(PF_FILE, SOCK_STREAM, 0, [53, 54]) = 0
fcntl64(53, F_GETFL)                    = 0x2 (flags O_RDWR)
fcntl64(53, F_SETFL, O_RDWR|O_NONBLOCK) = 0
fcntl64(54, F_GETFL)                    = 0x2 (flags O_RDWR)
fcntl64(54, F_SETFL, O_RDWR|O_NONBLOCK) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb72ee928) = 6164
close(52)                              = 0
close(50)                              = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
unlink("/home/haertig/.mozilla/firefox/p38dk38f.default/lock") = 0
rt_sigaction(SIGSEGV, {SIG_DFL}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [SEGV], NULL, 8) = 0
tgkill(6141, 6141, SIGSEGV)            = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++



All times are GMT -5. The time now is 10:31 AM.