Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#15056 - [arora] Arora browser crashes with segfault

Attached to Project: Arch Linux
Opened by David Rosenstrauch (darose) - Thursday, 11 June 2009, 15:10 GMT
Last edited by Pierre Schmitz (Pierre) - Thursday, 06 August 2009, 02:19 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Pierre Schmitz (Pierre)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:

Not sure what the problem is, but the browser keeps segfaulting on me with certain sites. e.g.: google.com works fine, cnn.com not:

[darose@daroselin ~]$ arora www.cnn.com
Segmentation fault

When I run it under strace, the last bits of output are as follows:

open("/opt/mozilla/lib/plugins", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/opt/java/jre/lib/amd64/libnpjp2.so", {st_mode=S_IFREG|0755, st_size=78978, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=3519, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=3519, ...}) = 0
stat("/opt/java/jre/lib/amd64/libnpjp2.so", {st_mode=S_IFREG|0755, st_size=78978, ...}) = 0
open("/opt/java/jre/lib/amd64/libnpjp2.so", O_RDONLY) = 13
read(13, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\220[\0\0\0\0\0\0@"..., 832) = 832
fstat(13, {st_mode=S_IFREG|0755, st_size=78978, ...}) = 0
mmap(NULL, 1106952, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 13, 0) = 0x7fa596a81000
mprotect(0x7fa596a8e000, 1044480, PROT_NONE) = 0
mmap(0x7fa596b8d000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 13, 0xc000) = 0x7fa596b8d000
mprotect(0x7fa5a42b5000, 3460, PROT_READ|PROT_WRITE) = 0
mprotect(0x7fa5a42b5000, 3460, PROT_READ) = 0
mprotect(0x7fffac2b3000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC|PROT_GROWSDOWN) = 0
mprotect(0x7fa596fc3000, 8388608, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
close(13) = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++



Additional info:
* package version(s)

0.7.0-1

* config and/or log files etc.


Steps to reproduce:

[darose@daroselin ~]$ arora www.cnn.com
Segmentation fault
This task depends upon

Closed by  Pierre Schmitz (Pierre)
Thursday, 06 August 2009, 02:19 GMT
Reason for closing:  Upstream
Comment by Jan de Groot (JGC) - Thursday, 11 June 2009, 15:24 GMT
Try removing the java plugin.
Comment by David Rosenstrauch (darose) - Thursday, 11 June 2009, 15:32 GMT
How?!?!?
Comment by Jan de Groot (JGC) - Thursday, 11 June 2009, 15:36 GMT
By removing the package that provides it? (hint: the jre package).
Comment by David Rosenstrauch (darose) - Thursday, 11 June 2009, 17:51 GMT
??? You can't be serious that that's a reasonable fix for this. I'm a Java developer, for pete's sake! :-)
Comment by Roman Kyrylych (Romashka) - Thursday, 11 June 2009, 18:05 GMT
doesn't Arora have some checkbox in preferences that allows to turn off java plugin loading?
Comment by Pierre Schmitz (Pierre) - Saturday, 13 June 2009, 11:12 GMT
I cannot reproduce this bug. But plugins are not really stable with webkit anyway.
Comment by Jan de Groot (JGC) - Saturday, 13 June 2009, 11:43 GMT
Pierre: do you have sun jdk/jre installed, or openjdk? Looking at the strace output, the crash appears in the java plugin, so I think jre is the problem here. I would suggest trying without jre, or with openjdk instead.
Comment by David Rosenstrauch (darose) - Saturday, 13 June 2009, 20:30 GMT
I have Sun jdk and jre.

Methinks the solution is: don't use Arora cause it's broken crap! :-)
Comment by Jan de Groot (JGC) - Saturday, 13 June 2009, 21:10 GMT
You're not constructive with this bugreport. You're reporting a bug against arora, provide an strace log that shows the last loaded thing is the jre plugin (which is a community package), and don't want to try any way to find out if aurora isn't crashing when removing the plugin.
Comment by David Rosenstrauch (darose) - Sunday, 14 June 2009, 17:33 GMT
Apologies if I'm not being constructive. That's not my intention.

But, as I'm a Java developer, uninstalling Java keeps me from doing work, and so I can't just do that in the middle of the work day.

Please re-open, and I'll test out your suggestion at home when I have a moment.
Comment by David Rosenstrauch (darose) - Monday, 15 June 2009, 14:31 GMT
FYI - arora appears to work fine with the jre package uninstalled.

That said, uninstalling java is obviously not a workable solution to this problem, as people often need to use it for numerous other purposes.
Comment by Pierre Schmitz (Pierre) - Monday, 15 June 2009, 14:36 GMT
Did you try openjdk6 instead?
Comment by David Rosenstrauch (darose) - Monday, 15 June 2009, 14:39 GMT
No. I need the Sun jdk/jre for my work.
Comment by Pierre Schmitz (Pierre) - Monday, 15 June 2009, 14:40 GMT
Sorry, but have you really tried it? Or are you just assuming that it wont work?
Comment by David Rosenstrauch (darose) - Monday, 15 June 2009, 14:45 GMT
Won't work ... for what? Perhaps it will work with Arora, and if so that's great. But uninstalling jdk/jre is not an option for me.

Besides which, we're ignoring the real issue here. Which is that Arora shouldn't crash with jdk/jre installed.
Comment by Pierre Schmitz (Pierre) - Monday, 15 June 2009, 15:00 GMT
Why isn't it an option? I just don't get it. If there is anything which does not work with openjdk please let us know.

And don't forget that it might be the plugin that crashes and Arora with it.

* Try with openjdk6
* Disable java plugin in Arora

I wonder why this report was reopend if you don't want to help narrowing the problem down. But its pretty sure an upstream problem. But this way we will never know if its Sun JRE, Arora, webkit, QT or something else.
Comment by Jan de Groot (JGC) - Monday, 15 June 2009, 15:01 GMT
Plugins get loaded in proces, so anything that is done by the plugins that can crash, will crash the whole browser. This is also true for browsers like firefox.
Comment by David Rosenstrauch (darose) - Monday, 15 June 2009, 15:16 GMT
IIRC, there's a bunch of things that don't work with openjdk. Eclipse, for one, I think.

But I agree, this probably is an upstream problem. Which is why I'm puzzled by everyone's attempts here to just "solve" this by "switch to openjdk so we can close this bug".

There is a bug here. The browser crashes when it should not. Seems to me that the cause of this should be identified before we can close this bug. I don't understand why you're trying to make me out to be the bad guy here. I'm just trying to help get a bug fixed.
Comment by David Rosenstrauch (darose) - Monday, 15 June 2009, 15:22 GMT
FYI - I temporarily uninstalled, jre/jdk and replaced it with openjdk6. Arora does not crash on the CNN site, as it did with JDK/JRE.

That said, Java plugin does not appear to be working with openjdk6, as embedded applets do not appear in pages. (e.g.: http://www.cs.ubc.ca/~harrison/Java/sorting-demo.html) But that's a separate issue.
Comment by Roman Kyrylych (Romashka) - Monday, 15 June 2009, 18:43 GMT
Does Java plugin work in some other browser? (with jre/jdk installed)
If it does - did you report the bug to Arora devs?
Comment by David Rosenstrauch (darose) - Monday, 15 June 2009, 18:53 GMT
jre/jdk's Java plugin works fine with firefox.

I have not yet reported the bug upstream - was waiting to hear from the brain trust here whether they thought it was an upstream bug, vs. just Arch-specific.

Loading...