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

RE: make test fails on test02-glue (core dump) (ITS#2311)



I have linked slapadd using -lmtmalloc and run this test on Solaris 8; the
problem did not occur. I also reran the test after enabling MTDEBUGPATTERN
and MTINITBUFFER and still there was no failure. Perhaps your mtmalloc
library is broken.

As a final test, rerun the test using gdb:
  cd tests
  gdb ../servers/slapd/tools/slapadd
  run -d <debuglevel> -f test-db/slapd.conf -l data/test-ordered.ldif

get a back trace ("bt") from where it crashes. The stack in the trace you
included below is not intelligible; the crash occurs at an address without
any corresponding symbol information. Possibly the runtime stack was
corrupted by whatever malloc error is occurring.

  -- Howard Chu
  Chief Architect, Symas Corp.       Director, Highland Sun
  http://www.symas.com               http://highlandsun.com/hyc
  Symas: Premier OpenSource Development and Support

> -----Original Message-----
> From: owner-openldap-bugs@OpenLDAP.org
> [mailto:owner-openldap-bugs@OpenLDAP.org]On Behalf Of
joseph.tingiris@cox.net

> I've figured out if I compile with -lmtmalloc, I get this
> failure.  If I
> don't compile with it, this test will pass ...
>
> >>>>> Starting test012-glue  ...
> running defines.sh
> Cleaning up in ./test-db...
> Running slapadd to build glued slapd databases...
> Segmentation Fault - core dumped
> slapadd failed (139)!
> >>>>> ./scripts/test012-glue failed  (exit 139)
> make[1]: *** [test-bdb] Error 139
> make[1]: Leaving directory
> `/openldap/journal/src/replica-20030205-1620/openldap-2.1.12/tests'
> make: *** [test] Error 2
>
>
> ----- Original Message -----
> From: <joseph.tingiris@cox.net>
> To: <openldap-its@OpenLDAP.org>
> Sent: Tuesday, February 11, 2003 12:30 PM
> Subject: make test fails on test02-glue (core dump) (ITS#2311)
>
>
> > Full_Name: Joseph Tingiris
> > Version: 2.1.12
> > OS: Solaris 8
> > URL: ftp://ftp.openldap.org/incoming/
> > Submission from: (NULL) (206.157.224.254)
> >
> >
> > Here's a pstack of the core ... i can reproduce this by
> just running make
> test,
> > again.
> >
> > Openldap 2.1.12
> > Berkeley DB 4.1.25
> > No kerberos, sasl, or openssl (not compiled or present on
> the system).
> >
> > core 'core' of 17302:   ../servers/slapd/tools/slapadd -d 261 -f
> > ./test-db/slapd.conf -l ./dat
> >  414d4520 ???????? (0, 97000, 7c108, ffbef8f3, 0, 0)
> >  00032248 slap_startup (758c58, 210, 97000, 1, 97000, 35db8) + 6c
> >  00037f58 slap_tool_init (ffffffff, 2, 7, ffbef7c4, 95400,
> 98000) + 4fc
> >  00011e2c main     (7, ffbef7c4, ffbef7e4, 9809c, 0, 0) + 2c
> >  00011cc8 _start   (0, 0, 0, 0, 0, 0) + 5c