[Parted-maintainers] Bug#276721: tries to open non-existing device files and hangs

Eduard Bloch Eduard Bloch <blade@debian.org>, 276721@bugs.debian.org
Fri, 15 Oct 2004 23:55:27 +0200


Package: parted
Version: 1.6.11-6
Severity: grave

Hello,

I just tried to resize a VFAT partition. Moving data worked, but then
the program hangs with 100% CPU last. top shows me that devfsd is very
active and so I tried strace -p parted-pid, and what do I see... (see
below). Those are non-existing devices. There is no point in opening
them again and again.

open("/proc/swaps", O_RDONLY|O_LARGEFILE) = 4
fstat64(4, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb6ec8000
read(4, "", 1024)                       = 0
close(4)                                = 0
munmap(0xb6ec8000, 4096)                = 0
open("/dev/ide/host0/bus0/target0/lun0/part2", O_WRONLY|O_LARGEFILE) = 4
ioctl(4, BLKFLSBUF, 0)                  = 0
close(4)                                = 0
stat64("/dev/ide/host0/bus0/target0/lun0/part3", 0xbffff790) = -1 ENOENT (No such file or directory)
open("/proc/mounts", O_RDONLY|O_LARGEFILE) = 4
fstat64(4, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb6ec8000
read(4, "rootfs / rootfs rw 0 0\n/dev2/roo"..., 1024) = 522
read(4, "", 1024)                       = 0
close(4)                                = 0
munmap(0xb6ec8000, 4096)                = 0
open("/proc/swaps", O_RDONLY|O_LARGEFILE) = 4
fstat64(4, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb6ec8000
read(4, "", 1024)                       = 0
close(4)                                = 0
munmap(0xb6ec8000, 4096)                = 0
open("/dev/ide/host0/bus0/target0/lun0/part3", O_WRONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
stat64("/dev/ide/host0/bus0/target0/lun0/part4", 0xbffff790) = -1 ENOENT (No such file or directory)
open("/proc/mounts", O_RDONLY|O_LARGEFILE) = 4
fstat64(4, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb6ec8000
read(4, "rootfs / rootfs rw 0 0\n/dev2/roo"..., 1024) = 522
read(4, "", 1024)                       = 0
close(4)                                = 0
munmap(0xb6ec8000, 4096)                = 0
open("/proc/swaps", O_RDONLY|O_LARGEFILE) = 4
fstat64(4, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb6ec8000
read(4, "", 1024)                       = 0
close(4)                                = 0
munmap(0xb6ec8000, 4096)                = 0
open("/dev/ide/host0/bus0/target0/lun0/part4", O_WRONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
stat64("/dev/ide/host0/bus0/target0/lun0/part5", {st_mode=S_IFBLK|0660, st_rdev=makedev(3, 5), ...}) = 0
open("/proc/sys/kernel/real-root-dev", O_RDONLY|O_LARGEFILE) = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb6ec8000
read(4, "773\n", 1024)                  = 4
close(4)                                = 0
munmap(0xb6ec8000, 4096)                = 0
stat64("/dev/ide/host0/bus0/target0/lun0/part6", 0xbffff790) = -1 ENOENT (No such file or directory)
open("/proc/mounts", O_RDONLY|O_LARGEFILE) = 4
fstat64(4,  <unfinished ...>
Process 17938 detached



-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.9-rc3
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8

Versions of packages parted depends on:
ii  libc6                       2.3.2.ds1-17 GNU C Library: Shared libraries an
ii  libncurses5                 5.4-4        Shared libraries for terminal hand
ii  libparted1.6-0              1.6.11-6     The GNU Parted disk partitioning s
ii  libreadline4                4.3-13       GNU readline and history libraries

-- no debconf information