Bug 69247 - khtml crashes on assert( m_executingscript==0)
Summary: khtml crashes on assert( m_executingscript==0)
Status: RESOLVED DUPLICATE of bug 68523
Alias: None
Product: konqueror
Classification: Applications
Component: khtml (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-29 00:25 UTC by Grzegorz Jaskiewicz
Modified: 2003-11-29 00:42 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Grzegorz Jaskiewicz 2003-11-29 00:25:35 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources
OS:          Linux

Maybe i am wrong, but if m_executingscript==0 than running reset() in HTMLTokenizer is pointless. This happends on really fast clicking <back> in konqy or pressing ctrl+left. 
If i am right, i will just return at beggin of reset() if m_executingscript==0.


[New Thread 16384 (LWP 14457)]
0x008dabb8 in waitpid () from /lib/libpthread.so.0
#0  0x008dabb8 in waitpid () from /lib/libpthread.so.0
#1  0x00cfdd00 in __JCR_LIST__ () from /opt/kde/lib/libkdecore.so.4
#2  0x00c39748 in KCrash::defaultCrashHandler(int) (sig=6) at kcrash.cpp:246
#3  0x008d97f5 in __pthread_sighandler () from /lib/libpthread.so.0
#4  <signal handler called>
#5  0x0424e561 in kill () from /lib/libc.so.6
#6  0x008d6741 in pthread_kill () from /lib/libpthread.so.0
#7  0x008d6a4b in raise () from /lib/libpthread.so.0
#8  0x0424e314 in raise () from /lib/libc.so.6
#9  0x0424f828 in abort () from /lib/libc.so.6
#10 0x04247a5f in __assert_fail () from /lib/libc.so.6
#11 0x05718a18 in khtml::HTMLTokenizer::reset() (this=0x97537b0)
    at htmltokenizer.cpp:158
#12 0x0571d8d4 in ~HTMLTokenizer (this=0x97537b0) at htmltokenizer.cpp:1593
#13 0x056f0d4c in DOM::DocumentImpl::detach() (this=0x98ff0a8)
    at dom_docimpl.cpp:1046
#14 0x056b1680 in KHTMLPart::clear() (this=0x97d73b0) at khtml_part.cpp:1181
#15 0x056c37b7 in KHTMLPart::restoreState(QDataStream&) (this=0x97d73b0, 
    stream=@0xbff42540) at khtml_part.cpp:4651
#16 0x056dac2a in KHTMLPartBrowserExtension::restoreState(QDataStream&) (
    this=0x9752770, stream=@0xbff42540) at khtml_ext.cpp:91
#17 0x01c16faf in KonqView::go(int) (this=0x95bdd60, steps=-1)
    at konq_view.cc:779
#18 0x01c51e56 in KonqMainWindow::slotGoHistoryDelayed() (this=0x91f0278)
    at konq_mainwindow.cc:2634
#19 0x01c62b1b in KonqMainWindow::qt_invoke(int, QUObject*) (this=0x91f0278, 
    _id=170, _o=0xbff42790) at konq_mainwindow.moc:632
#20 0x0126b22c in QObject::activate_signal(QConnectionList*, QUObject*) ()
   from /usr/local/qt-copy/lib/libqt-mt.so.3
#21 0x01588bda in QSignal::signal(QVariant const&) ()
   from /usr/local/qt-copy/lib/libqt-mt.so.3
#22 0x01284cf6 in QSignal::activate() ()
   from /usr/local/qt-copy/lib/libqt-mt.so.3
#23 0x0128c383 in QSingleShotTimer::event(QEvent*) ()
   from /usr/local/qt-copy/lib/libqt-mt.so.3
#24 0x0120fa6f in QApplication::internalNotify(QObject*, QEvent*) ()
   from /usr/local/qt-copy/lib/libqt-mt.so.3
#25 0x0120f07b in QApplication::notify(QObject*, QEvent*) ()
   from /usr/local/qt-copy/lib/libqt-mt.so.3
#26 0x00baee63 in KApplication::notify(QObject*, QEvent*) (this=0xbff46930, 
    receiver=0x921d968, event=0xbff42b00) at kapplication.cpp:509
