Bug 137676

Summary: Crashes on Javascript redirect to microsoft.com
Product: [Applications] konqueror Reporter: Allen <acisapunkster>
Component: generalAssignee: Konqueror Developers <konq-bugs>
Status: RESOLVED DUPLICATE    
Severity: crash    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Slackware   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Allen 2006-11-21 17:41:51 UTC
Version:           3.5.4 (using KDE KDE 3.5.4)
Installed from:    Slackware Packages
Compiler:          3.4.6 
OS:                Linux

This is the Javascript code:
[code]
<html>
  <head>
    <title></title>
    <meta content="">
    <style></style>
    <script type="text/javascript">
{document.write("You are using " + navigator.appName)}
function detectbrowser()
{
var browser=navigator.appName
if (browser=="Microsoft Internet Explorer"||browser=="Netscape"||browser=="Konqueror")
  {window.location = "http://www.microsoft.com"}
}
  </script>
  </head>
  <body onload="detectbrowser()"></body>
</html>
[/code]

When Konqueror opens a page with this code, it just crashes.

Here's the backtrace:
[code]
(no debugging symbols found)
Using host libthread_db library "/lib/tls/libthread_db.so.1".
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread -1232197952 (LWP 20356)]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[KCrash handler]
#5  0xb622aba2 in QPtrVector<khtml::RenderLayer>::deleteItem ()
   from /opt/kde/lib/libkhtml.so.4
#6  0xb622b0d8 in QPtrVector<khtml::RenderLayer>::deleteItem ()
   from /opt/kde/lib/libkhtml.so.4
#7  0xb622b89f in QPtrVector<khtml::RenderLayer>::deleteItem ()
   from /opt/kde/lib/libkhtml.so.4
#8  0xb61f7768 in QMemArray<khtml::BidiIterator>::detach ()
   from /opt/kde/lib/libkhtml.so.4
#9  0xb622a575 in QPtrVector<khtml::RenderLayer>::deleteItem ()
   from /opt/kde/lib/libkhtml.so.4
#10 0xb62094c8 in QValueVectorPrivate<QPoint>::reserve ()
   from /opt/kde/lib/libkhtml.so.4
#11 0xb62094b8 in QValueVectorPrivate<QPoint>::reserve ()
   from /opt/kde/lib/libkhtml.so.4
#12 0xb62094b8 in QValueVectorPrivate<QPoint>::reserve ()
   from /opt/kde/lib/libkhtml.so.4
#13 0xb62094b8 in QValueVectorPrivate<QPoint>::reserve ()
   from /opt/kde/lib/libkhtml.so.4
#14 0xb62094b8 in QValueVectorPrivate<QPoint>::reserve ()
   from /opt/kde/lib/libkhtml.so.4
#15 0xb62094b8 in QValueVectorPrivate<QPoint>::reserve ()
   from /opt/kde/lib/libkhtml.so.4
#16 0xb62094b8 in QValueVectorPrivate<QPoint>::reserve ()
   from /opt/kde/lib/libkhtml.so.4
#17 0xb62094b8 in QValueVectorPrivate<QPoint>::reserve ()
   from /opt/kde/lib/libkhtml.so.4
#18 0xb62094b8 in QValueVectorPrivate<QPoint>::reserve ()
   from /opt/kde/lib/libkhtml.so.4
#19 0xb62094b8 in QValueVectorPrivate<QPoint>::reserve ()
   from /opt/kde/lib/libkhtml.so.4
#20 0xb62094b8 in QValueVectorPrivate<QPoint>::reserve ()
   from /opt/kde/lib/libkhtml.so.4
#21 0xb62094b8 in QValueVectorPrivate<QPoint>::reserve ()
   from /opt/kde/lib/libkhtml.so.4
#22 0xb624b285 in non-virtual thunk to khtml::RenderSelect::~RenderSelect() ()
   from /opt/kde/lib/libkhtml.so.4
#23 0x082b5e68 in ?? ()
#24 0x00000001 in ?? ()
#25 0x00000001 in ?? ()
#26 0xb62c69a0 in DOMNodeConstants::~DOMNodeConstants ()
   from /opt/kde/lib/libkhtml.so.4
#27 0xb6124009 in KHTMLView::layout () from /opt/kde/lib/libkhtml.so.4
#28 0xb6188750 in DOM::ElementMappingCache::remove ()
   from /opt/kde/lib/libkhtml.so.4
#29 0xb62b619b in QPtrDict<void>::count () from /opt/kde/lib/libkhtml.so.4
#30 0xb62b7745 in QPtrDict<void>::count () from /opt/kde/lib/libkhtml.so.4
#31 0xb62b7e52 in QPtrDict<void>::count () from /opt/kde/lib/libkhtml.so.4
#32 0xb62e5eeb in DOMNodeConstants::~DOMNodeConstants ()
   from /opt/kde/lib/libkhtml.so.4
#33 0xb62a40f0 in QValueList<khtml::TokenizerSubstring>::detachInternal ()
   from /opt/kde/lib/libkhtml.so.4
