- - - - - - - - - - - - - - - - - - - - - - - - - - - -
Name: pascal
Subject: Re: segfault on indexing
Hello Maxime,
it can be something you changed between 4.30-22012006 and now, because this
version runs fine.
debian:/home/pascal/dpsearch-4.38-19022006# /usr/local/dpsearch/sbin/indexer -T
indexer[25135]: {00} indexer from dpsearch-4.30-22012006-mysql, config test OK
with '/usr/local/dpsearch/etc/indexer.conf'
Hope this helps you.
Thank you for your support.
./configure --prefix=/usr/local/dp-test --bindir=/usr/local/dp-test/bin
--sbindir=/usr/local/dp-test/sbin --sysconfdir=/usr/local/dp-test/etc
--localstatedir=/usr/local/dp-test/var --libdir=/usr/local/dp-test/lib
--includedir=/usr/local/dp-test/include --mandir=/usr/local/dp-test/man
--enable-shared --enable-syslog --enable-pthreads --enable-parser --enable-mp3
--without-aspell --enable-file --enable-http --enable-ftp --enable-htdb
--enable-news --with-mysql --without-aspell --enable-memdebug
debian:/home/pascal/dpsearch-4.38-19022006# /usr/local/dp-test/sbin/indexer -T
Internal memory debugger based on Electric Fence 2.2.0 Copyright (C)
1987-1999 Bruce Perens
indexer[25099]: {00} indexer from dpsearch-4.38-19022006-mysql, config test OK
with '/usr/local/dp-test/etc/indexer.conf'
Memory leaks checking
debian:/home/pascal/dpsearch-4.38-19022006# /usr/local/dp-test/sbin/indexer
Internal memory debugger based on Electric Fence 2.2.0 Copyright (C)
1987-1999 Bruce Perens
MemDebug Aborting: Allocating 0 bytes, probably a bug at server.c:184.
Ungültiger Maschinenbefehl (core dumped)
debian:/home/pascal/dpsearch-4.38-19022006# gdb /usr/local/dp-test/sbin/indexer
core
GNU gdb 6.3-debian
Copyright 2004 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 "x86_64-linux"...Using host libthread_db library
"/lib/libthread_db.so.1".
Core was generated by `/usr/local/dp-test/sbin/indexer'.
Program terminated with signal 4, Illegal instruction.
Reading symbols from /usr/local/dp-test/lib/libdpsearch-4.so...done.
Loaded symbols for /usr/local/dp-test/lib/libdpsearch-4.so
Reading symbols from /lib/libpthread.so.0...done.
Loaded symbols for /lib/libpthread.so.0
Reading symbols from /lib/librt.so.1...done.
Loaded symbols for /lib/librt.so.1
Reading symbols from /lib/libm.so.6...done.
Loaded symbols for /lib/libm.so.6
Reading symbols from /usr/lib/libz.so.1...done.
Loaded symbols for /usr/lib/libz.so.1
Reading symbols from /usr/lib/libmysqlclient.so.12...done.
Loaded symbols for /usr/lib/libmysqlclient.so.12
Reading symbols from /usr/local/dp-test/lib/libdpcharset-4.so...done.
Loaded symbols for /usr/local/dp-test/lib/libdpcharset-4.so
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/ld-linux-x86-64.so.2...done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
Reading symbols from /lib/libcrypt.so.1...done.
Loaded symbols for /lib/libcrypt.so.1
Reading symbols from /lib/libnsl.so.1...done.
Loaded symbols for /lib/libnsl.so.1
Reading symbols from /lib/libnss_files.so.2...done.
Loaded symbols for /lib/libnss_files.so.2
#0 0x0000002a9600b979 in kill () from /lib/libc.so.6
(gdb) bt
#0 0x0000002a9600b979 in kill () from /lib/libc.so.6
#1 0x0000002a956e0d55 in do_abort () at ef_print.c:47
#2 0x0000002a956e109d in EF_Abort (pattern=0x620c <Address 0x620c out of
bounds>)
at ef_print.c:166
#3 0x0000002a956e05b6 in _DpsMemalign (alignment=4, userSize=0,
filename=0x2a95709bf8 "server.c", fileline=184) at efence.c:509
#4 0x0000002a95e357d6 in _DpsXmalloc (size=0, filename=0x4 <Address 0x4 out of
bounds>,
fileline=1) at xmalloc.c:34
#5 0x0000002a95e35827 in _DpsXrealloc (ptr=0x620c,
newsize=18374403900871474943,
filename=0x0, fileline=18446744073709551615) at xmalloc.c:44
#6 0x0000002a956bab9d in DpsServerAdd (A=0x508120, srv=0x7fbfffddb0) at
server.c:184
#7 0x0000002a9569dd08 in add_srv (Cfg=0x7fbffff630, ac=2, av=0x7fbfffcc60) at
conf.c:286
#8 0x0000002a956a10da in DpsEnvAddLine (C=0x7fbffff630,
str=0x620c <Address 0x620c out of bounds>) at conf.c:1654
#9 0x0000002a956a1389 in EnvLoad (Cfg=0x7fbffff630,
cname=0x5072a0 "/usr/local/dp-test/etc/indexer.conf") at conf.c:1773
#10 0x0000002a956a1670 in DpsEnvLoad (Indexer=0x508120,
cname=0x5072a0 "/usr/local/dp-test/etc/indexer.conf", lflags=0) at
conf.c:1832
#11 0x00000000004032a9 in DpsIndexerEnvLoad (Indexer=0x508120,
fname=0x5072a0 "/usr/local/dp-test/etc/indexer.conf", lflags=1) at
main.c:562
#12 0x0000000000404c48 in main (argc=-1, argv=0x7fbffffc50) at main.c:1216
(gdb)
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
Read the full topic here:
http://www.dataparksearch.org/cgi-bin/simpleforum.cgi?fid=02;topic_id=1137887033;page=3