- - - - - - - - - - - - - - - - - - - - - - - - - - - -
Name: pascal
Subject: Re: segfault on indexing

result with cflags

debian:/home/pascal/dpsearch-4.38-15022006# /usr/local/dp-test/sbin/indexer -T

  Internal memory debugger based on Electric Fence 2.2.0 Copyright (C) 
1987-1999 Bruce Perens
indexer[30786]: {00} indexer from dpsearch-4.38-17022006-mysql, config test OK 
with '/usr/local/dp-test/etc/indexer.conf'
Memory leaks checking
debian:/home/pascal/dpsearch-4.38-15022006# /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-15022006# 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  0x0000002a9603b979 in kill () from /lib/libc.so.6
(gdb) bt
#0  0x0000002a9603b979 in kill () from /lib/libc.so.6
#1  0x0000002a9570f35d in do_abort () from 
/usr/local/dp-test/lib/libdpsearch-4.so
#2  0x0000002a9570f796 in EF_Abortv () from 
/usr/local/dp-test/lib/libdpsearch-4.so
#3  0x0000002a9570f868 in EF_Abort () from 
/usr/local/dp-test/lib/libdpsearch-4.so
#4  0x0000002a9570e65d in _DpsMemalign () from 
/usr/local/dp-test/lib/libdpsearch-4.so
#5  0x0000002a9570effd in _DpsMalloc () from 
/usr/local/dp-test/lib/libdpsearch-4.so
#6  0x0000002a95e64705 in _DpsXmalloc () from 
/usr/local/dp-test/lib/libdpcharset-4.so
#7  0x0000002a95e64765 in _DpsXrealloc () from 
/usr/local/dp-test/lib/libdpcharset-4.so
#8  0x0000002a956d7339 in DpsServerAdd () from 
/usr/local/dp-test/lib/libdpsearch-4.so
#9  0x0000002a956acbea in add_srv () from 
/usr/local/dp-test/lib/libdpsearch-4.so
#10 0x0000002a956b117b in DpsEnvAddLine () from 
/usr/local/dp-test/lib/libdpsearch-4.so
#11 0x0000002a956b17f8 in EnvLoad () from 
/usr/local/dp-test/lib/libdpsearch-4.so
#12 0x0000002a956b1a8e in DpsEnvLoad () from 
/usr/local/dp-test/lib/libdpsearch-4.so
#13 0x0000000000403580 in DpsIndexerEnvLoad ()
#14 0x00000000004056db in main ()   

without threads

debian:/home/pascal/dpsearch-4.38-15022006# /usr/local/dp-test/sbin/indexer -T

  Internal memory debugger based on Electric Fence 2.2.0 Copyright (C) 
1987-1999 Bruce Perens
indexer[13084]: {00} indexer from dpsearch-4.38-17022006-mysql, config test OK 
with '/usr/local/dp-test/etc/indexer.conf'
Memory leaks checking
debian:/home/pascal/dpsearch-4.38-15022006# /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-15022006# 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  0x0000002a95add979 in kill () from /lib/libc.so.6
(gdb) bt
#0  0x0000002a95add979 in kill () from /lib/libc.so.6
#1  0x0000002a956df915 in do_abort () at ef_print.c:47
#2  0x0000002a956dfc5d in EF_Abort (pattern=0x331d <Address 0x331d out of 
bounds>)
    at ef_print.c:166
#3  0x0000002a956df1a1 in _DpsMemalign (alignment=4, userSize=0, 
    filename=0x2a95708778 "server.c", fileline=184) at efence.c:509
#4  0x0000002a95f5e7d6 in _DpsXmalloc (size=0, filename=0x4 <Address 0x4 out of 
bounds>, 
    fileline=1) at xmalloc.c:34
#5  0x0000002a95f5e827 in _DpsXrealloc (ptr=0x331d, 
newsize=18374403900871474943, 
    filename=0x0, fileline=18446744073709551615) at xmalloc.c:44
#6  0x0000002a956b981d in DpsServerAdd (A=0x507560, srv=0x7fbfffddb0) at 
server.c:184
#7  0x0000002a9569dc3e in add_srv (Cfg=0x7fbffff630, ac=2, av=0x7fbfffcc60) at 
conf.c:286
#8  0x0000002a956a101a in DpsEnvAddLine (C=0x7fbffff630, 
    str=0x331d <Address 0x331d out of bounds>) at conf.c:1656
#9  0x0000002a956a12c9 in EnvLoad (Cfg=0x7fbffff630, 
    cname=0x506740 "/usr/local/dp-test/etc/indexer.conf") at conf.c:1775
#10 0x0000002a956a15b0 in DpsEnvLoad (Indexer=0x507560, 
    cname=0x506740 "/usr/local/dp-test/etc/indexer.conf", lflags=0) at 
conf.c:1834
#11 0x0000000000402f69 in DpsIndexerEnvLoad (Indexer=0x507560, 
    fname=0x506740 "/usr/local/dp-test/etc/indexer.conf", lflags=1) at 
main.c:562
#12 0x00000000004041d0 in main (argc=-1, argv=0x7fbffffc50) at main.c:1213 
- - - - - - - - - - - - - - - - - - - - - - - - - - - -

Read the full topic here:
http://www.dataparksearch.org/cgi-bin/simpleforum.cgi?fid=02;topic_id=1137887033;page=2

Reply via email to