Samba 3.6.4 tdb question

Jeremy Allison jra at samba.org
Tue Jun 19 16:32:04 MDT 2012


On Tue, Jun 19, 2012 at 05:12:42PM -0400, Ira Cooper wrote:
> 
> What if munmap failed?  That would explain what we are seeing.  I'm
> not sure anything in that stack touches the mmapped area until then.
> 
> I checked the error handling around munmap and it looks like it could
> cause this exact error.   It leaves the map_ptr set.  (Look at
> tdb_unmap.)

That's true, but ASAIK it's undefined what state
the passed in pointer is left when munmap() fails.

The man pages imply it would only report failure
with EINVAL.

Jeremy.


More information about the samba-technical mailing list