#27 0x011ff5d5 in QEventLoop::activateTimers() ()
   from /usr/local/qt-copy/lib/libqt-mt.so.3
#28 0x011bc18d in QEventLoop::processEvents(unsigned) ()
   from /usr/local/qt-copy/lib/libqt-mt.so.3
#29 0x01223248 in QEventLoop::enterLoop() ()
   from /usr/local/qt-copy/lib/libqt-mt.so.3
#30 0x0120fd21 in QApplication::enter_loop() ()
   from /usr/local/qt-copy/lib/libqt-mt.so.3
#31 0x013eb890 in QDialog::exec() () from /usr/local/qt-copy/lib/libqt-mt.so.3
#32 0x00641eff in createKMessageBox (dialog=0x97e1570, icon=Information, 
    text=@0xbff430f0, strlist=@0xbff42ea0, ask=@0xbff42e00, 
    checkboxReturn=0xbff42dff, options=1, details=@0x16baf94)
    at kmessagebox.cpp:284
#33 0x0064281b in KMessageBox::questionYesNoListWId(unsigned long, QString const&, QStringList const&, QString const&, KGuiItem const&, KGuiItem const&, QString const&, int) (parent_id=56666094, text=@0xbff430f0, strlist=@0xbff42ea0, 
    caption=@0xbff430e0, buttonYes=@0xbff430d0, buttonNo=@0xbff43140, 
    dontAskAgainName=@0x16baf94, options=1) at kmessagebox.cpp:412
#34 0x006425ef in KMessageBox::questionYesNoList(QWidget*, QString const&, QStringList const&, QString const&, KGuiItem const&, KGuiItem const&, QString const&, int) (parent=0x97e1378, text=@0xbff430f0, strlist=@0xbff42ea0, 
    caption=@0xbff430e0, buttonYes=@0xbff430d0, buttonNo=@0xbff43140, 
    dontAskAgainName=@0x16baf94, options=1) at kmessagebox.cpp:384
#35 0x00641ffc in KMessageBox::questionYesNo(QWidget*, QString const&, QString const&, KGuiItem const&, KGuiItem const&, QString const&, int) (
    parent=0x97e1378, text=@0xbff430f0, caption=@0xbff430e0, 
    buttonYes=@0xbff430d0, buttonNo=@0xbff43140, dontAskAgainName=@0x16baf94, 
    options=1) at kmessagebox.cpp:299
#36 0x0581176c in KJS::Window::openWindow(KJS::ExecState*, KJS::List const&) (
    this=0x9826608, exec=0xbff439f0, args=@0xbff435d0) at kjs_window.cpp:1158
#37 0x058144d8 in KJS::WindowFunc::tryCall(KJS::ExecState*, KJS::Object&, KJS::List const&) (this=0x954d008, exec=0xbff439f0, thisObj=@0xbff43580, 
    args=@0xbff435d0) at kjs_window.cpp:1352
#38 0x057ca508 in KJS::DOMFunction::call(KJS::ExecState*, KJS::Object&, KJS::List const&) (this=0x954d008, exec=0xbff439f0, thisObj=@0xbff43580, 
    args=@0xbff435d0) at kjs_binding.cpp:109
#39 0x0172f648 in KJS::Object::call(KJS::ExecState*, KJS::Object&, KJS::List const&) (this=0xbff435b0, exec=0xbff439f0, thisObj=@0xbff43580, args=@0xbff435d0)
    at object.cpp:70
#40 0x016f73d4 in KJS::FunctionCallNode::evaluate(KJS::ExecState*) const (
    this=0x97a8570, exec=0xbff439f0) at nodes.cpp:831
#41 0x016fba95 in KJS::AssignExprNode::evaluate(KJS::ExecState*) const (
    this=0x9748c38, exec=0xbff439f0) at nodes.cpp:1710
#42 0x016fbc96 in KJS::VarDeclNode::evaluate(KJS::ExecState*) const (
    this=0x982a8a0, exec=0xbff439f0) at nodes.cpp:1741
#43 0x016fc0b5 in KJS::VarDeclListNode::evaluate(KJS::ExecState*) const (
    this=0x937ca78, exec=0xbff439f0) at nodes.cpp:1799
