You are not logged in.
I have just upgraded xpad from 2.12-1 to 2.13-1 and found this:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
5936 bsdson 20 0 53696 14m 9908 R 34.3 2.8 6:52.08 xpad
I don't know what's happened to xpad and I think it's not right!
Some other informations that may help to audit the situation are as follows:
output of "lsof"
[503 ~:bsdson 14:07]$ lsof -p 5936
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
xpad 5936 bsdson cwd DIR 3,3 4096 16578 /home/bsdson
xpad 5936 bsdson rtd DIR 3,3 4096 2 /
xpad 5936 bsdson txt REG 3,3 106784 1167614 /usr/bin/xpad
xpad 5936 bsdson mem REG 3,3 70888 1229138 /lib/libbz2.so.1.0.4
xpad 5936 bsdson mem REG 3,3 1383016 460167 /usr/lib/libxml2.so.2.6.30
xpad 5936 bsdson mem REG 3,3 260714 469032 /usr/lib/libcroco-0.6.so.3.0.1
xpad 5936 bsdson mem REG 3,3 244598 465457 /usr/lib/libgsf-1.so.114.0.7
xpad 5936 bsdson mem REG 3,3 229672 469372 /usr/lib/librsvg-2.so.2.18.2
xpad 5936 bsdson mem REG 3,3 39960 622977 /usr/lib/gtk-2.0/2.10.0/engines/libxfce.so
xpad 5936 bsdson mem REG 3,3 7407 628487 /usr/lib/gtk-2.0/2.10.0/loaders/svg_loader.so
xpad 5936 bsdson DEL REG 0,8 98307 /SYSV00000000
xpad 5936 bsdson mem REG 3,3 65932 541280 /usr/share/fonts/TTF/Vera.ttf
xpad 5936 bsdson mem REG 3,3 1203565 459788 /usr/lib/libstdc++.so.6.0.9
xpad 5936 bsdson mem REG 3,3 1102863 460619 /usr/lib/libscim-1.0.so.8.2.3
xpad 5936 bsdson mem REG 3,3 97079 835608 /usr/lib/scim-1.0/1.4.0/IMEngine/socket.so
xpad 5936 bsdson mem REG 3,3 32923 938695 /usr/lib/scim-1.0/1.4.0/Config/socket.so
xpad 5936 bsdson mem REG 3,3 192752 938704 /usr/lib/gtk-2.0/immodules/im-scim.so
xpad 5936 bsdson mem REG 3,3 9103 579077 /usr/lib/pango/1.6.0/modules/pango-basic-fc.so
xpad 5936 bsdson mem REG 3,3 110289 458822 /usr/share/locale/zh_TW/LC_MESSAGES/libc.mo
xpad 5936 bsdson mem REG 3,3 20890468 541939 /usr/share/fonts/TTF/uming.ttf
xpad 5936 bsdson mem REG 3,3 64176 1130585 /var/cache/fontconfig/8d4af663993b81a124ee82e610bb31f9-x86.cache-2
xpad 5936 bsdson mem REG 3,3 19808 1130584 /var/cache/fontconfig/a98d8961fa319a64d3cfd8640c79e62d-x86.cache-2
xpad 5936 bsdson mem REG 3,3 12112 1130560 /var/cache/fontconfig/5a02e0a9ca9b27d0aa4bd0c42ba2438d-x86.cache-2
xpad 5936 bsdson mem REG 3,3 60824 1130555 /var/cache/fontconfig/d62e99ef547d1d24cdb1bd22ec1a2976-x86.cache-2
xpad 5936 bsdson mem REG 3,3 184848 1130554 /var/cache/fontconfig/f6b893a7224233d96cb72fd88691c0b4-x86.cache-2
xpad 5936 bsdson mem REG 3,3 284528 1130552 /var/cache/fontconfig/17090aa38d5c6f09fb8c5c354938f1d7-x86.cache-2
xpad 5936 bsdson mem REG 3,3 285224 1130540 /var/cache/fontconfig/df311e82a1a24c41a75c2c930223552e-x86.cache-2
xpad 5936 bsdson mem REG 3,3 5817880 508074 /usr/share/icons/hicolor/icon-theme.cache
xpad 5936 bsdson mem REG 3,3 45839 1229021 /lib/libnss_files-2.7.so
xpad 5936 bsdson mem REG 3,3 17728 474987 /usr/share/locale/zh_TW/LC_MESSAGES/glib20.mo
xpad 5936 bsdson mem REG 3,3 4975 1278022 /usr/share/locale/zh_TW/LC_MESSAGES/xpad.mo
xpad 5936 bsdson mem REG 3,3 99824 469427 /usr/share/locale/zh_TW/LC_MESSAGES/gtk20-properties.mo
xpad 5936 bsdson mem REG 3,3 1541072 557747 /usr/lib/locale/locale-archive
xpad 5936 bsdson mem REG 3,3 20620 459252 /usr/lib/libXdmcp.so.6.0.0
xpad 5936 bsdson mem REG 3,3 9736 468831 /usr/lib/libXau.so.6.0.0
xpad 5936 bsdson mem REG 3,3 164278 464007 /usr/lib/libexpat.so.1.5.2
xpad 5936 bsdson mem REG 3,3 126332 1540527 /usr/lib/libxcb.so.1.0.0
xpad 5936 bsdson mem REG 3,3 6054 471891 /usr/lib/libxcb-xlib.so.0.0.0
xpad 5936 bsdson mem REG 3,3 168315 1231016 /lib/libpcre.so.0.0.1
xpad 5936 bsdson mem REG 3,3 76174 1231017 /lib/libz.so.1.2.3
xpad 5936 bsdson mem REG 3,3 563882 465462 /usr/lib/libfreetype.so.6.3.16
xpad 5936 bsdson mem REG 3,3 211710 475007 /usr/lib/libpangoft2-1.0.so.0.1800.3
xpad 5936 bsdson mem REG 3,3 39845 1540334 /usr/lib/libXcursor.so.1.0.2
xpad 5936 bsdson mem REG 3,3 25962 469760 /usr/lib/libXrandr.so.2.1.0
xpad 5936 bsdson mem REG 3,3 35209 467377 /usr/lib/libXi.so.6.0.0
xpad 5936 bsdson mem REG 3,3 8764 1540137 /usr/lib/libXinerama.so.1.0.0
xpad 5936 bsdson mem REG 3,3 35203 469295 /usr/lib/libXrender.so.1.3.0
xpad 5936 bsdson mem REG 3,3 63628 467168 /usr/lib/libXext.so.6.4.0
xpad 5936 bsdson mem REG 3,3 212151 465792 /usr/lib/libfontconfig.so.1.2.0
xpad 5936 bsdson mem REG 3,3 176772 1229019 /lib/libm-2.7.so
xpad 5936 bsdson mem REG 3,3 156478 464218 /usr/lib/libpng12.so.0.23.0
xpad 5936 bsdson mem REG 3,3 17791 461410 /usr/lib/libXfixes.so.3.1.0
xpad 5936 bsdson mem REG 3,3 8331 469208 /usr/lib/libXdamage.so.1.1.0
xpad 5936 bsdson mem REG 3,3 8800 474244 /usr/lib/libXcomposite.so.1.0.0
xpad 5936 bsdson mem REG 3,3 1045771 1540528 /usr/lib/libX11.so.6.2.0
xpad 5936 bsdson mem REG 3,3 1488269 1229055 /lib/libc-2.7.so
xpad 5936 bsdson mem REG 3,3 786780 465417 /usr/lib/libglib-2.0.so.0.1400.4
xpad 5936 bsdson mem REG 3,3 13474 1229031 /lib/libdl-2.7.so
xpad 5936 bsdson mem REG 3,3 13014 465310 /usr/lib/libgmodule-2.0.so.0.1400.4
xpad 5936 bsdson mem REG 3,3 300452 464093 /usr/lib/libgobject-2.0.so.0.1400.4
xpad 5936 bsdson mem REG 3,3 568682 1540439 /usr/lib/libcairo.so.2.11.6
xpad 5936 bsdson mem REG 3,3 289114 475000 /usr/lib/libpango-1.0.so.0.1800.3
xpad 5936 bsdson mem REG 3,3 44703 474474 /usr/lib/libpangocairo-1.0.so.0.1800.3
xpad 5936 bsdson mem REG 3,3 129100 461455 /usr/lib/libgdk_pixbuf-2.0.so.0.1200.3
xpad 5936 bsdson mem REG 3,3 361631 1540328 /usr/lib/libatk-1.0.so.0.2009.1
xpad 5936 bsdson mem REG 3,3 668823 461445 /usr/lib/libgdk-x11-2.0.so.0.1200.3
xpad 5936 bsdson mem REG 3,3 4429835 461439 /usr/lib/libgtk-x11-2.0.so.0.1200.3
xpad 5936 bsdson mem REG 3,3 97607 1540312 /usr/lib/libICE.so.6.3.0
xpad 5936 bsdson mem REG 3,3 33356 473707 /usr/lib/libSM.so.6.0.0
xpad 5936 bsdson mem REG 3,3 21314 1277960 /usr/share/locale/zh_TW/LC_MESSAGES/scim.mo
xpad 5936 bsdson mem REG 3,3 51006 459861 /usr/lib/libgcc_s.so.1
xpad 5936 bsdson mem REG 3,3 9247 460625 /usr/lib/libscim-x11utils-1.0.so.8.2.3
xpad 5936 bsdson mem REG 3,3 59076 469420 /usr/share/locale/zh_TW/LC_MESSAGES/gtk20.mo
xpad 5936 bsdson mem REG 3,3 127601 1228807 /lib/ld-2.7.so
xpad 5936 bsdson 0r CHR 1,3 6003 /dev/null
xpad 5936 bsdson 1w REG 3,3 3139 23446 /home/bsdson/.xsession-errors
xpad 5936 bsdson 2w REG 3,3 3139 23446 /home/bsdson/.xsession-errors
xpad 5936 bsdson 3u unix 0xdede0600 13342 socket
xpad 5936 bsdson 4u unix 0xdede0c00 13345 /home/bsdson/.config/xpad/server
xpad 5936 bsdson 6u unix 0xde908a00 13424 socket
xpad 5936 bsdson 7u unix 0xde908e00 13426 socket
xpad 5936 bsdson 8u unix 0xde908400 13428 socket
[503 ~:bsdson 14:07]$
and partial of the output from "strace":
.
.
.
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="bsdson", ...}) = 0
access("/home/bsdson/.Xauthority", R_OK) = 0
open("/home/bsdson/.Xauthority", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0600, st_size=548, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7441000
read(4, "\0\0\0\4\300\250\250\245\0\0010\0\22MIT-MAGIC-COOKIE-1\0"..., 4096) = 548
close(4) = 0
munmap(0xb7441000, 4096) = 0
getpid() = 6064
time(NULL) = 1197527142
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\23\0\30\0", 10}, {"\0\0", 2}, {"XDM-AUTHORIZATION-1", 19}, {"\0", 1}, {"\310\254@g\317\37
read(3, 0x80895f0, 8) = -1 EAGAIN (Resource temporarily unavailable)
select(4, [3], NULL, NULL, NULL) = 1 (in [3])
read(3, "\1\0\v\0\0\0\231\0", 8) = 8
read(3, "\0\261\236\0\0\0\340\0\377\377\37\0\0\1\0\0\24\0\377\377\1\7\0\0 \10\377\264\26\36\10"..., 612) = 612
select(4, [3], [3], NULL, NULL) = 1 (out [3])
writev(3, [{"7\0\5\0\0\0\340\0\203\0\0\0\10\0\0\0\377\377\377\0b\0\5\0\f\0\0\0BIG-"..., 40}], 1) = 40
select(4, [3], [], NULL, NULL) = 1 (in [3])
read(3, "\1\0\2\0\0\0\0\0\1\203\0\0008\252\261\277\313\260\24\10\334\n \10\20\252\261\277(\252\261\277", 4096) = 3
select(4, [3], [3], NULL, NULL) = 1 (out [3])
writev(3, [{"\203\0\1\0", 4}], 1) = 4
select(4, [3], [], NULL, NULL) = 1 (in [3])
read(3, "\1\327\3\0\0\0\0\0\377\377?\0\313\260\24\10\334\n \10\20\252\261\277,\252\261\277X/\35\10", 4096) = 32
select(4, [3], [3], NULL, NULL) = 1 (out [3])
writev(3, [{"\24\0\6\0\203\0\0\0\27\0\0\0\37\0\0\0\0\0\0\0\0\341\365\5", 24}], 1) = 24
select(4, [3], [], NULL, NULL) = 1 (in [3])
read(3, "\1\10\4\0%\0\0\0\37\0\0\0\0\0\0\0\222\0\0\0\313\260\24\10\334\n \10\20\252\261\277"..., 4096) = 180
.
.
.
poll([{fd=3, events=POLLIN}, {fd=4, events=POLLIN}, {fd=9, events=POLLIN}, {fd=9, events=0}, {fd=9, events=0}], 5,
read(3, 0x8089e54, 4096) = -1 EAGAIN (Resource temporarily unavailable)
gettimeofday({1197527190, 966688}, NULL) = 0
poll([{fd=3, events=POLLIN}, {fd=4, events=POLLIN}, {fd=9, events=POLLIN}, {fd=9, events=0}, {fd=9, events=0}], 5,
read(3, 0x8089e54, 4096) = -1 EAGAIN (Resource temporarily unavailable)
gettimeofday({1197527190, 966897}, NULL) = 0
<conitnues forever>
Can anyone help me to audit this?
BR,
bsdson.tw
Last edited by bsdson.tw (2007-12-13 07:00:59)
Offline
The "xpad" process constantly tries to read the fd 3 which may be a socket to file "/tmp/.X11-unix/X0".
and this file's information:
srwxrwxrwx 1 root root 0 2007-12-13 12:05 /tmp/.X11-unix/X0
Offline
o... I think it's a bug inside xpad
quoted from xpad's web-site:
Mon | Dec 10, 2007
MichaelGuh, Xpad 2.14 is now available. It fixes a 100% CPU bug found by Fred Galusik. :-/
Offline