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

Segmentation fault and perl backend...



Hi!

I'm have compiled slapd 2.3.24 (more technical data last) and successfully
started it with some test data using bdb (as well as hdb, ldbm).

I then started experimenting with back-perl.

1. First I got some error messages about my syntax with reference to
slapd.conf line suffix. This is probably quite correct although I don't
particularly understand why (the error might well be in my schema
extensions). I turned off schemachecking.

2. I got some errors about my schema files. This is as it should be
because the matching rules were chosen with an earlier version of openLDAP
in mind. I changed them inserting such rules as booleanMatch and
integerOrderingMatch.

3. When everything was fixed I tried to run slapd which exited immediately
with segfault. I have seen the combination back-perl and segfault several
times in my search (on the internet) for the bug, however I'm not sure
which of these cases that apply. It seems that some understanding as to
what does this exists but that no patch has been made.

What is the status of this. Is there a fix for this problem?

Johan Jönemo

Technical data:

System: SuSE 10.0 on intel 32 bit processor
OpenLDAP: 2.3.24
Perl: 5.8.7

Last line of output before crash (with -d -1):
line 86 (perlModulePath /usr/local/libexec)
zsh: segmentation fault  /usr/local/libexec/slapd -d -1

slapd configuration options:
./configure --program-prefix=jj1 --enable-dynamic --enable-debug
--enable-crypt --enable-lmpasswd --enable-spasswd --enable-modules
--enable-backends=mod --enable-sql=no --enable-overlays=mod
--enable-dependency-tracking

(some of the options are probably superfluous and the prefix didn't seem
to do anything)

More perl data:
Summary of my perl5 (revision 5 version 8 subversion 7) configuration:
  Platform:
    osname=linux, osvers=2.6.12, archname=i586-linux-thread-multi
    uname='linux xw8200 2.6.12 #1 smp wed dec 14 13:10:38 utc 2005 i686
i686 i386 gnulinux '
    config_args='-ds -e -Dprefix=/usr -Dvendorprefix=/usr
-Dinstallusrbinperl -Dusethreads -Di_db -Di_dbm -Di_ndbm -Di_gdbm
-Duseshrplib=true -Doptimize=-O2 -march=i586 -mtune=i686
-fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -g -Wall -pipe'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=define use5005threads=undef useithreads=define
usemultiplicity=define
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS
-DDEBUGGING -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64',
    optimize='-O2 -march=i586 -mtune=i686 -fmessage-length=0 -Wall
-D_FORTIFY_SOURCE=2 -g -Wall -pipe',
    cppflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING
-fno-strict-aliasing -pipe'
    ccversion='', gccversion='4.0.2 20050901 (prerelease) (SUSE Linux)',
gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
    alignbytes=4, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =''
    libpth=/lib /usr/lib /usr/local/lib
    libs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
    perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
    libc=/lib/libc-2.3.5.so, so=so, useshrplib=true, libperl=libperl.so
    gnulibc_version='2.3.5'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E
-Wl,-rpath,/usr/lib/perl5/5.8.7/i586-linux-thread-multi/CORE'
    cccdlflags='-fPIC', lddlflags='-shared'


Characteristics of this binary (from libperl):
  Compile-time options: DEBUGGING MULTIPLICITY USE_ITHREADS
                        USE_LARGE_FILES PERL_IMPLICIT_CONTEXT
  Locally applied patches:
        SPRINTF0 - fixes for sprintf formatting issues - CVE-2005-3962
  Built under linux
  Compiled at Dec 17 2005 03:22:02
  @INC:
    /usr/lib/perl5/5.8.7/i586-linux-thread-multi
    /usr/lib/perl5/5.8.7
    /usr/lib/perl5/site_perl/5.8.7/i586-linux-thread-multi
    /usr/lib/perl5/site_perl/5.8.7
    /usr/lib/perl5/site_perl
    /usr/lib/perl5/vendor_perl/5.8.7/i586-linux-thread-multi
    /usr/lib/perl5/vendor_perl/5.8.7
    /usr/lib/perl5/vendor_perl
    .