Bug 16258 - Python smbconf transaction_start() lacks a talloc stack frame with CTDB
Summary: Python smbconf transaction_start() lacks a talloc stack frame with CTDB
Status: RESOLVED FIXED
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Python (show other bugs)
Version: 4.25.0rc*
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Samba release manager
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-09-22 11:19 UTC by Anoop C S
Modified: 2026-10-03 08:10 UTC (History)
1 user (show)

See Also:


Attachments
patch from master for v4-25-test (4.19 KB, patch)
2026-10-01 05:53 UTC, Anoop C S
vl: review+
Details
patch from master for v4-24-test (4.19 KB, patch)
2026-10-01 05:54 UTC, Anoop C S
vl: review+
Details
patch from master for v4-23-test (4.19 KB, patch)
2026-10-01 05:54 UTC, Anoop C S
vl: review+
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anoop C S 2026-09-22 11:19:25 UTC
Calling transaction_start() through Samba's smbconf Python bindings with a CTDB backed registry emits:

"no talloc stackframe at ../../source3/lib/g_lock.c:1210, leaking memory"

Here's a minimal reproducer, with CTDB running (and healthy):
```python
from samba.samba3 import param, smbconf

param.get_context().load("/usr/local/etc/samba/smb.conf")
conf = smbconf.init_reg(None)
print("before transaction_start()")
conf.transaction_start()
print("after transaction_start()")
conf.transaction_cancel()
```

which displays:
before transaction_start()
no talloc stackframe at ../../source3/lib/g_lock.c:1210, leaking memory
after transaction_start()

Configuration loading and registry initialization succeed. The warning occurs during transaction_start(). The execution continues, but there's a smb_panic("No talloc stackframe") for this condition under developer builds.

The equivalent net conf import operation succeeds without the warning.
Comment 1 Samba QA Contact 2026-09-30 21:27:02 UTC
This bug was referenced in samba master:

fdf6726c1c6f7274675f070c0d0761ea5101fd4b
c670e4fce53c04d3d41a47af403e771f34250fe1
Comment 2 Anoop C S 2026-10-01 05:53:29 UTC
Created attachment 19264 [details]
patch from master for v4-25-test
Comment 3 Anoop C S 2026-10-01 05:54:06 UTC
Created attachment 19265 [details]
patch from master for v4-24-test
Comment 4 Anoop C S 2026-10-01 05:54:39 UTC
Created attachment 19266 [details]
patch from master for v4-23-test
Comment 5 Samba QA Contact 2026-10-01 19:30:37 UTC
This bug was referenced in samba v4-23-test:

5631577c38ca65954543356c5146eb7432a67c26
66db90b9617ff0b80dc381c459ff92ae452b1586
Comment 6 Samba QA Contact 2026-10-01 19:47:55 UTC
This bug was referenced in samba v4-23-stable (Release samba-4.23.13):

5631577c38ca65954543356c5146eb7432a67c26
66db90b9617ff0b80dc381c459ff92ae452b1586
Comment 7 Samba QA Contact 2026-10-02 00:38:12 UTC
This bug was referenced in samba v4-24-test:

583d854ffc1481c79426a561c9a7f5b8307b41f3
761ed8a77adc576bfc356a8268e0568bbf677448
Comment 8 Samba QA Contact 2026-10-02 19:38:20 UTC
This bug was referenced in samba v4-25-test:

8d705becfe69643e2e11c3252b309500b8a74607
c50254799a47ee436a85cdd945c4b0376ba545da