[Samba] Crash on stat() fail with fsp_flags.fstat_before_close

Rowland Penny rpenny at samba.org
Wed Oct 4 12:04:22 UTC 2023


On Wed, 4 Oct 2023 11:43:13 +0000
"Ratna Bolla \(rbolla\) via samba" <samba at lists.samba.org> wrote:

> fd_close() does not reset fsp->fd to -1, if vfs_stat_fsp() call fails
> for any reason. This leads to crash when fd_handle_destructor() is
> called.
> 
> INTERNAL ERROR: assert failed: (fh->fd == -1) || (fh->fd == AT_FDCWD)
> in pid 3930585
> 
>

What version of Samba is this ?
On what OS ?

If it isn't a very recent version of Samba, have you tried upgrading
Samba, just in case it has already been fixed.

Rowland



More information about the samba mailing list