LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-10-2006, 03:50 PM   #1
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,331

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
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
$
 
Old 07-10-2006, 08:37 PM   #2
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 65
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!
 
Old 07-11-2006, 04:35 PM   #3
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,331

Original Poster
Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
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 +++
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Java plugin installed correctly for Firefox but not able to view any java applet tvn Linux - Software 10 04-15-2010 02:13 AM
Firefox refuses to load Java jnlp files - plugin and java ok Melsync Linux - Software 1 06-25-2006 04:09 PM
Firefox/Java raysr Linux - Software 6 03-13-2006 07:22 AM
Java/Firefox java plugin not working with HP Webjetadmin iamskykid Linux - Software 2 03-02-2006 02:38 PM
Java in firefox Master of Reality Linux - Software 3 01-21-2006 01:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration