slapd: search.c:970: oc_filter: Assertion `f != ((void *)0)' failed.

Bug #243337 reported by Anderson
2
Affects Status Importance Assigned to Milestone
openldap2.3 (Ubuntu)
Fix Released
Undecided
Unassigned
Hardy
Won't Fix
Undecided
Unassigned
Intrepid
Fix Released
Undecided
Unassigned

Bug Description

I am trying to use a couple of "unique" overlays, but when adding new entries in my database, I get a failed assertion in server:

slapd: search.c:970: oc_filter: Assertion `f != ((void *)0)' failed.

I think the problem occurs only when the first overlay does not detect violations, but the second does. I not tested the other case yet, but if I swap overlay declarations in "maindb-commonparams.conf", the crash also happens.

Running Ubuntu Hardy Heron, x86 architecture, OpenLDAP version is 2.4.9-0ubuntu0.8.04. But I did a step forward and saw the same bug in OpenLDAP 2.4.10 I compiled by myself.

Steps to reproduce:

# Download and extract the attached file in an existing folder "/home/amg1127".
# Change working directory to "/home/amg1127/ldap"
# Run "./create-master-base.sh"
# Run "./run-master-slapd.sh"
# In another terminal, run: "./crash-server.sh"
# slapd: search.c:970: oc_filter: Assertion `f != ((void *)0)' failed.

I used these flags while compiling OpenLDAP 2.4.10:

# ./configure --prefix=/home/amg1127/openldap-2.4.10-bin --enable-dynamic --enable-spasswd --enable-modules --enable-slapi --enable-backends=mod --enable-overlays=mod --with-tls=gnutls

I can reproduce the bug in OpenLDAP 2.4.10, so I will open an ITS and paste URL here in some minutes.

Thanks.

Revision history for this message
Anderson (amg1127) wrote :
Revision history for this message
Anderson (amg1127) wrote :

I will attach a GDB backtrace, also...

Revision history for this message
Anderson (amg1127) wrote :
Revision history for this message
Anderson (amg1127) wrote :

GDB backtrace with OpenLDAP 2.4.10...

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package openldap2.3 - 2.4.9-1ubuntu4

---------------
openldap2.3 (2.4.9-1ubuntu4) intrepid; urgency=low

  * debian/patches/fix-unique-overlay-assertion.patch:
    - Fix another assertion error in unique overlay, backported from head.
      (LP: #243337) Note: This patch will still be needed when moved to 2.4.10

 -- Chuck Short <email address hidden> Mon, 30 Jun 2008 18:49:52 +0000

Changed in openldap2.3:
status: New → Fix Released
Revision history for this message
Rolf Leggewie (r0lf) wrote :

Hardy has seen the end of its life and is no longer receiving any updates. Marking the Hardy task for this ticket as "Won't Fix".

Changed in openldap2.3 (Ubuntu Hardy):
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.