Bug 106810 - khtml crashes when window closed while loading page (regression)
Summary: khtml crashes when window closed while loading page (regression)
Status: RESOLVED DUPLICATE of bug 85057
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: 2005-06-05 00:29 UTC by Andreas Leuner
Modified: 2005-06-06 10:24 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 Andreas Leuner 2005-06-05 00:29:15 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources

Under certain circumstances KHTML crashes with SIGABRT when I close konqi while html page is loaded. I have kde svn HEAD of 20050504 running. Testing an earlier snapshot approximately 3 weeks "before svn" I couldn't produce this crash.

steps to reproduce:

1. start from plain kdesktop -- no konqueror windows around (at least on the same desktop)

2. press ALT+F2, run e.g. man:/bash (i.e. a _html_ page that is not remotely accessed, but nevertheless takes one or two seconds to load and display)

3. As soon as a new konqueror window appears, close it again -- possibly even before even the page title is displayed in konqi's titlebar.

4. khtml will crash now most times, but not always so you will have to try a little.

This is the backtrace:
-------------------------------------------------------
[KCrash handler]
#3  0xb6a5b83b in raise () from /lib/tls/libc.so.6
#4  0xb6a5cfa2 in abort () from /lib/tls/libc.so.6
#5  0xb6a552df in __assert_fail () from /lib/tls/libc.so.6
#6  0xb6159229 in khtml::Cache::clear () at qdict.h:114
#7  0xb6033418 in ~KHTMLFactory (this=0xb6b64e80)
    at $kde_srcdir/kdelibs/khtml/khtml_factory.cpp:98
#8  0xb60335f2 in KHTMLFactory::deref ()
    at $kde_srcdir/kdelibs/khtml/khtml_factory.cpp:139
#9  0xb6033327 in ~KHTMLFactory (this=0x82f7ed8)
    at $kde_srcdir/kdelibs/khtml/khtml_factory.cpp:103
#10 0xb780fdac in ~KLibrary (this=0x830f6e8)
    at $kde_srcdir/kdelibs/kdecore/klibloader.cpp:131
#11 0xb7813215 in KLibLoader::close_pending (this=0x825c708, wrap=0xb78e8428)
    at $kde_srcdir/kdelibs/kdecore/klibloader.cpp:516
#12 0xb7811cde in ~KLibLoader (this=0x825c708)
    at $kde_srcdir/kdelibs/kdecore/klibloader.cpp:328
#13 0xb7810d63 in KLibLoader::cleanUp ()
    at $kde_srcdir/kdelibs/kdecore/klibloader.cpp:298
#14 0xb7744148 in ~KApplication (this=0xbffff540)
    at $kde_srcdir/kdelibs/kdecore/kapplication.cpp:1627
#15 0xb665c5f1 in kdemain (argc=0, argv=0x0)
    at $kde_srcdir/kdebase/konqueror/konq_main.cc:58
#16 0xb765b986 in kdeinitmain (argc=0, argv=0x0) at konqueror_dummy.cc:2
#17 0x0804d55b in launch (argc=4, _name=0x8070244 "konqueror", 
    args=0x807028a "/home/andreas", cwd=0x807028a "/home/andreas", envc=24, 
    envs=0x8070613 "", reset_env=true, tty=0x0, avoid_loops=false, 
    startup_id_str=0x0)
    at $kde_srcdir/kdelibs/kinit/kinit.cpp:636
#18 0x0804fda5 in handle_launcher_request (sock=4)
    at $kde_srcdir/kdelibs/kinit/kinit.cpp:1200
#19 0x0804ed32 in handle_requests (waitForPid=0)
    at $kde_srcdir/kdelibs/kinit/kinit.cpp:1393
#20 0x0804c845 in main (argc=2, argv=0xbffffcb4, envp=0x0)
    at $kde_srcdir/kdelibs/kinit/kinit.cpp:1847
--------------------------------------------------------

It is also possible to trigger this crash with an already opened konqueror window: enter the URL and hit ALT+F4 *veeery* quickly. You should also not have more than one tab open because when the confirmation dialog appears the crash will not work.
But the 4 steps above work best ;-)

Thanks for reading
Comment 1 Tommi Tervo 2005-06-06 10:24:19 UTC

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