Bug 85719 - kio_http https hangs with high cpu utilization when loading multiple pages in some cases
Summary: kio_http https hangs with high cpu utilization when loading multiple pages in...
Status: RESOLVED NOT A BUG
Alias: None
Product: kio
Classification: Frameworks and Libraries
Component: http (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-22 21:05 UTC by kdebugs
Modified: 2011-01-24 18:50 UTC (History)
2 users (show)

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 kdebugs 2004-07-22 21:05:17 UTC
Version:            (using KDE KDE 3.2.3)
Installed from:    Gentoo Packages
Compiler:          gcc version 3.3.4 20040623 (Gentoo Linux 3.3.4-r1, ssp-3.3.2-2, pie-8.7.6)
 
OS:                Linux

I frequently see kio_http going to high cpu utilization:

kdeinit: kio_http https /tmp/ksocket-carl/klauncheryFqgAa.slave-socket /tmp/ksocket-carl/konquerordMaJhc.slave-socket

When this is happening, there will be a tab in konq that is stuck loading all or part of an https page. Closing the tab or window, or reloading the page will return things to normal. Generally this condition is associated with more than one page trying to load https pages or elements. For example, I frequently have open:

https://orbit.theplanet.com/index.html

Which refreshes itself periodically to show a network utilization graph. Normally, this runs just fine, although when I start working intensively in another https page in another tab, this bug presents itself.

I have been seeing this for quite awhile, like maybe as far back as 3.1, but have never seen any other bug reports on it. Sorry to take so long to report it.

Also, there is a proxy involved (Squid).
Comment 1 Waldo Bastian 2004-07-22 21:52:32 UTC
Can you attach strace to the http process when it is doing this?
You can use:
  strace -tt -p <pid of process>

Do you have kdelibs compiled with debug info? If so, you may also want to have a look with gdb what is going on:
  gdb kdeinit <pid of process>
and once it is finished loading, type:
  bt
to get a backtrace.
Comment 2 kdebugs 2004-08-01 17:43:26 UTC
Sorry to take so long with this. Ater writing the bug, I tried turning of the proxy, and didn't see the problem until just now, after I turned it back on.

Here's what ptrace shows:

# strace -tt -p 31793
Process 31793 attached - interrupt to quit
11:39:31.870910 read(10, "", 5)         = 0
11:39:31.871117 getpid()                = 31793
11:39:31.871200 read(10, "", 5)         = 0
11:39:31.871274 getpid()                = 31793
11:39:31.871339 read(10, "", 5)         = 0
11:39:31.871396 getpid()                = 31793
11:39:31.871467 read(10, "", 5)         = 0
11:39:31.871531 getpid()                = 31793
11:39:31.871597 read(10, "", 5)         = 0
11:39:31.871658 getpid()                = 31793
11:39:31.871721 read(10, "", 5)         = 0
11:39:31.871779 getpid()                = 31793
11:39:31.871845 read(10, "", 5)         = 0
11:39:31.871901 getpid()                = 31793
11:39:31.871969 read(10, "", 5)         = 0
11:39:31.872025 getpid()                = 31793
11:39:31.872095 read(10, "", 5)         = 0
11:39:31.872158 getpid()                = 31793
11:39:31.872225 read(10, "", 5)         = 0
11:39:31.872283 getpid()                = 31793
11:39:31.872347 read(10, "", 5)         = 0
11:39:31.872406 getpid()                = 31793
11:39:31.872508 read(10, "", 5)         = 0
11:39:31.872571 getpid()                = 31793
11:39:31.872633 read(10, "", 5)         = 0
11:39:31.872693 getpid()                = 31793
11:39:31.872756 read(10, "", 5)         = 0
11:39:31.872817 getpid()                = 31793
11:39:31.872874 read(10, "", 5)         = 0


I don't have kdelibs compiled with debug symbols, so I can't there, sorry..

FWIW, I have all three proxy server settings (http, https, and ftp) pointing to a local Squid server: http://proxy  3128

hth
Comment 3 Mick Szucs 2004-09-03 13:36:42 UTC
I'm experiencing the same problem.  I'm using a monitoring site daily via https, and it does seem that the https sessions are the ones that lock up.

KDE 3.2, Mandrake 10

I rebuilt kdelibs with --debug=full and ran a gdb backtrace.  This morning I had two kio_http processes locked, both of them competing for 100% CPU utilization.  Backtrace of the first one:

#0  0x41767616 in BIO_new_socket () from /usr/lib/libcrypto.so.0.9.7

The second one displayed this consistantly:

#0  0x4021a580 in QMemArray<char>::resize(unsigned) () from /usr/lib/libkio.so.4

Until I killed the first one.  The second one continued to chew 100% CPU and backtrace now says:

#1  0x00000010 in ?? ()
#2  0x080b6d48 in ?? ()
#3  0x00000010 in ?? ()
#4  0x40ecbd3c in QString::truncate(unsigned) () from /usr/lib/qt3/lib/libqt-mt.so.3
#5  0x00000010 in ?? ()
#6  0x4103e998 in ?? () from /usr/lib/qt3/lib/libqt-mt.so.3
#7  0xffffffff in ?? ()

and a short while later (no noticible change) says:

#0  0x40756a50 in kdbgstream::flush() () from /usr/lib/libkdecore.so.4
#1  0xbfffc380 in ?? ()
#2  0x4104e5f4 in QString::shared_null () from /usr/lib/qt3/lib/libqt-mt.so.3
#3  0x080a21a8 in ?? ()
#4  0x080515f1 in QCharRef::operator QChar() const ()

Hope this helps.  I am also using a Squid proxy.  Let me know if I can be of further assistance - this bug is annoying me to no end, I run into it a dozen or more times daily at the moment.
Comment 4 Mick Szucs 2004-10-06 21:03:16 UTC
No one else running into this?  It's driving me nuts.
Comment 5 kdebugs 2004-10-10 08:56:08 UTC
FWIW, one workaround is to not use the proxy for https (http only seems to work OK).
Comment 6 Mick Szucs 2004-10-12 13:15:31 UTC
Sadly, firewall rules necessitate https via proxy.

Is this bug evident in the latest KDE?  I'm still using 3.2.0.
Comment 7 Dawit Alemayehu 2004-11-13 17:47:59 UTC
Has anyone here tried to see if the problem exists in the newer KDE releases (3.3.1) ? I personally do not see such issues with the current development branch.
Comment 8 Mathias Homann 2005-04-21 15:02:23 UTC
I still see this problem with https that redirects to http (for example, secure login to "my ebay" or amazon). kde version is 3.4 here on suse linux.
Comment 9 Mathias Homann 2005-04-22 11:04:06 UTC
disabling proxy usage makes https work. Sadly, going around the proxy is a "no-no" for me.
Comment 10 Dawit Alemayehu 2011-01-24 18:50:59 UTC
Too old... Feel free to reopen if problem persists in current version of KDE.