Any news about Webkit?

59 views
Skip to first unread message

Tom Li

unread,
Mar 9, 2014, 4:48:58 AM3/9/14
to loongs...@googlegroups.com
The Webkit is buggy on MIPS, especially on N32 ABI, is a one
well-known fact for the Loongson community. That's means we can't use
program and browser which is used Webkit as their engine.

The problem caused by multiple reasons. Including JavaScriptCore, JIT,
unaligned memory, etc. Caused the bus errors and segmentation faults.

Some days ago, Gentoo unmasked the latest webkit-gtk-2.2.5-r200:2, I
emerged it on my Gentoo MIPS N32 and see if any fixes. I patched it
(patch attached) to disabled the JIT engine. But I got segmentation
fault when launch Midori. I found the problem caused by fastMalloc().

I saw some years' old posts on the Internet, they said even using
USE_SYSTEM_MALLOC, it still crashing. I didn't try it yet, because
recompile Webkit need too much time.

So, I want to confirm that:

1. I saw some Debian users using Webkit. Does Webkit work well on MIPS
O32. Or we have to apply patches. Did Debian developers apply some
patches? And how stable it is?

2. Does anyone can try compile webkit-gtk-2.2.5-r200 with JIT disabled
and #define USE_SYSTEM_MALLOC 1 and see if it works?

3. Is there any exist work for Webkit on MIPS N32, and what progress
has been made?

I troubled by this problem for a long time, it means I can't access
any website with AJAX on the YeeLoong 8089D laptop. Firefox also
broken because of a Virtualenv's issue (better to discuss it in
another post).

Thanks,

Tom Li

-------------------------------------

--- webkit-1.4.1.orig/Source/WTF/wtf/Platform.h 2011-06-30
12:14:01.572119909 +0200
+++ webkit-1.4.1/Source/WTF/wtf/Platform.h 2011-06-30
12:17:00.352382262 +0200
@@ -95,8 +95,9 @@

/* CPU(MIPS) - MIPS 32-bit */
/* Note: Only O32 ABI is tested, so we enable it for O32 ABI for now. */
+/* N32 is also tested, without JIT */
#if (defined(mips) || defined(__mips__) || defined(MIPS) || defined(_MIPS_)) \
- && defined(_ABIO32)
+ && (defined(_ABIO32) || defined(_ABIN32))
#define WTF_CPU_MIPS 1
#if defined(__MIPSEB__)
#define WTF_CPU_BIG_ENDIAN 1
@@ -726,7 +727,7 @@

/* The JIT is enabled by default on all x86, x86-64, ARM & MIPS platforms. */
#if !defined(ENABLE_JIT) \
- && (CPU(X86) || CPU(X86_64) || CPU(ARM) || CPU(MIPS)) \
+ && (CPU(X86) || CPU(X86_64) || CPU(ARM) || (CPU(MIPS) &&
defined(_ABIO32))) \
&& (OS(DARWIN) || !COMPILER(GCC) || GCC_VERSION_AT_LEAST(4, 1, 0)) \
&& !OS(WINCE) \
&& !(OS(QNX) && !PLATFORM(QT)) /* We use JIT in QNX Qt */

Justin Cormack

unread,
Mar 9, 2014, 5:28:01 AM3/9/14
to loongs...@googlegroups.com


It might be worth trying Chromium there seems to be good progress on Debian and Android. Android ships on MIPS so there is incentive to support it.

https://code.google.com/p/chromium/issues/detail?id=130022

Both are o32 so best to try that first.

Justin

--
You received this message because you are subscribed to the Google Groups "loongson-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to loongson-dev...@googlegroups.com.
To post to this group, send email to loongs...@googlegroups.com.
Visit this group at http://groups.google.com/group/loongson-dev.
For more options, visit https://groups.google.com/d/optout.

Nicolás Reynolds

unread,
Mar 9, 2014, 10:12:29 AM3/9/14
to loongs...@googlegroups.com
Tom Li <bierga...@gmail.com> writes:

> The Webkit is buggy on MIPS, especially on N32 ABI, is a one
> well-known fact for the Loongson community. That's means we can't use
> program and browser which is used Webkit as their engine.

this is what we got so far at parabola. it works on n32 without
optimizations (and the casual segfault, iirc)

https://projects.parabolagnulinux.org/abslibre-mips64el.git/tree/extra/webkitgtk/PKGBUILD

--
http://endefensadelsl.org

Heiher

unread,
Mar 9, 2014, 10:43:12 AM3/9/14
to loongs...@googlegroups.com
Hello,

The WebKitGTK 2.2.4 works well on Arch Linux (n32) just disabled JS JIT.
Source packages:
http://mirror.lemote.com/archls/sources/extra/webkitgtk-2.2.4-1.src.tar.gz
--
Best regards!
Heiher
http://hev.cc

Tom Li

unread,
Mar 9, 2014, 10:00:58 PM3/9/14
to loongs...@googlegroups.com
It seems Loongson 3A related (I saw mfhc1 and MIPS64R2)? I'm talking about Loongson 2F.

Tom Li

unread,
Mar 10, 2014, 12:14:04 AM3/10/14
to loongs...@googlegroups.com, fa...@kiwwwi.com.ar
Now I know, I need not only disable JIT and fastMalloc, but also disable optimizations.

Thanks. I'll test if it work on weekend.

在 2014年3月9日星期日UTC+8下午10时12分29秒,Nicolás Reynolds写道:
Reply all
Reply to author
Forward
0 new messages