[freetds] Openldap segfaults in freetds code.
freddyz77 at tin.it
Tue May 20 06:56:09 EDT 2003
Il mar, 2003-05-20 alle 09:19, Hindrik Buining ha scritto:
> Hi all,
> I am trying to run openldap with a sybase v12.5 backend.
> The software I am running is openldap-2.1.19, unixODBC-2.2.5, freetds-0.61
> on SunOS myhost 5.8 Generic_108528-13 sun4u sparc SUNW,Ultra-4
> When starting up openldap segfaults.
> Running the server under gdb shows that segfault occurs inside the freetds
> I am using the sample table schema and data provided with openldap.
> If I change my odbc connection (in odbc.ini) to a postgresql db instead of
> Sybase db (with identical tables and data) then the system works.
> This would seem to me to suggest that the problem is somewhere in the
> freetds/unixodbc world rather than a problem with openldap.
> However I can run isql compiled against unixodbc and using freetds.
> This gives me no problems.
> I can even run the same queries through isql that openldap passes to the sql
> (I logged the queries passed to postgresql by openldap and then ran them
> under isql on my sybase db).
> I don't know what to try next?
> I suspect the problem is somewhere in freetds because that is where the ldap
> daemon seg faults.
> Has anyone had similar problems?
> Can anyone please help me?
> I have included relevant config files below.
> - Hindrik
Thanks for your report. It's fixed on CVS (both 0.61 and developing).
Changed files are include/tdsodbc.h and src/odbc/odbc.c (you can get
updated files from cvs, also in http://sf.net/projects/freetds, browse
cvs if you haven't CVS access, use BRANCH0_61 to update 0.61 version)
More information about the FreeTDS