ERROR:set_share_mode shmops->shm_alloc fail!

Terry Dwyer 61 8 9491 5161 tdwyer at io.telstra.com.au
Fri Mar 12 04:29:33 GMT 1999


I had a problem similar to yours that I've recently solved.  I'm running
Samba 2.0.2 under FreeBSD-2.2.8-Stable(11/03/1999) 

My error message was slightly different to yours, and only occured when
starting smbd and nmbd.  It was to the effect that IPC$ services were
unavailable and identified a call to a routine that seemed to want to
allocate SysV Shared memory. 

I recompiled a new kernel with 1MB of Shared memory (SYSV_SHM) and the
problem went away. 

Considering that every version of Samba up to the most recent I had run 
(1.9.18) was happy with 256KB of SYSV_SHM, needing to provide 1MB is a bit 
of a jump!

I hope this helps to point you in the right direction.

> Date: Thu, 11 Mar 1999 09:32:25 -0600
> From: Chad Campbell <Chad.Campbell at innovision.com>
> To: Samba List <samba at samba.org>, samba-ntdom at samba.org
> Subject: ERROR:set_share_mode shmops->shm_alloc fail!
> Message-ID: <36E7E209.BD935859 at innovision.com>
> 
> We're getting lots of error messages like "ERROR:set_share_mode
> shmops->shm_alloc fail!" in our logs.  I suspect this might be the root
> cause of lots of other problems we've been seeing - like the "del *.*"
> problem I reported a couple of days ago, and network installed software
> like Word closing without reporting any errors.  These errors are always
> preceded by another error related to locking shmem_sysv.c.  Here is one
> sequence:
> 
> [1999/03/11 08:19:00, 0] locking/shmem_sysv.c:shm_alloc(214)
>   ERROR shm_alloc : alloc of 132 bytes failed
> [1999/03/11 08:19:00, 0] locking/locking_shm.c:shm_set_share_mode(435)
>   ERROR:set_share_mode shmops->shm_alloc fail!
> 
> I've attached a full log from this morning to give a broader view of
> what's going on.  If anyone has some insight on this, let me know.
> We're running 2.0.0 on an Ultra 2 in Solaris 7.
> 
> Thanks,
> 
> Chad
> 
> --
> Chad Campbell
> Software Engineer, Innovision Corporation
> Chad.Campbell at innovision.com
> (913)226-8700
> 

> [1999/03/11 08:19:00, 0] locking/shmem_sysv.c:shm_alloc(214)
>   ERROR shm_alloc : alloc of 132 bytes failed

   _-_|\    Terry Dwyer               E-Mail    Work: tdwyer at io.telstra.com.au
  /     \   System Administrator             Private: tdwyer at omen.com.au
  *_.^\_/   Telstra Corporation                Phone: +61 8 9491 5161
       v    Perth, Western Australia             Fax: +61 8 9221 2631
                        (I do not speak for Telstra)



More information about the samba mailing list