Between 4.19 and 4.20, in particular since 8e850685a1052a16bea402df3e8057218080c373, the Samba build is no longer bit-by-bit reproducible: lib/python3.11/site-packages/samba/dcerpc/smbXsrv.cpython-311-x86_64-linux-gnu.so leaks Perl hash memory addresses in invalid error messages such as: Can not convert C Type struct HASH(0x8f5808) from Python Issue in nixpkgs: https://github.com/NixOS/nixpkgs/issues/303436
I've worked around this issue for now with https://gitlab.com/raboof/samba/-/commit/9995c5c234ece6888544cdbe6578d47e83dea0b5 , but this is rather naive - likely `$n` shouldn't have been a hash in the first place, and a 'deeper' fix would be better.