Bug 15632 - reproducible builds regression: smbXsrv python bindings
Summary: reproducible builds regression: smbXsrv python bindings
Status: NEW
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: PIDL and libndr (show other bugs)
Version: 4.20.0
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Samba QA Contact
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-13 11:05 UTC by Arnout Engelen
Modified: 2024-04-13 11:09 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arnout Engelen 2024-04-13 11:05:47 UTC
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
Comment 1 Arnout Engelen 2024-04-13 11:09:20 UTC
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.