Python Error: Bad talloc magic value - unknown value

Ricardo Jorge ricardo.swat.samba at
Sat Nov 13 11:59:34 MST 2010


I am getting the following error while trying to use the SAMR's
"LookupDomain" method.

Python Version: 2.7 (also tested with 2.6)
Samba 4 Version: Alpha 13 Release (fresh compile and Samba provisioning)

As a test you may use /source4/scripting/python/examples/

Here is a GDB backtrace of this error:

[Thread debugging using libthread_db enabled]
Connecting to ncalrpc:
Testing samr_Connect
Testing samr_EnumDomains
Found 2 domains
    SAMDOM (0)
    BUILTIN (1)
Testing domain SAMDOM
Bad talloc magic value - unknown value

Program received signal SIGABRT, Aborted.
0x00007ffff74db595 in raise () from /lib/
(gdb) bt
#0  0x00007ffff74db595 in raise () from /lib/
#1  0x00007ffff74dca16 in abort () from /lib/
#2  0x00007ffff542078d in talloc_abort (reason=0x7ffff5424470 "Bad talloc
magic value - unknown value") at ../../lib/talloc/talloc.c:199
#3  0x00007ffff542082b in talloc_abort_unknown_value () at
#4  0x00007ffff54208a2 in talloc_chunk_from_ptr (ptr=0x883f28) at
#5  0x00007ffff5420ee8 in _talloc_reference_loc (context=0x885510,
ptr=0x883f28, location=0x7ffff2942458
"default/librpc/gen_ndr/py_samr.c:7295") at ../../lib/talloc/talloc.c:541
#6  0x00007ffff292ce7b in pack_py_samr_LookupDomain_args_in (args=0x709950,
kwargs=0x0, r=0x885510) at default/librpc/gen_ndr/py_samr.c:7295
#7  0x00007ffff293e036 in py_dcerpc_run_function (iface=0x7853c8,
md=0x7ffff2b50158, args=0x709950, kwargs=0x0) at
#8  0x00007ffff293e133 in py_dcerpc_call_wrapper (self=0x7853c8,
args=0x709950, wrapped=0x7ffff2b50158, kwargs=0x0) at
#9  0x00007ffff7a6b8c3 in PyObject_Call () from /usr/lib/
#10 0x00007ffff7b02476 in PyEval_EvalFrameEx () from
#11 0x00007ffff7b03b34 in PyEval_EvalFrameEx () from
#12 0x00007ffff7b04427 in PyEval_EvalCodeEx () from
#13 0x00007ffff7b04542 in PyEval_EvalCode () from
#14 0x00007ffff7b1e59c in run_mod () from /usr/lib/
#15 0x00007ffff7b1f3a0 in PyRun_FileExFlags () from
#16 0x00007ffff7b1ff7f in PyRun_SimpleFileExFlags () from
#17 0x00007ffff7b3155f in Py_Main () from /usr/lib/
#18 0x00007ffff74c7c4d in __libc_start_main () from /lib/
#19 0x0000000000400609 in _start ()

Best Regards,

More information about the samba-technical mailing list