Steps to re-create by trying to use smbclient in tarmode to backup a SMB share. This will segfault even if using this command on the linux host if it is set to run with SMB shares. Substitute "server" with "localhost", username, and share name if it is easier to test. 1) touch /tmp/current-date 2) /usr/bin/smbclient \\\\server\\c\$ -U Administrator -E -d 1 -c tarmode\ full -TcN /tmp/current-time - /TEMP 3) Type in the remote server Administrator password 4) Witness a segfault I've complied version 4.13.1 and 4.13.2 from source and both will segfault when running the smbclient command. Going back to 4.12.9 source code works as expected. Running Fedora 33, kernel is 5.8.17-300.
I can't reproduce this with current master. It may have already been fixed by Volker's recent libsmbclient/smbclient changes. Can you either try current master, of upload a full gdb stack backtrace. Thanks !
After debugging this issue and running some traces, I've deduced the issue. I found a 32-bit libwbclient somehow installed on my system. I don't know how it came to be installed. I removed that library and now smbclient no longer segfaults. This appears to be an issue with how Fedora delivered some updates. You may close this issue. Thanks!