[Pkg-kde-extras] Bug#406470: kile strace

Alexander Klauer aklauer at rumms.uni-mannheim.de
Mon Feb 26 12:02:12 UTC 2007


Hi Thomas,


I ran a kile strace to see what kile is actually wasting so much CPU time 
with. It turned out to be the following sequence of syscalls repeated ad 
nauseam:

[pid 12988] 12:47:28.601883 select(18, [4 5 6 8 10 11 12 13 14 15 17], [], [], 
{0, 630717}) = 2 (in [13 15], left {0, 630717})
[pid 12988] 12:47:28.601937 read(13, "", 255) = 0
[pid 12988] 12:47:28.601971 read(15, "", 255) = 0
[pid 12988] 12:47:28.601998 gettimeofday({1172490448, 602009}, NULL) = 0
[pid 12988] 12:47:28.602030 ioctl(4, FIONREAD, [0]) = 0

So connections 13 and 15 are shut down (if this interpretation is applicable 
to pipes), but kile fails to remove them from the select() set, causing 
select() to always return immediately. Descriptor 13 belongs to the 
file ".lyxpipe.in" and descriptor 15 belongs to the file ".lyx/lyxpipe.in". 
Descriptor 4 is a PF_FILE socket connected to "/tmp/.X11-unix/X0".

Hope this helps.


Best regards,
Alexander




More information about the pkg-kde-extras mailing list