Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 30999 - Konqueror (3.1.4) crasches on most sites with javascript.
Summary: Konqueror (3.1.4) crasches on most sites with javascript.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: PPC Linux
: High critical (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-12 16:07 UTC by Ernst Sjöstrand
Modified: 2004-03-16 05:21 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ernst Sjöstrand 2003-10-12 16:07:21 UTC
There are a few different cases.
1. With Javascript turned off Konqueror doesn't crash on for example osnews.com
but does on slashdot and freshmeat.
2. With Javascript turned on Konqueror crashes on most sites with Javascript,
like slashdot, shows a "Javascript has locked Konqueror" on osnews and works
fine on macnytt.se.

If I kill konqueror with kde's crtl-alt-esc when it's showing the dialog, it
really dies.
If I kill konqueror with kde's crtl-alt-esc when it has really crashed, the
process keeps running taking 100% cpu time.

It seems like the "Javascipt off" crash happens when Konqueror is parsing the
page, it has only had time to display 11kb/s in the status bar.
With javascript on it crashes a few moments later, about the time when the
background has been painted.

There's nothing random about the crashes, they happen in exactly the same way on
the different pages, and I've run into these crashes on really many pages.

I think this stated happening when I upgraded to KDE 3.1.4, but I upgraded other
things at that time to. I removed my /usr/kde direcory and did "emerge arts
kdelibs kdebase" and it still happens. When I upgraded to KDE 3.1.4 I also had a
3.2 alpha 1 installed, but I removed that a long time ago.

KHTML uses libpcre to parse pages, right? Maybe something there...

Reproducible: Always
Steps to Reproduce:
Comment 1 Ernst Sjöstrand 2003-10-12 16:12:11 UTC
Forgot the info.

emerge info
Portage 2.0.49-r12 (default-ppc-1.4, gcc-3.3.1, glibc-2.3.2-r6, 2.6.0-test6-mm3)
=================================================================
System uname: 2.6.0-test6-mm3 ppc 
Gentoo Base System version 1.4.3.10p1
ACCEPT_KEYWORDS="ppc ~ppc"
AUTOCLEAN="yes"
CFLAGS="-O3 -pipe -mcpu=750 -mpowerpc-gfxopt"
CHOST="powerpc-unknown-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config
/usr/X11R6/lib/X11/icons/default /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O3 -pipe -mcpu=750 -mpowerpc-gfxopt"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache"
GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/ http://ds.thn.htu.se/linux/gentoo
http://gentoo.linux.no/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/
http://ftp.snt.utwente.nl/pub/os/linux/gentoo"
MAKEOPTS=""
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync9.de.gentoo.org/gentoo-portage"
USE="oss dvd jpeg nls mitshm gif mozilla png ppc foomaticdb gdbm berkdb slang
readline tetex tcltk X sdl gpm tcpd pam libwww ssl perl python esd imlib
oggvorbis gtk qt kde opengl alsa arts cups truetype -motif usb java gtk2
zlib imap xv spell nptl nsplugins quicktime fbcon directfb -gnome artswrappersuid
-mad applypatches"
Comment 2 Paul de Vrieze (RETIRED) gentoo-dev 2003-10-13 00:26:24 UTC
No, it doesn't use libpcre to parse pages. libpcre is used for regexp support
in javascript. Further I don't have any problems with respect to the named
websites. So probably something is wrong with your installation. What could
be a problem is kde extensions installed in /usr, although that shouldn't
happen. One thing, are you by any chance using the mozilla rendering mode
for konqueror? In the past that has been unstable.
Comment 3 Ernst Sjöstrand 2003-10-13 15:31:29 UTC
>So probably something is wrong with your installation. 

You don't think it's a bug in some package? I would guess that it has something
to do with me running nptl, gcc 3.3.1 and glibc 2.3.2-r5. But some day all
ppc users will run that too...

No kdebindings. Moved /usr/lib/libk* and /usr/lib/kde3/ to temp, no change.
Comment 4 Caleb Tennis (RETIRED) gentoo-dev 2003-10-16 11:14:18 UTC
When it crashes, does it give a backtrace?  Can you dump core and run it
under gdb and see where the problem lies.

This doesn't pose a problem for me, so it sounds like it's an issue with
some other part of your system.  The 2.6 kernel is a place to start...can
you book with 2.4 and see how that works?
Comment 5 Ernst Sjöstrand 2003-10-20 12:36:02 UTC
>When it crashes, does it give a backtrace?  Can you dump core and run it
>under gdb and see where the problem lies.
No backtrace, there's no debugging symbols anywhere.
But if I run it in gdb and kill it when it has crashed (this is on slashdot)
it gives this clue:

Program received signal SIGTERM, Terminated.
[Switching to Thread 805557792 (LWP 4587)]
0x0df04dfc in KHTMLPart::requestFrame(khtml::RenderPart*, QString const&,
QString const&, QStringList const&, bool) () from /usr/kde/3.1/lib/libkhtml.so.4

>This doesn't pose a problem for me, so it sounds like it's an issue with
>some other part of your system.  The 2.6 kernel is a place to start...can
>you book with 2.4 and see how that works?

No, since I'm running NPTL I can only start with the 2.6 kernel.
I could recompile glibc of cource...
Comment 6 David Cozatt 2003-12-12 10:20:05 UTC
 OK :(  Believe this is related: hotmail won't work if javascript is turned off, so posting to this one. Also hotmail site (scripts as well?) has changed.

 Have recently experienced problems with konqueror crashing while deleting mail from my hotmail account. If I delete several emails it just crashes. Worked fine before upgrading latest qt version.
qt-3.2.3  

\ This is "stable" mostly install. In other words only a couple things are "~x86". Elvis and orsa are about all that isn't.

Did a backtrace after 2nd time this happened. Seems to happen after 2nd cookie.
"your data is about to be sent blah blah" push the send button 2nd time. At
this point I have no mail open just a list of mails and several buttons pushed
on the page to delete them. Crashes every time:
(no debugging symbols found)...[New Thread 16384 (LWP 26433)]
0x40f60137 in waitpid ()
   from /lib/libpthread.so.0
#0  0x40f60137 in waitpid () from /lib/libpthread.so.0
#1  0x40634cce in KCrash::defaultCrashHandler(int) ()
   from /usr/kde/3.1/lib/libkdecore.so.4
#2  0x40f5efea in __pthread_sighandler () from /lib/libpthread.so.0
#3  <signal handler called>
#4  0x441c010a in KJS::ObjectImp::setScope(KJS::List const&) ()
   from /usr/kde/3.1/lib/libkjs.so.1
#5  0x441befc9 in KJS::Object::setScope(KJS::List const&) ()
   from /usr/kde/3.1/lib/libkjs.so.1
#6  0x440b5c74 in KJS::JSEventListener::handleEvent(DOM::Event&) ()
   from /usr/kde/3.1/lib/libkhtml.so.4
#7  0x43fc460c in DOM::NodeImpl::handleLocalEvents(DOM::EventImpl*, bool) ()
   from /usr/kde/3.1/lib/libkhtml.so.4
#8  0x43fc3cfb in DOM::NodeImpl::dispatchGenericEvent(DOM::EventImpl*, int&) ()
   from /usr/kde/3.1/lib/libkhtml.so.4
#9  0x43fc3aaa in DOM::NodeImpl::dispatchEvent(DOM::EventImpl*, int&, bool) ()
   from /usr/kde/3.1/lib/libkhtml.so.4
#10 0x43f80bd8 in KHTMLView::dispatchMouseEvent(int, DOM::NodeImpl*, bool, int, QMouseEvent*, bool, int) () from /usr/kde/3.1/lib/libkhtml.so.4
#11 0x43f7d850 in KHTMLView::viewportMouseReleaseEvent(QMouseEvent*) ()
   from /usr/kde/3.1/lib/libkhtml.so.4
#12 0x40adc857 in QScrollView::setEnabled(bool) ()
   from /usr/qt/3/lib/libqt-mt.so.3
#13 0x409cd6fe in QObject::~QObject() () from /usr/qt/3/lib/libqt-mt.so.3
#14 0x409cd621 in QObject::~QObject() () from /usr/qt/3/lib/libqt-mt.so.3
#15 0x40a042fc in QWidget::close(bool) () from /usr/qt/3/lib/libqt-mt.so.3
#16 0x40974e85 in QApplication::notify(QObject*, QEvent*) ()
   from /usr/qt/3/lib/libqt-mt.so.3
#17 0x40974368 in QApplication::setFont(QFont const&, bool, char const*) ()
   from /usr/qt/3/lib/libqt-mt.so.3
#18 0x405b92b9 in KApplication::notify(QObject*, QEvent*) ()
   from /usr/kde/3.1/lib/libkdecore.so.4
#19 0x4090e048 in QETWidget::translateMouseEvent(_XEvent const*) ()
   from /usr/qt/3/lib/libqt-mt.so.3
#20 0x4090b6e9 in QApplication::x11ProcessEvent(_XEvent*) ()
   from /usr/qt/3/lib/libqt-mt.so.3
#21 0x40922637 in QFont::initialize() () from /usr/qt/3/lib/libqt-mt.so.3
#22 0x40988046 in QEvent::~QEvent() () from /usr/qt/3/lib/libqt-mt.so.3
#23 0x40987ee8 in QTabletEvent::QTabletEvent(QEvent::Type, QPoint const&, QPoint const&, int, int, int, int, QPair<int, int> const&) ()
   from /usr/qt/3/lib/libqt-mt.so.3
#24 0x409750d1 in QApplication::notify(QObject*, QEvent*) ()
   from /usr/qt/3/lib/libqt-mt.so.3
#25 0x4146a197 in main () from /usr/kde/3.1/lib/konqueror.so
#26 0x0804d02c in strcpy ()
#27 0x0804e008 in strcpy ()
#28 0x0804e4dc in strcpy ()
#29 0x0804f4e0 in kdeinit_x_errhandler ()
#30 0x410b590c in __libc_start_main () from /lib/libc.so.6

If I only delete them singly I got through a few before it crashed again.
Slightly different output so backtrace included:
(no debugging symbols found)...[New Thread 16384 (LWP 18271)]
0x40f60137 in waitpid ()
   from /lib/libpthread.so.0
#0  0x40f60137 in waitpid () from /lib/libpthread.so.0
#1  0x40634cce in KCrash::defaultCrashHandler(int) ()
   from /usr/kde/3.1/lib/libkdecore.so.4
#2  0x40f5efea in __pthread_sighandler () from /lib/libpthread.so.0
#3  <signal handler called>
#4  0x441c010a in KJS::ObjectImp::setScope(KJS::List const&) ()
   from /usr/kde/3.1/lib/libkjs.so.1
#5  0x441befc9 in KJS::Object::setScope(KJS::List const&) ()
   from /usr/kde/3.1/lib/libkjs.so.1
#6  0x440b5c74 in KJS::JSEventListener::handleEvent(DOM::Event&) ()
   from /usr/kde/3.1/lib/libkhtml.so.4
#7  0x43fc460c in DOM::NodeImpl::handleLocalEvents(DOM::EventImpl*, bool) ()
   from /usr/kde/3.1/lib/libkhtml.so.4
#8  0x43fc3cfb in DOM::NodeImpl::dispatchGenericEvent(DOM::EventImpl*, int&) ()
   from /usr/kde/3.1/lib/libkhtml.so.4
#9  0x43fc3aaa in DOM::NodeImpl::dispatchEvent(DOM::EventImpl*, int&, bool) ()
   from /usr/kde/3.1/lib/libkhtml.so.4
#10 0x43f80bd8 in KHTMLView::dispatchMouseEvent(int, DOM::NodeImpl*, bool, int, QMouseEvent*, bool, int) () from /usr/kde/3.1/lib/libkhtml.so.4
#11 0x43f7d850 in KHTMLView::viewportMouseReleaseEvent(QMouseEvent*) ()
   from /usr/kde/3.1/lib/libkhtml.so.4
#12 0x40adcdd7 in QScrollView::eventFilter(QObject*, QEvent*) ()
   from /usr/qt/3/lib/libqt-mt.so.3
#13 0x409cdd2e in QObject::activate_filters(QEvent*) ()
   from /usr/qt/3/lib/libqt-mt.so.3
#14 0x409cdc51 in QObject::event(QEvent*) () from /usr/qt/3/lib/libqt-mt.so.3
#15 0x40a0492c in QWidget::event(QEvent*) () from /usr/qt/3/lib/libqt-mt.so.3
#16 0x409753a5 in QApplication::internalNotify(QObject*, QEvent*) ()
   from /usr/qt/3/lib/libqt-mt.so.3
#17 0x40974888 in QApplication::notify(QObject*, QEvent*) ()
   from /usr/qt/3/lib/libqt-mt.so.3
#18 0x405b92b9 in KApplication::notify(QObject*, QEvent*) ()
   from /usr/kde/3.1/lib/libkdecore.so.4
#19 0x4090ddb8 in QETWidget::translateMouseEvent(_XEvent const*) ()
   from /usr/qt/3/lib/libqt-mt.so.3
#20 0x4090b549 in QApplication::x11ProcessEvent(_XEvent*) ()
   from /usr/qt/3/lib/libqt-mt.so.3
#21 0x40921e77 in QEventLoop::processEvents(unsigned) ()
   from /usr/qt/3/lib/libqt-mt.so.3
#22 0x40988606 in QEventLoop::enterLoop() () from /usr/qt/3/lib/libqt-mt.so.3
#23 0x409884a8 in QEventLoop::exec() () from /usr/qt/3/lib/libqt-mt.so.3
#24 0x409755f1 in QApplication::exec() () from /usr/qt/3/lib/libqt-mt.so.3
#25 0x4146a197 in main () from /usr/kde/3.1/lib/konqueror.so
#26 0x0804d02c in strcpy ()
#27 0x0804e008 in strcpy ()
#28 0x0804e4dc in strcpy ()
#29 0x0804f4e0 in kdeinit_x_errhandler ()
#30 0x410b590c in __libc_start_main () from /lib/libc.so.6

If this is just noise to this thread I'll create a new bug instead, kernel is:
2.4.23_pre8-gss Will post emerge info if requested.
Comment 7 Caleb Tennis (RETIRED) gentoo-dev 2004-03-16 05:21:31 UTC
Major improvements in kde 3.2.1.  If you still ahve problems with specific sites, please report it directly to bugs.kde.org.