#44 0x016fc2db in KJS::VarStatementNode::execute(KJS::ExecState*) (
    this=0x9515430, exec=0xbff439f0) at nodes.cpp:1832
#45 0x017030dd in KJS::SourceElementsNode::execute(KJS::ExecState*) (
    this=0x97e1910, exec=0xbff439f0) at nodes.cpp:3029
#46 0x016fc6a6 in KJS::BlockNode::execute(KJS::ExecState*) (this=0x97c7a60, 
    exec=0xbff439f0) at nodes.cpp:1878
#47 0x016fcca3 in KJS::IfNode::execute(KJS::ExecState*) (this=0x9651768, 
    exec=0xbff439f0) at nodes.cpp:1956
#48 0x0170322f in KJS::SourceElementsNode::execute(KJS::ExecState*) (
    this=0x979e170, exec=0xbff439f0) at nodes.cpp:3035
#49 0x016fc6a6 in KJS::BlockNode::execute(KJS::ExecState*) (this=0x974b418, 
    exec=0xbff439f0) at nodes.cpp:1878
#50 0x017024a4 in KJS::FunctionBodyNode::execute(KJS::ExecState*) (
    this=0x974b418, exec=0xbff439f0) at nodes.cpp:2881
#51 0x016f1d36 in KJS::InterpreterImp::evaluate(KJS::UString const&, KJS::Value const&) (this=0x97d3260, code=@0xbff43b20, thisV=@0xbff43b40)
    at internal.cpp:892
#52 0x017316de in KJS::Interpreter::evaluate(KJS::UString const&, KJS::Value const&) (this=0x97aef48, code=@0xbff43b20, thisV=@0xbff43b40)
    at interpreter.cpp:166
#53 0x05823f95 in KJSProxyImpl::evaluate(QString, int, QString const&, DOM::Node const&, KJS::Completion*) (this=0x97d70b8, filename=
      {static null = {static null = <same as static member of an already seen type>, d = 0x9168070, static shared_null = 0x9168070}, d = 0x938b9b0, static shared_null = 0x9168070}, baseLine=1, str=@0xbff43cf0, n=@0xbff43c90, 
    completion=0xbff43c10) at kjs_proxy.cpp:148
#54 0x056b07e4 in KHTMLPart::executeScript(QString const&, int, DOM::Node const&, QString const&) (this=0x97d73b0, filename=@0xbff43ca0, baseLine=1, 
    n=@0xbff43c90, script=@0xbff43cf0) at khtml_part.cpp:962
#55 0x05719c60 in khtml::HTMLTokenizer::scriptExecution(QString const&, QString const&, int) (this=0x97537b0, str=@0xbff43cf0, scriptURL=@0xbff43d00, 
    baseLine=0) at htmltokenizer.cpp:437
#56 0x0571dbe0 in khtml::HTMLTokenizer::notifyFinished(khtml::CachedObject*) (
    this=0x97537b0) at htmltokenizer.cpp:1636
#57 0x057bf882 in khtml::CachedScript::ref(khtml::CachedObjectClient*) (
    this=0x97d3de8, c=0x97537d8) at loader.cpp:301
#58 0x057198a6 in khtml::HTMLTokenizer::scriptHandler() (this=0x97537b0)
    at htmltokenizer.cpp:395
#59 0x057192d2 in khtml::HTMLTokenizer::parseSpecial(khtml::DOMStringIt&) (
    this=0x97537b0, src=@0x97538c4) at htmltokenizer.cpp:324
#60 0x0571c0bc in khtml::HTMLTokenizer::parseTag(khtml::DOMStringIt&) (
    this=0x97537b0, src=@0x97538c4) at htmltokenizer.cpp:1104
#61 0x0571c9ff in khtml::HTMLTokenizer::write(QString const&, bool) (
    this=0x97537b0, str=@0xbff43fd0, appendData=true) at htmltokenizer.cpp:1344
