[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: slapd: attr.c:481: attr_merge: Assertion

Michael Ströder wrote:

What does it mean when slapd aborts with this assertion?

------------------------------------ snip ------------------------------------
slapd: attr.c:481: attr_merge: Assertion `( nvals == ((void *)0)&&
(*a)->a_nvals == (*a)->a_vals ) || ( nvals != ((void *)0)&&  ( ( (*a)->a_vals
== ((void *)0)&&  (*a)->a_nvals == ((void *)0) ) || ( (*a)->a_nvals !=
(*a)->a_vals ) ) )' failed.
------------------------------------ snip ------------------------------------

In the source code there is a FIXME remark. Does that remark mean the
assertion is still not as strict as required or that the assertion might be
too strict?

Maybe Ando remembers why he wrote FIXME there. Looking at the git log, the original commit was actually wrong. Ando fixed it later, perhaps he just forgot to remove the "FIXME" afterward.

  -- Howard Chu
  CTO, Symas Corp.           http://www.symas.com
  Director, Highland Sun     http://highlandsun.com/hyc/
  Chief Architect, OpenLDAP  http://www.openldap.org/project/