#34 0xb603597a in KJS::Reference::getValue () from /opt/kde/lib/libkjs.so.1
#35 0xb5ff2fc2 in KJS::DateObjectFuncImp::~DateObjectFuncImp ()
   from /opt/kde/lib/libkjs.so.1
#36 0xb5ff7d42 in KJS::DateObjectFuncImp::~DateObjectFuncImp ()
   from /opt/kde/lib/libkjs.so.1
#37 0xb5ff40f6 in KJS::DateObjectFuncImp::~DateObjectFuncImp ()
   from /opt/kde/lib/libkjs.so.1
#38 0xb5ff3033 in KJS::DateObjectFuncImp::~DateObjectFuncImp ()
   from /opt/kde/lib/libkjs.so.1
#39 0xb5ff89e2 in KJS::DateObjectFuncImp::~DateObjectFuncImp ()
   from /opt/kde/lib/libkjs.so.1
#40 0xb5ff40f6 in KJS::DateObjectFuncImp::~DateObjectFuncImp ()
   from /opt/kde/lib/libkjs.so.1
#41 0xb5ff8cc8 in KJS::DateObjectFuncImp::~DateObjectFuncImp ()
   from /opt/kde/lib/libkjs.so.1
#42 0xb5ffac95 in KJS::DateObjectFuncImp::~DateObjectFuncImp ()
   from /opt/kde/lib/libkjs.so.1
#43 0xb60019a8 in KJS::DateObjectFuncImp::~DateObjectFuncImp ()
   from /opt/kde/lib/libkjs.so.1
#44 0xb5ffaa9f in KJS::DateObjectFuncImp::~DateObjectFuncImp ()
   from /opt/kde/lib/libkjs.so.1
#45 0xb5ffc306 in KJS::DateObjectFuncImp::~DateObjectFuncImp ()
   from /opt/kde/lib/libkjs.so.1
#46 0xb60018fe in KJS::DateObjectFuncImp::~DateObjectFuncImp ()
   from /opt/kde/lib/libkjs.so.1
#47 0xb5ffaa9f in KJS::DateObjectFuncImp::~DateObjectFuncImp ()
   from /opt/kde/lib/libkjs.so.1
#48 0xb600089b in KJS::DateObjectFuncImp::~DateObjectFuncImp ()
   from /opt/kde/lib/libkjs.so.1
#49 0xb60019a8 in KJS::DateObjectFuncImp::~DateObjectFuncImp ()
   from /opt/kde/lib/libkjs.so.1
#50 0xb5ffaa9f in KJS::DateObjectFuncImp::~DateObjectFuncImp ()
   from /opt/kde/lib/libkjs.so.1
#51 0xb5ffb08d in KJS::DateObjectFuncImp::~DateObjectFuncImp ()
   from /opt/kde/lib/libkjs.so.1
#52 0xb60019a8 in KJS::DateObjectFuncImp::~DateObjectFuncImp ()
   from /opt/kde/lib/libkjs.so.1
#53 0xb5ffaa9f in KJS::DateObjectFuncImp::~DateObjectFuncImp ()
   from /opt/kde/lib/libkjs.so.1
#54 0xb6028dec in KJS::DeclaredFunctionImp::execute ()
   from /opt/kde/lib/libkjs.so.1
#55 0xb60282e0 in KJS::FunctionImp::call () from /opt/kde/lib/libkjs.so.1
#56 0xb602f7a0 in KJS::Object::call () from /opt/kde/lib/libkjs.so.1
#57 0xb5ff5f5d in KJS::DateObjectFuncImp::~DateObjectFuncImp ()
   from /opt/kde/lib/libkjs.so.1
#58 0xb5ffac95 in KJS::DateObjectFuncImp::~DateObjectFuncImp ()
   from /opt/kde/lib/libkjs.so.1
#59 0xb60019a8 in KJS::DateObjectFuncImp::~DateObjectFuncImp ()
   from /opt/kde/lib/libkjs.so.1
#60 0xb5ffaa9f in KJS::DateObjectFuncImp::~DateObjectFuncImp ()
   from /opt/kde/lib/libkjs.so.1
#61 0xb601b8b1 in KJS::SourceCode::cleanup () from /opt/kde/lib/libkjs.so.1
#62 0xb60301aa in KJS::Interpreter::evaluate () from /opt/kde/lib/libkjs.so.1
#63 0xb630329d in TestFunctionImp::call () from /opt/kde/lib/libkhtml.so.4
#64 0xb61417f2 in KHTMLPart::executeScript () from /opt/kde/lib/libkhtml.so.4
#65 0xb61b2f2e in MultiMapPtrList<DOM::ElementImpl>::next ()
   from /opt/kde/lib/libkhtml.so.4
#66 0xb61b6685 in MultiMapPtrList<DOM::ElementImpl>::next ()
   from /opt/kde/lib/libkhtml.so.4
