Ticket #943 (closed defect: worksforme)

Opened 9 years ago

Last modified 8 years ago

openmoko-browser2 segfaults when trying to open an url

Reported by: cm@… Owned by: zecke
Priority: high Milestone:
Component: openmoko-webbrowser Version: 2007.2
Severity: normal Keywords:
Cc: buglog@… Blocked By:
Blocking: Estimated Completion (week):
HasPatchForReview: no PatchReviewResult:
Reproducible:

Description

Starting the latest openmoko-browser2, typing in www.google.com and pressing
Open URL in new window results in crash. Says:

openmoko-browser2: symbol lookup error: openmoko-browser2 undefined symbol:
webkit_gtk_frame_get_title

This is with a rootfs built Oct 16 with the MokoMakefile?, no modifications.

Change History

comment:1 Changed 9 years ago by cm@…

That crash was fixed by the last rebuild yesterday, and now some pages load.
Some crashes the browser with a free() error, for example www.wikipedia.com

comment:2 Changed 9 years ago by mickey@…

  • Owner changed from buglog@… to zecke@…

comment:3 Changed 9 years ago by freyther@…

-API/ABI was changed upstream and you only have an updated webkit-gtk. This explains the issue with
the missing symbol.
-Regarding the free on wikipedia.com. It would be appreciated to get your version of the browser and
webkitgtk.

comment:4 Changed 9 years ago by cm@…

root@fic-gta01:~$ ipkg info openmoko-browser2
Package: openmoko-browser2
Version: 0.0.1+svnr3082-r0
Depends: libmokoui2-0 (>= 0.1.0+svnr3111), libxext6 (>= 1.0.3), libxrender1 (>=
0.9.2), libx11-6 (>= 1.1.2), libxau6 (>= 1.0.3), libxdmcp6 (>= 1.0.2),
libwebkitgtk1 (>= 0.0+svnr26079), libicui18n36 (>= 3.6), libicuuc36 (>= 3.6),
libicudata36 (>= 3.6), libjpeg62 (>= 6b), libpng12-0 (>= 1.2.20), libsqlite3-0
(>= 3.4.1), gtk+ (>= 2.10.14), libxinerama1 (>= 1.0.2), libxrandr2 (>= 1.2.1),
libxcursor1 (>= 1.1.8), libxfixes3 (>= 4.0.3), libatk-1.0-0 (>= 1.10.3), pango
(>= 1.16.4), libcairo2 (>= 1.4.10), libfontconfig1 (>= 2.4.1), libfreetype6 (>=
2.3.4), libexpat1 (>= 2.0.0), libglib-2.0-0 (>= 2.12.12), libcurl4 (>= 7.16.4),
libidn (>= 0.5.19), libgnutls13 (>= 1.6.3), libgcrypt11 (>= 1.2.3), libc6 (>=
2.5), libgpg-error0 (>= 1.4), libxslt (>= 1.1.21), libxml2 (>= 2.6.29), libz1
(>= 1.2.3)
Status: install ok installed
Section: openmoko/apps
Architecture: armv4t
Maintainer: Angstrom Developers <angstrom-distro-devel@…>
MD5Sum: 2825f95026f63f62fe36ec04b56836f6
Filename: openmoko-browser2_0.0.1+svnr3082-r0_armv4t.ipk
Source:
svn://svn.openmoko.org/trunk/src/target/OM-2007.2/applications;module=openmoko-browser2;proto=http
Description: The OpenMoko? Webbrowser

Can't figure out which version of webkit-gtk I have, but it's built at the same
time as the browser. I'm rebuilding now and I'll see if I can reproduce it when
I get home from work. If not, I'll try to upgrade.

comment:5 Changed 9 years ago by freyther@…

libwebkitgtk1 is the package I'm interested in.

comment:6 Changed 9 years ago by cm@…

Oh, sorry I couldn't figure that out, seeing that it is one of the dependencies
listed for openmoko-browser2. Anyway, here it is:

root@fic-gta01:~$ ipkg info libwebkitgtk1
Package: libwebkitgtk1
Version: 0.0+svnr26079-r1
Depends: libicui18n36 (>= 3.6), libicuuc36 (>= 3.6), libicudata36 (>= 3.6),
libjpeg62 (>= 6b), libpng12-0 (>= 1.2.20), libsqlite3-0 (>= 3.4.1), libfreetype6
(>= 2.3.4), libfontconfig1 (>= 2.4.1), gtk+ (>= 2.10.14), libatk-1.0-0 (>=
1.10.3), pango (>= 1.16.4), libcairo2 (>= 1.4.10), libglib-2.0-0 (>= 2.12.12),
libc6 (>= 2.5), libcurl4 (>= 7.16.4), libxslt (>= 1.1.21), libz1 (>= 1.2.3),
libxml2 (>= 2.6.29), libstdc++6 (>= 4.1.2), libgcc1 (>= 4.1.2)
Status: install ok installed
Section: base
Architecture: armv4t
Maintainer: Angstrom Developers <angstrom-distro-devel@…>
MD5Sum: fc034d70dcade211ee1ab8658103e5fb
Filename: libwebkitgtk1_0.0+svnr26079-r1_armv4t.ipk
Source:
svn://svn.webkit.org/repository/webkit/trunk/;module=JavaScriptCore;proto=http
svn://svn.webkit.org/repository/webkit/trunk/;module=JavaScriptGlue;proto=http
svn://svn.webkit.org/repository/webkit/trunk/;module=WebCore;proto=http;name=webcore
svn://svn.webkit.org/repository/webkit/trunk/;module=WebKit;proto=http;name=webkit
svn://svn.webkit.org/repository/webkit/trunk/;module=WebKitLibraries;proto=http
svn://svn.webkit.org/repository/webkit/trunk/;module=WebKitTools;proto=http
file://Makefile file://Makefile.shared file://WebKit.pri file://WebKit.pro
Description: Version 0.0+svnr26079-r1 of package webkit-gtk

I tried to browse wikipedia.com and it still fails with a free(): invalid next
size (fast): 0x004e7f78 *

I'm at home and if you want me to try anything just let me know.

comment:7 Changed 9 years ago by mickey@…

Is this still a problem?

comment:8 Changed 9 years ago by cm@…

Running flashed rootfs from the 19th of October, updated with ipkg today, it
still segfaults on wikipedia.org.

The error message is different now though, says:
* glibc detected * openmoko-browser2: double free or corruption (!prev):
0x00464920 *
Aborted

All other pages I've tried work though, and wikipedia.org doesn't crash other
webkit based browsers I've tried.

comment:9 Changed 9 years ago by freyther@…

Two things:

The initial problem is due running openmoko-browser2 against a too young WebKit/Gtk?+. And as
WebKit/Gtk?+'s API is not stable yet there is not much one can do. So the initial problem is solved by
rebuilding the openmoko-browser, feedreader2 and other applications using WebKit/Gtk?+

Follow up:

I do think that we still have incompatibilities between the lib and the application anyway I will have to find
some time to look into it.

comment:10 Changed 9 years ago by nod_huang@…

  • Owner changed from zecke@… to michael@…

comment:11 Changed 9 years ago by freyther@…

  • Owner changed from michael@… to zecke@…

comment:12 Changed 9 years ago by roh

  • Owner changed from zecke@… to zecke

comment:13 Changed 8 years ago by john_lee

  • Status changed from new to closed
  • HasPatchForReview unset
  • Resolution set to worksforme

it works now.

Note: See TracTickets for help on using tickets.