Python Error: Bad talloc magic value - unknown value

Ricardo Jorge ricardo.swat.samba at gmail.com
Tue Nov 16 14:34:08 MST 2010


Finally managed to compile the latest master and this problem does not
happen (alpha14-GIT-d451ac1).


On Sat, Nov 13, 2010 at 9:45 PM, Ricardo Jorge <ricardo.swat.samba at gmail.com
> wrote:

> Hi. Here is bt full
>
>
> 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/libc.so.6
> (gdb) bt full
> #0  0x00007ffff74db595 in raise () from /lib/libc.so.6
> No symbol table info available.
> #1  0x00007ffff74dca16 in abort () from /lib/libc.so.6
> No symbol table info available.
>
> #2  0x00007ffff542078d in talloc_abort (reason=0x7ffff5424470 "Bad talloc
> magic value - unknown value") at ../../lib/talloc/talloc.c:199
> No locals.
>
> #3  0x00007ffff542082b in talloc_abort_unknown_value () at
> ../../lib/talloc/talloc.c:223
> No locals.
>
> #4  0x00007ffff54208a2 in talloc_chunk_from_ptr (ptr=0x883f28) at
> ../../lib/talloc/talloc.c:242
>         pp = 0x883f28 "\f"
>         tc = 0x883ed8
>
> #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
>         tc = 0x885510
>         handle = 0x10
>
> #6  0x00007ffff292ce7b in pack_py_samr_LookupDomain_args_in (args=0x709950,
> kwargs=0x0, r=0x885510) at default/librpc/gen_ndr/py_samr.c:7295
>         py_connect_handle = 0x640410
>         py_domain_name = 0x640470
>         kwnames = {0x7ffff2942336 "connect_handle", 0x7ffff293ec5f
> "domain_name", 0x0}
>
> #7  0x00007ffff293e036 in py_dcerpc_run_function (iface=0x7853c8,
> md=0x7ffff2b50158, args=0x709950, kwargs=0x0) at
> ../librpc/rpc/pyrpc_util.c:187
>         mem_ctx = 0x883ac0
>         status = {v = 7885768}
>         r = 0x885510
>         result = 0x7ffff7da9db0
>
> #8  0x00007ffff293e133 in py_dcerpc_call_wrapper (self=0x7853c8,
> args=0x709950, wrapped=0x7ffff2b50158, kwargs=0x0) at
> ../librpc/rpc/pyrpc_util.c:210
>         iface = 0x7853c8
>         md = 0x7ffff2b50158
>
> #9  0x00007ffff7a6b8c3 in PyObject_Call () from
> /usr/lib/libpython2.7.so.1.0
> No symbol table info available.
>
> #10 0x00007ffff7b02476 in PyEval_EvalFrameEx () from
> /usr/lib/libpython2.7.so.1.0
> No symbol table info available.
>
> #11 0x00007ffff7b03b34 in PyEval_EvalFrameEx () from
> /usr/lib/libpython2.7.so.1.0
> No symbol table info available.
>
> #12 0x00007ffff7b04427 in PyEval_EvalCodeEx () from
> /usr/lib/libpython2.7.so.1.0
> No symbol table info available.
>
> #13 0x00007ffff7b04542 in PyEval_EvalCode () from
> /usr/lib/libpython2.7.so.1.0
> No symbol table info available.
>
> #14 0x00007ffff7b1e59c in run_mod () from /usr/lib/libpython2.7.so.1.0
> No symbol table info available.
>
> #15 0x00007ffff7b1f3a0 in PyRun_FileExFlags () from
> /usr/lib/libpython2.7.so.1.0
> No symbol table info available.
>
> #16 0x00007ffff7b1ff7f in PyRun_SimpleFileExFlags () from
> /usr/lib/libpython2.7.so.1.0
> No symbol table info available.
>
> #17 0x00007ffff7b3155f in Py_Main () from /usr/lib/libpython2.7.so.1.0
> No symbol table info available.
> #18 0x00007ffff74c7c4d in __libc_start_main () from /lib/libc.so.6
> No symbol table info available.
> #19 0x0000000000400609 in _start ()
> No symbol table info available.
>
>
>
>
>
>
>
> On Sat, Nov 13, 2010 at 9:40 PM, Michael Wood <esiotrot at gmail.com> wrote:
>
>> On 13 November 2010 20:59, Ricardo Jorge <ricardo.swat.samba at gmail.com>
>> wrote:
>> > Hello,
>> >
>> > 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/samr.py
>> >
>> > 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/libc.so.6
>> > (gdb) bt
>>
>> Rather use "bt full".
>>
>> --
>> Michael Wood <esiotrot at gmail.com>
>>
>
>


More information about the samba-technical mailing list