#67 0xb61b771e in MultiMapPtrList<DOM::ElementImpl>::next ()
   from /opt/kde/lib/libkhtml.so.4
#68 0xb61b85ba in MultiMapPtrList<DOM::ElementImpl>::next ()
   from /opt/kde/lib/libkhtml.so.4
#69 0xb61ba792 in MultiMapPtrList<DOM::ElementImpl>::next ()
   from /opt/kde/lib/libkhtml.so.4
#70 0xb61b6262 in MultiMapPtrList<DOM::ElementImpl>::next ()
   from /opt/kde/lib/libkhtml.so.4
#71 0xb629b7ce in QValueVectorPrivate<DOM::Value>::reserve ()
   from /opt/kde/lib/libkhtml.so.4
#72 0xb629ba82 in QValueVectorPrivate<DOM::Value>::reserve ()
   from /opt/kde/lib/libkhtml.so.4
#73 0xb629cd7e in QValueVectorPrivate<DOM::Value>::reserve ()
   from /opt/kde/lib/libkhtml.so.4
#74 0xb629cfc7 in QValueVectorPrivate<DOM::Value>::reserve ()
   from /opt/kde/lib/libkhtml.so.4
#75 0xb7120d44 in QObject::activate_signal ()
   from /usr/lib/qt/lib/libqt-mt.so.3
#76 0xb7d1360d in KIO::Job::result () from /opt/kde/lib/libkio.so.4
#77 0xb7d136bc in KIO::Job::emitResult () from /opt/kde/lib/libkio.so.4
#78 0xb7d15d3c in KIO::SimpleJob::slotFinished ()
   from /opt/kde/lib/libkio.so.4
#79 0xb7d2661a in KIO::TransferJob::slotFinished ()
   from /opt/kde/lib/libkio.so.4
#80 0xb7d169a1 in KIO::TransferJob::qt_invoke () from /opt/kde/lib/libkio.so.4
#81 0xb7120d44 in QObject::activate_signal ()
   from /usr/lib/qt/lib/libqt-mt.so.3
#82 0xb71214dc in QObject::activate_signal ()
   from /usr/lib/qt/lib/libqt-mt.so.3
#83 0xb7d007bc in KIO::SlaveInterface::finished ()
   from /opt/kde/lib/libkio.so.4
#84 0xb7d036c6 in KIO::SlaveInterface::dispatch ()
   from /opt/kde/lib/libkio.so.4
#85 0xb7d01f93 in KIO::SlaveInterface::dispatch ()
   from /opt/kde/lib/libkio.so.4
#86 0xb7cfdcfb in KIO::Slave::gotInput () from /opt/kde/lib/libkio.so.4
#87 0xb7cfe0d8 in KIO::Slave::qt_invoke () from /opt/kde/lib/libkio.so.4
#88 0xb7120d44 in QObject::activate_signal ()
   from /usr/lib/qt/lib/libqt-mt.so.3
#89 0xb712136b in QObject::activate_signal ()
   from /usr/lib/qt/lib/libqt-mt.so.3
#90 0xb74616d0 in QSocketNotifier::activated ()
   from /usr/lib/qt/lib/libqt-mt.so.3
#91 0xb713ddb0 in QSocketNotifier::event () from /usr/lib/qt/lib/libqt-mt.so.3
#92 0xb70bc23f in QApplication::internalNotify ()
   from /usr/lib/qt/lib/libqt-mt.so.3
#93 0xb70bc3dc in QApplication::notify () from /usr/lib/qt/lib/libqt-mt.so.3
#94 0xb7722ac5 in KApplication::notify () from /opt/kde/lib/libkdecore.so.4
#95 0xb70af903 in QEventLoop::activateSocketNotifiers ()
   from /usr/lib/qt/lib/libqt-mt.so.3
#96 0xb7068481 in QEventLoop::processEvents ()
   from /usr/lib/qt/lib/libqt-mt.so.3
#97 0xb70d2961 in QEventLoop::enterLoop () from /usr/lib/qt/lib/libqt-mt.so.3
#98 0xb70d28b6 in QEventLoop::exec () from /usr/lib/qt/lib/libqt-mt.so.3
#99 0xb70bb39f in QApplication::exec () from /usr/lib/qt/lib/libqt-mt.so.3
#100 0xb676f9fc in kdemain () from /opt/kde/lib/libkdeinit_konqueror.so
#101 0xb76257d4 in kdeinitmain () from /opt/kde/lib/kde3/konqueror.so
#102 0x0804e4b4 in ?? ()
#103 0x00000002 in ?? ()
#104 0x0806c168 in ?? ()
#105 0x00000001 in ?? ()
#106 0x00000000 in ?? ()
[/code]

This was tested on 2 different machines with the same version of KDE and Konqueror on Slackware 11 and produced the same results on both machines.
Comment 1 Bram Schoenmakers 2006-11-21 17:51:10 UTC
Can not reproduce with SVN revision 606278.
Comment 2 Tommi Tervo 2006-11-21 17:58:02 UTC

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