Konqueror causing Xserver 100% CPU usage

Frank Ianella fianella at verizon.net
Wed Sep 5 10:41:31 PDT 2007


Dan Nicholson wrote:
> On 9/5/07, Frank Ianella <fianella at verizon.net> wrote:
>   
>> konqueror http://www.linuxfromscratch.org
>>
>> it opens ok. FWIW, I did an strace on konqueror. Aside from a bunch of
>> missing icons, the following line appears probably over 2000 times
>> throughout the trace:
>>
>> read(3, 0x8055c7c, 4096)                = -1 EAGAIN (Resource
>> temporarily unavailable)
>>
>> Not sure if it's relevant.
>>     
>
> Seems like it's relevant. Unfortunately, that doesn't tell us what
> file is, only that file descriptor 3 that's in use. Before the failing
> reads start, you should see `open("/some/path", FLAGS) = 3'. If you
> need to save the log, use the strace option `-o file'.
>
> --
> Dan
>
> P.S. Nice job using strace. I've been meaning to put it in the book
> forever because it's simply the fastest way to start figuring out why
> things are screwed up.
>   
Hi Dan,

Below is the last instance of 'open("/some/path", FLAGS) = 3' prior to 
the first failed read:

===========================================
open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=4189360, ...}) = 0
mmap2(NULL, 2097152, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb5c91000
close(3)                                = 0
socket(PF_FILE, SOCK_STREAM, 0)         = 3
connect(3, {sa_family=AF_FILE, path="/tmp/.X11-unix/X0"}, 110) = 0
getpeername(3, {sa_family=AF_FILE, path="/tmp/.X11-unix/X0"}, [20]) = 0
uname({sys="Linux", node="workstation", ...}) = 0
access("/root/.Xauthority", R_OK)       = 0
open("/root/.Xauthority", O_RDONLY)     = 4
fstat64(4, {st_mode=S_IFREG|0600, st_size=105, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 
0) = 0xb7333000
read(4, "\1\0\0\vworkstation\0\0010\0\22MIT-MAGIC-CO"..., 4096) = 105
read(4, "", 4096)                       = 0
close(4)                                = 0
munmap(0xb7333000, 4096)                = 0
fcntl64(3, F_GETFL)                     = 0x2 (flags O_RDWR)
fcntl64(3, F_SETFL, O_RDWR|O_NONBLOCK)  = 0
fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
select(4, [3], [3], NULL, NULL)         = 1 (out [3])
writev(3, [{"l\0\v\0\0\0\22\0\20\0", 10}, {"\0\0", 2}, 
{"MIT-MAGIC-COOKIE-1", 18}, {"\0\0", 2}, 
{"\333f\36\360\234\24C\251G\243\200\267\207VgC", 16}, {"", 0}], 6) = 48
read(3, "\1\0\v\0\0\0\231\0", 8)        = 8
read(3, "\300*/\4\0\0\200\1\377\377\37\0\0\1\0\0\24\0\377\377\1"..., 
612) = 612
select(4, [3], [3], NULL, NULL)         = 1 (out [3])
writev(3, 
[{"7\0\5\0\0\0\200\1\202\0\0\0\10\0\0\0\377\377\377\0b\0\5"..., 40}], 1) 
= 40
select(4, [3], [], NULL, NULL)          = 1 (in [3])
read(3, "\1\301\2\0\0\0\0\0\1\204\0\0\1\0\0\0\0\0\0\0\0\0\0\0\0"..., 
4096) = 32
select(4, [3], [3], NULL, NULL)         = 1 (out [3])
writev(3, [{"\204\0\1\0", 4}], 1)       = 4
select(4, [3], [], NULL, NULL)          = 1 (in [3])
read(3, "\1\333\3\0\0\0\0\0\377\377?\0\0\0\0\0\0\0\0\0\0\0\0\0\274"..., 
4096) = 32
select(4, [3], [3], NULL, NULL)         = 1 (out [3])
writev(3, 
[{"\24\0\6\0\202\0\0\0\27\0\0\0\37\0\0\0\0\0\0\0\0\341\365"..., 24}], 1) 
= 24
select(4, [3], [], NULL, NULL)          = 1 (in [3])
read(3, "\1\10\4\0\305\r\0\0\37\0\0\0\0\0\0\0\0237\0\0\0\0\0\0\0"..., 
4096) = 4096
read(3, "SelectionBox.foreground:\t#000000"..., 10036) = 10036
read(3, 0x8055c7c, 4096)                = -1 EAGAIN (Resource 
temporarily unavailable)
=========================================================

Thanks for the help!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fianella.vcf
Type: text/x-vcard
Size: 127 bytes
Desc: not available
URL: <http://lists.linuxfromscratch.org/pipermail/blfs-support/attachments/20070905/17d558c3/attachment.vcf>


More information about the blfs-support mailing list