NFS + update-menus will cause problems?
Our application server is running sid (ok, I know this is risky).
Some weeks ago we changed the root filesystem to a NFS partition. Now
the menu utilities aren't working. I tried to reinstall the menu
package; the script hangs in update-menus. These are the last strace
lines:
stat64("/var/lib/dpkg/info/menu.postinst", {st_mode=S_IFREG|0755,
st_size=677, ...}) = 0
fork() = 4673
rt_sigaction(SIGQUIT, {SIG_IGN}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGINT, {SIG_IGN}, {SIG_DFL}, 8) = 0
wait4(4673, open("/var/lib/dpkg/lock", O_RDWR|O_CREAT|O_TRUNC, 0660) = 3
fcntl64(3, F_SETLK, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}) = 0
fcntl64(3, F_SETLK, {type=F_UNLCK, whence=SEEK_SET, start=0, len=0}) = 0
close(3) = 0
getuid32() = 0
open("/var/run/update-menus.pid", O_WRONLY|O_CREAT, 0644) = 3
flock(3, LOCK_EX|LOCK_NB) = 0
--- SIGSEGV (Segmentation fault) ---
+++ killed by SIGSEGV +++
And the script keep waiting... the file "/var/run/update-menus.pid"
is created without any problems. The manpage for flock(2) says it
doesn't work over NFS, maybe there is a relation?
Running "gdb /usr/bin/update-menus", I get:
(gdb) break flock
Breakpoint 1 at 0x804a58c
(gdb) r
Starting program: /usr/bin/update-menus
(no debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...Breakpoint 1 at 0x401475c0
(no debugging symbols found)...
Breakpoint 1, 0x401475c0 in flock () from /lib/libc.so.6
(gdb) n
Single stepping until exit from function flock,
which has no line number information.
0x08068ad3 in strcpy ()
(gdb) n
Single stepping until exit from function strcpy,
which has no line number information.
Program received signal SIGSEGV, Segmentation fault.
0x4004101a in ostream::operator<< () from
/usr/lib/libstdc++-libc6.2-2.so.3
Can anyone help? I'm lost...
Note: Please CC me.
--
Leonardo Boiko
"It is my firm believe that it is a mistake to hold firm beliefs"
--
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: