Shared memory marked as removed after smbstatus
mmorgan at lucent.com
Tue Nov 21 15:57:13 GMT 2000
(mistakenly posted to samba-technical first, oops)
I'm using Samba 2.0.7 on Linux 2.2.17 and recently started
encountering a problem where shared memory is marked for deletion
(preventing other samba processes from starting.)
When I map a drive (win 2000 client), an entry is placed in the shared
------ Shared Memory Segments --------
key shmid owner perms bytes nattch status
0x00280267 36353 root 644 1048576 1
When I run smbstatus, it attaches to the shared memory (to scan for
locked files I guess) and then does an IPC_RMID on the segment. This
markes the segment as destroyed.
Now when I attempt to map a drive from a different client or run
smbstatusagain, smbd or smbstatus eventually hits the code which does:
shmget(2622055, 0, 0) = -1 EIDRM (Identifier removed)
shmget(2622055, 1048576, IPC_CREAT|IPC_EXCL|0x1a4|0644) = -1 EEXIST
So neither can get the shared memory segment, since it's marked for
destruction, nor can the segment be created (EEXIST).
This may have shown up after the latest kernel upgrade, but it seems
like the kernel is operating as it should. ...and I've been using
2.0.7 since it was first released.
Anyone know what's the cause of this problem is?
Thanks in advance,
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 480 bytes
Desc: Card for Mike Morgan
Url : http://lists.samba.org/archive/samba/attachments/20001121/5d17e244/mmorgan.vcf
More information about the samba