core dump / Objects/dictobject.c:471: bad argument to internal function
(::) Bob Ippolito
bob at redivi.com
Sun Jun 17 04:06:17 CEST 2001
I got it to work.. what I had to do was turn off CIDict.. like this in setup.py
line 16: defines = [#-- ('USE_CIDICT', None),
it fixed both modes (I guess they're called synchronous and asynchronous?).. no
more SystemError or core dump.
Quoting "(::) Bob Ippolito" <bob at redivi.com>:
> I'm having a problem using python-ldap (redhat linux).
> ActivePython 2.1, build 210
> OpenLDAP 2.0.11
> This is with the latest CVS version of python-ldap.. 1.10alpha3 wouldn't
> compile with OpenLDAP 2.0.11, I haven't found the patch to try it.
> Any ideas? I've tried using different values for bind and search, and
> worked fine if I issued a search that doesn't have any results.. but any
> that has results gets that dictobject error, or just core dumps!
> (from the interpreter)
> >>> import _ldap
> >>> l=_ldap.open("localhost")
> >>> l.simple_bind_s("","")
> >>> l.search_s("",0,"objectclass=*")
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> SystemError: Objects/dictobject.c:471: bad argument to internal
> >>> l.search("",0,"objectclass=*")
> >>> print l.result(3)
> Segmentation fault (core dumped)
> It's a weird install of redhat, and I haven't been using RPM's.. so I
> want to try one. I just want to compile it myself and have it work.
> (::) bob
More information about the python-ldap