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

(ITS#4285) slapd segfaults when started with -d 2 on any ldapsearch query



Full_Name: Mike Eremin
Version: 2.3.13
OS: Solaris 10 x86
URL: 
Submission from: (NULL) (195.34.32.11)


the configuration is unixODBC-2.2.11, MyODBC-3.51.11, OpenLDAP-2.3.13

# ./libexec/slapd -d 2 -h "ldap://0.0.0.0:10389";
@(#) $OpenLDAP: slapd 2.3.13 (Dec 22 2005 20:39:39) $
        root@myhost:/export/home/troodny/LDAP/openldap-2.3.13/servers/slapd
WARNING: No dynamic config support for database sql.
slapd starting
ldap_read: want=8, got=8
  0000:  30 0c 02 01 01 60 07 02                            0....`..          
ldap_read: want=6, got=6
  0000:  01 03 04 00 80 00                                  ......            
Segmentation Fault (core dumped)

after issuing 
#ldapsearch -h myhost -p 10389   

gdb backtrace on core:
#0  0xfec44aec in strlen () from /lib/libc.so.1
#1  0xfec99fce in _ndoprnt () from /lib/libc.so.1
#2  0xfec9d103 in vsnprintf () from /lib/libc.so.1
#3  0x08108c72 in ber_pvt_log_printf (errlvl=2, loglvl=0, fmt=0xfece8000
"\f\213\f") at bprint.c:137
#4  0x0810afc8 in sb_debug_read (sbiod=0xfe7fe0d9, buf=0x81b2cfb, len=8) at
sockbuf.c:825
#5  0x0810a3db in ber_int_sb_read (sb=0x81a6e40, buf=0x81b2cfb, len=8) at
sockbuf.c:409
#6  0x0810884b in ber_get_next (sb=0x81a6e40, len=0xfe7ff1a8, ber=0x81b2cf0) at
io.c:504
#7  0x08071930 in connection_read (s=8) at connection.c:1737
#8  0x0806e311 in slapd_daemon_task (ptr=0x0) at daemon.c:2034
#9  0xfecbf525 in _thr_setup () from /lib/libc.so.1
#10 0xfecbf810 in L3_doit () from /lib/libc.so.1
#11 0xfef32400 in ?? ()
#12 0x00000000 in ?? ()
#13 0x00000000 in ?? ()
Cannot access memory at address 0xfe800000