- - - - - - - - - - - - - - - - - - - - - - - - - - - -
Name: pascal
Subject: Re: segfault on indexing
debian:/home/pascal/dpsearch-4.38-17022006# ./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 --disable-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-17022006# /usr/local/dp-test/sbin/indexer -T
Internal memory debugger based on Electric Fence 2.2.0 Copyright (C)
1987-1999 Bruce Perens
indexer[8796]: {00} indexer from dpsearch-4.38-18022006-mysql, config test OK
with '/usr/local/dp-test/etc/indexer.conf'
Memory leaks checking
debian:/home/pascal/dpsearch-4.38-17022006# /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-17022006# 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/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 /lib/libc.so.6...done.
Loaded symbols for /lib/libc.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/libpthread.so.0...done.
Loaded symbols for /lib/libpthread.so.0
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 0x0000002a95adf979 in kill () from /lib/libc.so.6
(gdb)
(gdb) bt
#0 0x0000002a95adf979 in kill () from /lib/libc.so.6
#1 0x0000002a956e0bd5 in do_abort () at ef_print.c:47
#2 0x0000002a956e0f1d in EF_Abort (pattern=0x225d <Address 0x225d out of
bounds>)
at ef_print.c:166
#3 0x0000002a956e0461 in _DpsMemalign (alignment=4, userSize=0,
filename=0x2a95709a38 "server.c", fileline=184) at efence.c:509
#4 0x0000002a95f607d6 in _DpsXmalloc (size=0, filename=0x4 <Address 0x4 out of
bounds>,
fileline=1) at xmalloc.c:34
#5 0x0000002a95f60827 in _DpsXrealloc (ptr=0x225d,
newsize=18374403900871474943,
filename=0x0, fileline=18446744073709551615) at xmalloc.c:44
#6 0x0000002a956baadd in DpsServerAdd (A=0x5075a0, srv=0x7fbfffddb0) at
server.c:184
#7 0x0000002a9569dd7e in add_srv (Cfg=0x7fbffff630, ac=2, av=0x7fbfffcc60) at
conf.c:286
#8 0x0000002a956a115a in DpsEnvAddLine (C=0x7fbffff630,
str=0x225d <Address 0x225d out of bounds>) at conf.c:1656
#9 0x0000002a956a1409 in EnvLoad (Cfg=0x7fbffff630,
cname=0x506780 "/usr/local/dp-test/etc/indexer.conf") at conf.c:1775
#10 0x0000002a956a16f0 in DpsEnvLoad (Indexer=0x5075a0,
cname=0x506780 "/usr/local/dp-test/etc/indexer.conf", lflags=0) at
conf.c:1834
#11 0x0000000000402f69 in DpsIndexerEnvLoad (Indexer=0x5075a0,
fname=0x506780 "/usr/local/dp-test/etc/indexer.conf", lflags=1) at
main.c:562
#12 0x00000000004041fc in main (argc=-1, argv=0x7fbffffc50) at main.c:1216
(gdb)
the i tried with pthreads
did a make clean
seems to me the same error
debian:/home/pascal/dpsearch-4.38-17022006# ./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-17022006# /usr/local/dp-test/sbin/indexer -T
Internal memory debugger based on Electric Fence 2.2.0 Copyright (C)
1987-1999 Bruce Perens
indexer[28207]: {00} indexer from dpsearch-4.38-18022006-mysql, config test OK
with '/usr/local/dp-test/etc/indexer.conf'
Memory leaks checking
debian:/home/pascal/dpsearch-4.38-17022006# /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-17022006# 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 0x0000002a956e0e15 in do_abort () at ef_print.c:47
#2 0x0000002a956e115d in EF_Abort (pattern=0x6e30 <Address 0x6e30 out of
bounds>)
at ef_print.c:166
#3 0x0000002a956e0676 in _DpsMemalign (alignment=4, userSize=0,
filename=0x2a95709cb8 "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=0x6e30,
newsize=18374403900871474943,
filename=0x0, fileline=18446744073709551615) at xmalloc.c:44
#6 0x0000002a956bac5d in DpsServerAdd (A=0x508120, srv=0x7fbfffddb0) at
server.c:184
#7 0x0000002a9569ddbe in add_srv (Cfg=0x7fbffff630, ac=2, av=0x7fbfffcc60) at
conf.c:286
#8 0x0000002a956a119a in DpsEnvAddLine (C=0x7fbffff630,
str=0x6e30 <Address 0x6e30 out of bounds>) at conf.c:1656
#9 0x0000002a956a1449 in EnvLoad (Cfg=0x7fbffff630,
cname=0x5072a0 "/usr/local/dp-test/etc/indexer.conf") at conf.c:1775
#10 0x0000002a956a1730 in DpsEnvLoad (Indexer=0x508120,
cname=0x5072a0 "/usr/local/dp-test/etc/indexer.conf", lflags=0) at
conf.c:1834
#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) q
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
Read the full topic here:
http://www.dataparksearch.org/cgi-bin/simpleforum.cgi?fid=02;topic_id=1137887033;page=3