[Samba] get_share_mode_lock:, get_static_share_mode_data failed: NT_STATUS_NO_MEMORY with Samba 4.11.2
rpenny at samba.org
Fri Nov 29 11:46:19 UTC 2019
On 29/11/2019 10:51, L.P.H. van Belle via samba wrote:
> I'm wondering, why this is not in 4.11 ?
> The current error messages, makes people look in the wrong direction.
> Do you know if its prepaired it for next release? Else i'll patch it into my builds.
> Rowland, tell me, how did you find the change through git, thats still a part i need to improve. :-/
> I looked in bugzilla, but was not able to find it.
If you check the log fragment the OP provided:
2019-11-28T20:40:44+01:00 lx-sv-09 smbd_audit: [2019/11/28
It tells you where to search in Samba git:
So, if you follow the path provided:
source3 --> locking --> share_mode_lock.c
You can then open 'share_mode_lock.c' in your favourite editor and go to
'get_share_mode_lock' and then look for the error message, in this case
'get_static_share_mode_data failed'. This also returns 'nt_errstr' from
'status' and this comes from 'status = get_static_share_mode_data(' . In
this case, it returns 'NT_STATUS_NO_MEMORY'.
Now you know where it comes from, you can check the history for
'share_mode_lock.c', this is where I found this:
2019-07-17 Volker Lendecke smbd: Increase a debug level
More information about the samba