Bug 54515

Summary: Crash when writing to KHTMLPart two times in a row.
Product: [Applications] konqueror Reporter: Bob Jackson <terminx>
Component: khtmlAssignee: Dirk Mueller <mueller>
Status: RESOLVED FIXED    
Severity: crash CC: 0815, a.willner, andreas.meinl, frederic.bages, fvos, helmut.scholl_witten, hughjonesd, jorge.alvoeiro, Marc-Tell.Volkmann, michael, mrasp, n2uro, simon, toby.knudsen, vova, Wolfg.Raith
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Testcase

Description Bob Jackson 2003-02-12 02:25:15 UTC
Version:            (using KDE KDE 3.1)
Installed from:    Compiled From Sources
Compiler:          GCC 3.2.1 
OS:          Linux

If you have kweather set up on the kicker, clicking the kweather graphic (the one representing the current weather, of course) multiple times can crash kicker.

Easily reproduced on this system multiple times.  Just click the weather icon a second time before the window from the first time has opened.
Comment 1 Wilco Greven 2003-02-13 10:47:15 UTC
Created attachment 947 [details]
Testcase
Comment 2 Wilco Greven 2003-02-14 00:30:46 UTC
See the testcase to see the crash. Here's the backtrace: 
 
0x0804a424 in QShared::ref() (this=0x6000006) 
    at /usr/local/kde/include/qshared.h:49 
49          void ref()          { count++; } 
(gdb) bt 
#0  0x0804a424 in QShared::ref() (this=0x6000006) 
    at /usr/local/kde/include/qshared.h:49 
#1  0x405655eb in QString (this=0xbfffef30, s=@0x40000069) 
    at tools/qstring.cpp:13189 
#2  0x40b051bb in khtml::Loader::servePendingRequests() (this=0x81292a8) 
    at ../../../../src/kdelibs/khtml/xml/dom_docimpl.h:268 
#3  0x40b08449 in khtml::Loader::qt_invoke(int, QUObject*) (this=0x81292a8, 
    _id=4, _o=0xbffff040) at loader.moc:262 
#4  0x402d7afb in QObject::activate_signal(QConnectionList*, QUObject*) ( 
    this=0x817f140, clist=0x817f000, o=0xbffff040) at kernel/qobject.cpp:2212 
#5  0x405c7af3 in QSignal::signal(QVariant const&) (this=0x817f140, 
    t0=@0x817f168) at .moc/debug-shared-mt/moc_qsignal.cpp:100 
#6  0x402f46e8 in QSignal::activate() (this=0x817f140) 
    at kernel/qsignal.cpp:204 
#7  0x402fb340 in QSingleShotTimer::event(QEvent*) (this=0x817f118) 
    at kernel/qtimer.cpp:277 
 
Comment 3 Dirk Mueller 2003-02-26 05:53:37 UTC
*** Bug 54735 has been marked as a duplicate of this bug. ***
Comment 4 Dirk Mueller 2003-02-26 05:54:06 UTC
*** Bug 53582 has been marked as a duplicate of this bug. ***
Comment 5 Dirk Mueller 2003-02-26 05:55:53 UTC
*** Bug 53605 has been marked as a duplicate of this bug. ***
Comment 6 Dirk Mueller 2003-02-26 05:56:23 UTC
*** Bug 54827 has been marked as a duplicate of this bug. ***
Comment 7 Dirk Mueller 2003-02-26 05:56:51 UTC
*** Bug 54557 has been marked as a duplicate of this bug. ***
Comment 8 Dirk Mueller 2003-03-01 02:06:05 UTC
Subject: KDE_3_1_BRANCH: kdelibs/khtml/misc

CVS commit by mueller: 

urgs, cancel pending requests when the document is destructed
CCMAIL: 54515-done@bugs.kde.org


  M +1 -0      loader.cpp   1.138.2.5


--- kdelibs/khtml/misc/loader.cpp  #1.138.2.4:1.138.2.5
@@ -892,4 +892,5 @@ DocLoader::DocLoader(KHTMLPart* part, Do
 DocLoader::~DocLoader()
 {
+    Cache::loader()->cancelRequests( this );
     Cache::docloader->remove( this );
 }


Comment 9 Maksim Orlovich 2003-03-19 21:32:21 UTC
*** Bug 55888 has been marked as a duplicate of this bug. ***
Comment 10 Maksim Orlovich 2003-03-19 21:32:49 UTC
*** Bug 55896 has been marked as a duplicate of this bug. ***
Comment 11 Maksim Orlovich 2003-03-19 21:33:34 UTC
*** Bug 56158 has been marked as a duplicate of this bug. ***
Comment 12 Maksim Orlovich 2003-05-12 18:28:52 UTC
*** Bug 55498 has been marked as a duplicate of this bug. ***
Comment 13 Maksim Orlovich 2003-05-12 18:29:58 UTC
*** Bug 53530 has been marked as a duplicate of this bug. ***
Comment 14 Maksim Orlovich 2003-05-12 18:31:30 UTC
*** Bug 55931 has been marked as a duplicate of this bug. ***
Comment 15 Maksim Orlovich 2003-05-12 18:32:17 UTC
*** Bug 56944 has been marked as a duplicate of this bug. ***
Comment 16 Maksim Orlovich 2003-05-12 18:33:00 UTC
*** Bug 57806 has been marked as a duplicate of this bug. ***
Comment 17 Maksim Orlovich 2003-05-15 14:47:53 UTC
*** Bug 58523 has been marked as a duplicate of this bug. ***
Comment 18 Ingo Klöcker 2003-08-18 01:00:09 UTC
*** Bug 62814 has been marked as a duplicate of this bug. ***
Comment 19 Maksim Orlovich 2003-08-21 01:17:08 UTC
*** Bug 63036 has been marked as a duplicate of this bug. ***