#62 0x056b409c in KHTMLPart::write(char const*, int) (this=0x97d73b0, 
    str=0xbff44200 "<script src=\"/popup_DEFAULT_006.js\" DEFER></script>\n<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\r\n<html>\r\n<head>\r\n<title>Foto Galeria by lorthin - Impreza u Mikiego</title>\r\n<link r"..., 
    len=8192) at khtml_part.cpp:1716
#63 0x056b2dde in KHTMLPart::slotRestoreData(QMemArray<char> const&) (
    this=0x97d73b0, data=@0xbff441f0) at khtml_part.cpp:1424
#64 0x056ca441 in KHTMLPart::qt_invoke(int, QUObject*) (this=0x97d73b0, 
    _id=18, _o=0xbff44180) at khtml_part.moc:471
#65 0x0126b22c in QObject::activate_signal(QConnectionList*, QUObject*) ()
   from /usr/local/qt-copy/lib/libqt-mt.so.3
#66 0x056e25e5 in KHTMLPageCacheDelivery::emitData(QMemArray<char> const&) (
    this=0x9771fa8, t0=@0xbff441f0) at khtml_pagecache.moc:177
#67 0x056e1f1e in KHTMLPageCache::sendData() (this=0x93ba390)
    at khtml_pagecache.cpp:264
#68 0x056e2341 in KHTMLPageCache::qt_invoke(int, QUObject*) (this=0x93ba390, 
    _id=2, _o=0xbff462b0) at khtml_pagecache.moc:82
#69 0x0126b22c in QObject::activate_signal(QConnectionList*, QUObject*) ()
   from /usr/local/qt-copy/lib/libqt-mt.so.3
#70 0x01588bda in QSignal::signal(QVariant const&) ()
   from /usr/local/qt-copy/lib/libqt-mt.so.3
#71 0x01284cf6 in QSignal::activate() ()
   from /usr/local/qt-copy/lib/libqt-mt.so.3
#72 0x0128c383 in QSingleShotTimer::event(QEvent*) ()
   from /usr/local/qt-copy/lib/libqt-mt.so.3
#73 0x0120fa6f in QApplication::internalNotify(QObject*, QEvent*) ()
   from /usr/local/qt-copy/lib/libqt-mt.so.3
#74 0x0120f07b in QApplication::notify(QObject*, QEvent*) ()
   from /usr/local/qt-copy/lib/libqt-mt.so.3
#75 0x00baee63 in KApplication::notify(QObject*, QEvent*) (this=0xbff46930, 
    receiver=0x9226210, event=0xbff46620) at kapplication.cpp:509
#76 0x011ff5d5 in QEventLoop::activateTimers() ()
   from /usr/local/qt-copy/lib/libqt-mt.so.3
#77 0x011bc18d in QEventLoop::processEvents(unsigned) ()
   from /usr/local/qt-copy/lib/libqt-mt.so.3
#78 0x01223248 in QEventLoop::enterLoop() ()
   from /usr/local/qt-copy/lib/libqt-mt.so.3
#79 0x012230f8 in QEventLoop::exec() ()
   from /usr/local/qt-copy/lib/libqt-mt.so.3
#80 0x0120fcc1 in QApplication::exec() ()
   from /usr/local/qt-copy/lib/libqt-mt.so.3
#81 0x01c06470 in kdemain (argc=2, argv=0x9172428) at konq_main.cc:177
#82 0x00ad3948 in kdeinitmain (argc=2, argv=0x9172428) at konqueror_dummy.cc:2
#83 0x0804e393 in launch (argc=2, _name=0x91706c4 "konqueror", 
    args=0x91706d8 "", cwd=0x0, envc=0, envs=0x91706dc "", reset_env=false, 
    tty=0x0, avoid_loops=false, startup_id_str=0x8052fa7 "0") at kinit.cpp:604
#84 0x0804f69e in handle_launcher_request (sock=8) at kinit.cpp:1167
#85 0x0804fd5f in handle_requests (waitForPid=0) at kinit.cpp:1360
#86 0x0805135d in main (argc=3, argv=0xbff46fa4, envp=0xbff46fb4)
    at kinit.cpp:1797
Comment 1 Stephan Kulow 2003-11-29 00:42:35 UTC

*** This bug has been marked as a duplicate of 68523 ***