Bug 6722 - Python bindings for ldb produce a segfault with Message.get()
Python bindings for ldb produce a segfault with Message.get()
Status: RESOLVED FIXED
Product: Samba 4.0
Classification: Unclassified
Component: Other
unspecified
Other Linux
: P3 normal
: ---
Assigned To: Andrew Bartlett
Matthias Dieter Wallnöfer
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-09-14 08:51 UTC by Matthieu Patou
Modified: 2009-09-14 11:38 UTC (History)
0 users

See Also:


Attachments
Script that allow to reproduce the error (1.43 KB, text/x-python)
2009-09-14 08:51 UTC, Matthieu Patou
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matthieu Patou 2009-09-14 08:51:15 UTC
The get method of the Message class takes a string as a parameter, if another class is passed then we receive a segfault:

Program received signal SIGSEGV, Segmentation fault.
0xb7da0078 in strcmp () from /lib/tls/i686/cmov/libc.so.6
(gdb) btr
Undefined command: "btr".  Try "help".
(gdb) bt
#0  0xb7da0078 in strcmp () from /lib/tls/i686/cmov/libc.so.6
#1  0xb75a9898 in py_ldb_msg_getitem_helper (self=0xb7d09360, py_name=0xb7d09350) at lib/ldb/pyldb.c:1763
#2  0xb75a999c in py_ldb_msg_get (self=0xb7d09360, args=0xb7be586c) at lib/ldb/pyldb.c:1788
#3  0x080de562 in PyEval_EvalFrameEx ()
#4  0x080e00b8 in PyEval_EvalCodeEx ()
#5  0x080e0217 in PyEval_EvalCode ()
#6  0x080fe0e1 in PyRun_FileExFlags ()
#7  0x080fe43a in PyRun_SimpleFileExFlags ()
#8  0x0805c882 in Py_Main ()
#9  0x0805b972 in main ()
Comment 1 Matthieu Patou 2009-09-14 08:51:49 UTC
Created attachment 4688 [details]
Script that allow to reproduce the error
Comment 2 Matthias Dieter Wallnöfer 2009-09-14 11:38:44 UTC
Should be fixed now (consider changelog). Thanks for reporting!