Bug#599199: enormous ram usage on single website (javascript related)

chrysn chrysn at fsfe.org
Tue Oct 5 06:41:40 UTC 2010


Package: epiphany-browser
Version: 2.30.6-1
Severity: important

when loading the website at [1], epiphany becomes unresponsive and
slowly starts eating memory until it is killed by the oom killer or an
impatient user.

[1] http://inspiredeconomist.com/2010/10/02/frito-lay-to-pull-compostable-packaging-for-now/#disqus_thread

opening the same website in the libwebkit reference browser
/usr/lib/webkit-1.0-2/libexec/GtkLauncher works without problems.

i've run epiphany several times in gdb, and when i killed it in the
memory-eating phase, it always ended up somewhere in javascript code, so
i suppose that the site somehow escapes the limits on cpu and/or ram
usage imposed on javascript (there are such limits, right?).

below is a typical backtrace:

Program received signal SIGTERM, Terminated.
memcpy () at ../sysdeps/x86_64/memcpy.S:502
502	../sysdeps/x86_64/memcpy.S: No such file or directory.
	in ../sysdeps/x86_64/memcpy.S
(gdb) bt
#0  memcpy () at ../sysdeps/x86_64/memcpy.S:502
#1  0x00007ffff52f3be1 in WTF::Vector<unsigned short, 64ul>::tryExpandCapacity(unsigned long) ()
   from /usr/lib/libwebkit-1.0.so.2
#2  0x00007ffff52f3cb6 in bool WTF::Vector<unsigned short, 64ul>::tryAppend<unsigned short>(unsigned short const*, unsigned long) () from /usr/lib/libwebkit-1.0.so.2
#3  0x00007ffff52ee9ea in append (exec=0x7fffd41d3398, thisValue=..., args=<value optimized out>)
    at ../JavaScriptCore/runtime/JSStringBuilder.h:68
#4  JSC::arrayProtoFuncJoin (exec=0x7fffd41d3398, thisValue=..., args=<value optimized out>)
    at ../JavaScriptCore/runtime/ArrayPrototype.cpp:281
#5  0x00007fffd45d31b4 in ?? ()
#6  0x00007fffd41d3350 in ?? ()
#7  0x0000000000000001 in ?? ()
#8  0x0000000000000000 in ?? ()
(gdb) quit



-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.34-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages epiphany-browser depends on:
ii  dbus-x11                    1.2.24-3     simple interprocess messaging syst
ii  epiphany-browser-data       2.30.6-1     Data files for the GNOME web brows
ii  gnome-icon-theme            2.30.3-1     GNOME Desktop icon theme
ii  iso-codes                   3.21-1       ISO language, territory, currency,
ii  libavahi-client3            0.6.27-2     Avahi client library
ii  libavahi-common3            0.6.27-2     Avahi common library
ii  libavahi-gobject0           0.6.27-2     Avahi GObject library
ii  libc6                       2.11.2-6     Embedded GNU C Library: Shared lib
ii  libcairo2                   1.8.10-6     The Cairo 2D vector graphics libra
ii  libdbus-1-3                 1.2.24-3     simple interprocess messaging syst
ii  libdbus-glib-1-2            0.88-2       simple interprocess messaging syst
ii  libgconf2-4                 2.28.1-4     GNOME configuration database syste
ii  libgirepository1.0-0        0.6.14-1+b1  Library for handling GObject intro
ii  libglib2.0-0                2.24.2-1     The GLib library of C routines
ii  libgnome-keyring0           2.30.1-1     GNOME keyring services library
ii  libgtk2.0-0                 2.20.1-1+b1  The GTK+ graphical user interface 
ii  libice6                     2:1.0.6-1    X11 Inter-Client Exchange library
ii  libnotify1 [libnotify1-gtk2 0.5.0-2      sends desktop notifications to a n
ii  libnspr4-0d                 4.8.6-1      NetScape Portable Runtime Library
ii  libnss3-1d                  3.12.7-1     Network Security Service libraries
ii  libpango1.0-0               1.28.1-1     Layout and rendering of internatio
ii  libseed0                    2.30.0-1+b1  GObject JavaScript bindings for th
ii  libsm6                      2:1.1.1-1    X11 Session Management library
ii  libsoup-gnome2.4-1          2.30.2-1     an HTTP library implementation in 
ii  libsoup2.4-1                2.30.2-1     an HTTP library implementation in 
ii  libwebkit-1.0-2             1.2.4-1+b1   Web content engine library for Gtk
ii  libx11-6                    2:1.3.3-3    X11 client-side library
ii  libxml2                     2.7.7.dfsg-4 GNOME XML library
ii  libxslt1.1                  1.1.26-6     XSLT 1.0 processing library - runt

Versions of packages epiphany-browser recommends:
ii  ca-certificates          20090814+nmu2   Common CA certificates
ii  evince                   2.30.3-1        Document (postscript, pdf) viewer
ii  yelp                     2.30.1+webkit-1 Help browser for GNOME

Versions of packages epiphany-browser suggests:
ii  epiphany-extensions           2.30.2-1   Extensions for Epiphany web browse

-- no debconf information

-- 
To use raw power is to make yourself infinitely vulnerable to greater powers.
  -- Bene Gesserit axiom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-gnome-maintainers/attachments/20101005/dbfb32d4/attachment.pgp>


More information about the pkg-gnome-maintainers mailing list