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

RE: slapd segmentation fault on startup no core (ITS#2345)



Backtrace...

Thanks,
DwD

[root gdb-5.3]# gdb
GNU gdb 5.3
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i586-pc-linux-gnu".
(gdb) file /usr/local/libexec/slapd
Reading symbols from /usr/local/libexec/slapd...(no debugging symbols
found)...
done.
(gdb) run
Starting program: /home/local/libexec/slapd
[New Thread 1024 (runnable)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (runnable)]
0x08118eb7 in __ham_pgin ()
(gdb) backtrace
#0  0x08118eb7 in __ham_pgin ()
#1  0x40241830 in __memp_pg (dbmfp=0x8173398, bhp=0x81811f8, is_pgin=1)
    at mp/mp_bh.c:489
#2  0x402412e1 in __memp_pgread (dbmfp=0x8173398, bhp=0x81811f8,
can_create=0)
    at mp/mp_bh.c:213
#3  0x40241f08 in memp_fget (dbmfp=0x8173398, pgnoaddr=0xbfffb570, flags=1,
    addrp=0x81733d0) at mp/mp_fget.c:302
#4  0x40237ff4 in __ham_get_page (dbp=0x81731f8, addr=0, pagep=0x81733d0)
    at hash/hash_page.c:1523
#5  0x402303cd in __ham_open (dbp=0x81731f8, dbinfo=0x0) at hash/hash.c:140
#6  0x40225b3b in __nss_db_open (fname=0x40021bc0 "/etc/sasldb",
type=DB_HASH,
    flags=65536, mode=432, dbenv=0x0, dbinfo=0x0, dbpp=0xbfffb92c)
    at db/db.c:649
#7  0x40020e1a in berkeleydb_open (conn=0x0, rdwr=0, mbdb=0xbfffb92c)
    at db_berkeley.c:83
#8  0x40021031 in getsecret (context=0x0, mechanism=0x402590e9 "CRAM-MD5",
    auth_identity=0x4025913d "", realm=0x4025913d "", secret=0xbfffb9ac)
    at db_berkeley.c:191
#9  0x40258597 in mechanism_db_filled (mech_name=0x402590e9 "CRAM-MD5",
    utils=0x8173af0) at cram.c:593
#10 0x402588cf in sasl_server_plug_init (utils=0x8173af0, maxversion=3,
    out_version=0xbfffba2c, pluglist=0xbfffba30, plugcount=0xbfffba34)
    at cram.c:815
#11 0x4001d533 in add_plugin (p=0x4025887c, library=0x8174400) at
server.c:446
#12 0x4002004e in _sasl_get_mech_list (
    entryname=0x40021a1e "sasl_server_plug_init", getpath_cb=0x40022d44,
    verifyfile_cb=0x40022d50, add_plugin=0x4001d500 <add_plugin>)
    at dlopen.c:265
#13 0x4001d995 in sasl_server_init (callbacks=0x81630c8,
    appname=0x814284c "slapd") at server.c:675
#14 0x0808459f in strcpy () at ../sysdeps/generic/strcpy.c:30
#15 0x080740b3 in strcpy () at ../sysdeps/generic/strcpy.c:30
#16 0x0805451f in strcpy () at ../sysdeps/generic/strcpy.c:30
#17 0x401369cb in __libc_start_main (main=0x8054184 <strcpy+296>, argc=1,
    argv=0xbffffbb4, init=0x805344c <_init>, fini=0x812ea40 <_fini>,
    rtld_fini=0x4000aea0 <_dl_fini>, stack_end=0xbffffbac)
    at ../sysdeps/generic/libc-start.c:92
(gdb)...



-----Original Message-----
From: Pierangelo Masarati [mailto:openldap-its@OpenLDAP.org]
Sent: Monday, March 03, 2003 3:59 PM
To: daryl@dunbar.com
Subject: Re: slapd segmentation fault on startup no core (ITS#2345)


> Full_Name: Daryl W. Dunbar
> Version: 2.1.14
> OS: Linux 2.2 on Sun/Cobalt RaQ
> URL: ftp://ftp.openldap.org/incoming/
> Submission from: (NULL) (12.141.96.109)
>
>
> I have compiled OpenLDAP 2.1.14 on my Linux RaQ along with BDB-1.4.

BDB-1.4 sounds impossible.

> When
> attempting to run it or perform make test, this is all I get (no core is
> produced):
>
> [root /etc]# /usr/local/libexec/slapd -4 -d 255
> @(#) $OpenLDAP: slapd 2.1.14 (Mon Mar  3 13:40:14 CST 2003) $
>         root@ns1.dunbar.com:/home/local/src/openldap-2.1.14/servers/slapd
> daemon_init: <null>
> daemon_init: listen on ldap:///
> daemon_init: 1 listeners to open...
> ldap_url_parse_ext(ldap:///)
> daemon: initialized ldap:///
> daemon_init: 1 listeners opened
> slapd init: initiated server.
> Segmentation fault
> [root /etc]#

you should send a stack backtrace to allow debugging.

p.