Re: (ITS#5526) Another segmentation fault
by quanah@zimbra.com
--On Friday, May 23, 2008 9:02 AM +0000 zulcss(a)ubuntu.com wrote:
> Full_Name: Chuck Short
> Version: 3.2.7
> OS: Ubuntu
> URL: ftp://ftp.openldap.org/incoming/
> Submission from: (NULL) (82.142.121.161)
>
>
> Hello,
>
> We received another report of a segmentation fault in openldap 3.2.7. The
> bug report with the test case can be found at:
>
> http://bugs.launchpad.net/bugs/234196
>
> If you have any questions please let me know.
Sure. What is OpenLDAP 3.2.7? And the bug reported here was already fixed
in OpenLDAP 2.4.9 IIRC. Please validate bugs against 2.4.9 before filing
an ITS.
Thanks,
Quanah
--
Quanah Gibson-Mount
Principal Software Engineer
Zimbra, Inc
--------------------
Zimbra :: the leader in open source messaging and collaboration
15 years, 6 months
Re: (ITS#5506) syncprov crash with RE24 CVS
by hyc@symas.com
Mark Cave-Ayland wrote:
> Mark Cave-Ayland wrote:
>
>> Okay. I've arranged for a set of new packages (based upon HEAD) to be
>> built and installed tomorrow, so will feedback on progress in a few days
>> after the new packages have had time to settle in.
>
> Just to feedback on this bug: we have been running packages from CVS
> HEAD dated 2008-05-14 on our client setup (which is basically openldap
> 2.4.9 plus fixes for ITS#5503 and ITS#5506), and I am pleased to report
> that we have had no more core files produced since the packages were
> installed in the middle of last week.
>
> I'm happy for this ticket to be closed, plus I would suggest closing
> ITS#5501, which since it hasn't occurred since, is likely to be another
> symptom of this bug.
Thanks for the followup. We'll close this and #5501 with 2.4.10.
--
-- Howard Chu
CTO, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/
15 years, 6 months
Re: (ITS#5506) syncprov crash with RE24 CVS
by mark.cave-ayland@siriusit.co.uk
Mark Cave-Ayland wrote:
> Okay. I've arranged for a set of new packages (based upon HEAD) to be
> built and installed tomorrow, so will feedback on progress in a few days
> after the new packages have had time to settle in.
Just to feedback on this bug: we have been running packages from CVS
HEAD dated 2008-05-14 on our client setup (which is basically openldap
2.4.9 plus fixes for ITS#5503 and ITS#5506), and I am pleased to report
that we have had no more core files produced since the packages were
installed in the middle of last week.
I'm happy for this ticket to be closed, plus I would suggest closing
ITS#5501, which since it hasn't occurred since, is likely to be another
symptom of this bug.
Thanks once again for your help,
Mark.
--
Mark Cave-Ayland
Sirius Corporation - The Open Source Experts
http://www.siriusit.co.uk
T: +44 870 608 0063
15 years, 6 months
Re: (ITS#5518) Assertion error in io.c:234: ber_flush2
by hyc@symas.com
Howard Chu wrote:
> paul(a)mad-scientist.us wrote:
>> Hi all; I just posted a new bug 5525 that describes exactly how this
>> happens and where the bug is. I came to this conclusion while trying to
>> find a crasher in Evolution Exchange: I ran it under valgrind to find
>> the use of freed memory.
>>
>> Hopefully this will provide us with a quick fix!
>
> Thanks for tracking this down Paul. I think you've nailed it for us, we should
> be able to patch this pretty soon.
>
I replied to #5525 that a patch for this is now in HEAD. Please test.
I've now closed #5525 as a dup of this bug.
--
-- Howard Chu
CTO, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/
15 years, 6 months
Re: (ITS#5429) component Matching
by hyc@symas.com
ron(a)zytrax.com wrote:
> Full_Name: Ron Aitchison
> Version: 2.4.8
> OS: FreeBSD (5.4/6.2)
> URL: ftp://ftp.openldap.org/incoming/
> Submission from: (NULL) (209.148.181.131)
>
>
> Component matching (RFC 3687) is defined to be released with 2.4.8. However it
> is conditionally compiled from the variable LDAP_COMP_MATCH which is only set
> (in servers/slapd/slap.h) if LDAP_DEVEL is set. LDAP_DEVEL is not set by default
> in a normal build. The net result is that component matching is not included in
> an OpenLDAP build.
It's not clear that this feature is safe for use. It's certain that indexing
for component matching in back-bdb is broken. Unindexed matching may or may
not work. The lead developer on this feature is gone, so until someone else
comes along to adopt the code it's going to remain DEVEL-only.
--
-- Howard Chu
CTO, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/
15 years, 6 months
Re: (ITS#5525) libldap causes a core dump due to accessing freed memory
by hyc@symas.com
paul(a)mad-scientist.us wrote:
> Full_Name: Paul Smith
> Version: 2.4.7
> OS: Ubuntu 8.04
> URL:
> Submission from: (NULL) (65.78.30.67)
> If you check ldap_free_connection() you'll see that it removes the LDAPConn
> pointer "lc" from the list of connections before it is freed.
>
> BUT! The ldap_free_connection() function never does anything with the
> ld->ld_defconn pointer, so if the connection we just freed is the one pointed to
> by ld->ld_defconn, it is now pointing to freed memory. And that causes the
> problem detected above by valgrind, or causing an assert later on: accessing
> freed memory.
>
> I'm not really sure what the right thing to do here is, or I'd provide a patch.
> Should we set ld_defconn to NULL? Is that ever a valid state? Or should we
> just pick another connection from the list (and what if there isn't one?)
A fix is now in HEAD, please test. The solution sets ld_defconn to NULL, and
also closes ld->ld_sb if necessary. In that case, ldap_send_initial_request
will create a new defconn before calling ldap_send_server_request.
--
-- Howard Chu
CTO, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/
15 years, 6 months
Permission denied while opening odbcinst.ini
by Andreas Backman
Hi all!
I'm trying to configure an OpenLDAP server with a mySQL server as back-end.
This is what happens when i try to start the server.
root@ldap:~# slapd -d1
---------
backsql_open_db_handle(): SQLConnect() to database "MySQL" failed.
Return code: -1
nativeErrCode=0 SQLengineState=IM002 msg="[unixODBC][Driver Manager]Data
source name not found, and no default driver specified"
---------
I couldn't find anything wrong with my configuration (see odbc.ini and
odbcinst.ini below) so i tried strace:
root@ldap:~# strace -o /tmp/out.txt slapd
root@ldap:~# grep odbc /tmp/out.txt
open("/usr/lib/libodbc.so.1", O_RDONLY) = 3
open("/etc/odbcinst.ini", O_RDONLY) = -1 EACCES (Permission denied)
access("/etc/odbc.ini", F_OK) = 0
stat64("/etc/odbc.ini", {st_mode=S_IFREG|0644, st_size=598, ...}) = 0
open("/etc/odbcinst.ini", O_RDONLY) = -1 EACCES (Permission denied)
Permissions of odbc.ini and odbcinst.ini
root@ldap:/etc# ls odbc*.ini -l
-rw-r--r-- 1 root root 598 2008-05-23 08:50 odbc.ini
-rw-r--r-- 1 root root 549 2008-05-23 08:49 odbcinst.ini
Contents of my odbc.ini and odbcinst.ini:
odbc.ini:
---------
[MySQL]
Description = MySQL test database
Driver = MySQL
SERVER = 192.168.100.38
USER = root
PASSWORD = ***
PORT = 3306
DATABASE = kplatsen
----------
odbsinst.ini
----------
[MySQL]
Description = MySQL driver for Linux & Win32
Driver = /usr/lib/odbc/libmyodbc3.so
Setup = /usr/lib/odbc/libmyodbc3S.so
FileUsage = 1
[Default]
Driver = /usr/lib/odbc/libmyodbc.so
UsageCount = 1
----------
I've tested the ODBC-connection with:
root@ldap:~# isql MySQL
and it works...
Please help!
15 years, 6 months
Re: (ITS#5518) Assertion error in io.c:234: ber_flush2
by hyc@symas.com
paul(a)mad-scientist.us wrote:
> Hi all; I just posted a new bug 5525 that describes exactly how this
> happens and where the bug is. I came to this conclusion while trying to
> find a crasher in Evolution Exchange: I ran it under valgrind to find
> the use of freed memory.
>
> Hopefully this will provide us with a quick fix!
Thanks for tracking this down Paul. I think you've nailed it for us, we should
be able to patch this pretty soon.
--
-- Howard Chu
CTO, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/
15 years, 6 months