Once upon a time Wednesday 25 August 2004 12:39 am, Greg KH wrote: > On Mon, Aug 23, 2004 at 08:02:10PM -0400, Dennis Gilmore wrote: > > any idea why udevinfo hangs running > > /usr/bin/udevinfo -r -q name -p /block/ram4 i have had to disable udev > > since it was using 100% cpu and every reboot without fail the udevinfo > > process is there using all the cpu. > > No idea, it works for me here on other block devices. Care to run > strace on it (the udevinfo process) to see what it is looping on? > > thanks, > > greg k-h Greg here is the strace it gets to the end and hangs strace /usr/bin/udevinfo -r -q name -p /block/ram4 execve("/usr/bin/udevinfo", ["/usr/bin/udevinfo", "-r", "-q", "name", "-p", "/block/ram4"], [/* 26 vars */]) = 0 uname({sys="Linux", node="jaffa.ausil.us", ...}) = 0 brk(0) = 0x9328000 open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=113811, ...}) = 0 old_mmap(NULL, 113811, PROT_READ, MAP_PRIVATE, 3, 0) = 0xf6fe4000 close(3) = 0 open("/lib/tls/libc.so.6", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200{t\000"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=1494704, ...}) = 0 old_mmap(0x733000, 1195084, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x733000 old_mmap(0x851000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED| MAP_DENYWRITE, 3, 0x11e000) = 0x851000 old_mmap(0x855000, 7244, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED| MAP_ANONYMOUS, -1, 0) = 0x855000 close(3) = 0 open("/lib/libselinux.so.1", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0D\376^\000"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=71816, ...}) = 0 old_mmap(0x5ec000, 71556, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x5ec000 old_mmap(0x5fb000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED| MAP_DENYWRITE, 3, 0xf000) = 0x5fb000 old_mmap(0x5fd000, 1924, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED| MAP_ANONYMOUS, -1, 0) = 0x5fd000 close(3) = 0 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xf6fe3000 mprotect(0x851000, 8192, PROT_READ) = 0 set_thread_area({entry_number:-1 -> 6, base_addr:0xf6fe34e0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0 munmap(0xf6fe4000, 113811) = 0 access("/etc/selinux/", F_OK) = 0 brk(0) = 0x9328000 brk(0x9349000) = 0x9349000 open("/etc/selinux/config", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=440, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xf6fff000 read(3, "# This file controls the state o"..., 4096) = 440 close(3) = 0 munmap(0xf6fff000, 4096) = 0 open("/proc/mounts", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xf6fff000 read(3, "rootfs / rootfs rw 0 0\n/proc /pr"..., 1024) = 404 close(3) = 0 munmap(0xf6fff000, 4096) = 0 getpid() = 8055 open("/proc/mounts", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xf6fff000 read(3, "rootfs / rootfs rw 0 0\n/proc /pr"..., 1024) = 404 close(3) = 0 munmap(0xf6fff000, 4096) = 0 open("/etc/udev/udev.conf", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=2183, ...}) = 0 mmap2(NULL, 2183, PROT_READ, MAP_SHARED, 3, 0) = 0xf6fff000 close(3) = 0 munmap(0xf6fff000, 2183) = 0 open("/dev/.udev.tdb", O_RDONLY) = 3 fcntl64(3, F_GETFD) = 0 fcntl64(3, F_SETFD, FD_CLOEXEC) = 0 read(3, "TDB file\n\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 168) = 168 fstat64(3, {st_mode=S_IFREG|0644, st_size=196608, ...}) = 0 mmap2(NULL, 196608, PROT_READ, MAP_SHARED, 3, 0) = 0xf6fb3000