I found this bug in samba: Bug 15170 - smbtree seg fault if using -N option. https://bugzilla.samba.org/show_bug.cgi?id=15170 I checked this error in CentOS Stream 9 (samba 4.18.6-100.el9) - successfully reproduced.