This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: ldap get_option(0) causes segfault
Type: Stage:
Components: Library (Lib) Versions:
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: nnorwitz, seanburford
Priority: normal Keywords:

Created on 2006-07-19 23:31 by seanburford, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg29220 - (view) Author: Sean Burford (seanburford) Date: 2006-07-19 23:31
$ /usr/bin/python2.4
Python 2.4.1 (#2, Mar 30 2005, 21:51:10) 
[GCC 3.3.5 (Debian 1:3.3.5-8ubuntu2)] on linux2
Type "help", "copyright", "credits" or "license" for
more information.
>>> import ldap
>>> l=ldap.open('abc')
>>> l.get_option(0)
Segmentation fault

$ /usr/bin/python2.3
Python 2.3.5 (#2, Aug 30 2005, 13:43:24) 
[GCC 3.3.5 (Debian 1:3.3.5-8ubuntu2)] on linux2
Type "help", "copyright", "credits" or "license" for
more information.
>>> import ldap
>>> l=ldap.open('abc')
>>> l.get_option(0)


Under GDB with 2.4.1:

>>> l.get_option(0)
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1209606016 (LWP 27694)]
0xb7ee4d8b in strlen () from /lib/tls/i686/cmov/libc.so.6
(gdb) bt
#0  0xb7ee4d8b in strlen () from
/lib/tls/i686/cmov/libc.so.6
#1  0x080dc668 in Py_InitModule4 ()
#2  0x080dce8e in PyModule_AddStringConstant ()
#3  0x080dc6ba in Py_InitModule4 ()
#4  0x080dc755 in Py_VaBuildValue ()
#5  0x080dc6d8 in Py_BuildValue ()
#6  0xb7fde111 in LDAP_get_option ()
   from /usr/lib/python2.4/site-packages/_ldap.so
#7  0xb7fd9127 in py_ldap_sasl_interaction ()
   from /usr/lib/python2.4/site-packages/_ldap.so
#8  0x081071fa in PyCFunction_Call ()
#9  0x0805c449 in PyObject_Call ()
#10 0x080afc34 in PyEval_CallObjectWithKeywords ()
#11 0x080add4c in PyEval_EvalFrame ()
#12 0x080ae42e in PyEval_EvalCodeEx ()
#13 0x080af849 in PyEval_CallObjectWithKeywords ()
#14 0x080af464 in PyEval_CallObjectWithKeywords ()
#15 0x080ad9b7 in PyEval_EvalFrame ()
#16 0x080af8cd in PyEval_CallObjectWithKeywords ()
#17 0x080af464 in PyEval_CallObjectWithKeywords ()
#18 0x080ad9b7 in PyEval_EvalFrame ()
#19 0x080ae42e in PyEval_EvalCodeEx ()
#20 0x080b11a9 in PyEval_EvalCode ()
#21 0x080df38b in PyRun_FileExFlags ()
#22 0x080de88e in PyRun_InteractiveOneFlags ()
#23 0x080de683 in PyRun_InteractiveLoopFlags ()
#24 0x080dfd32 in PyRun_AnyFileExFlags ()
#25 0x080554a4 in Py_Main ()
#26 0x08054f2b in main ()
msg29221 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2006-07-20 03:33
Logged In: YES 
user_id=33168

ldap is not part of the Python core.  You should file this
bug with the ldap maintainers or whoever provided the ldap
module.
History
Date User Action Args
2022-04-11 14:56:19adminsetgithub: 43696
2006-07-19 23:31:38seanburfordcreate