- - - - - - - - - - - - - - - - - - - - - - - - - - - -
Name: pascal
Subject: Re: segfault on indexing
i rebooted to get the ulimits working, but now i get coredumps on every app...
even the indexer and the search.cgi, working well before the reboot get core
dumps...
debian:/usr/local/dpsearch/bin# gdb /usr/local/dpsearch/bin/search.cgi 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/dpsearch/bin/search.cgi'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/local/dpsearch/lib/libdpsearch-4.so...done.
Loaded symbols for /usr/local/dpsearch/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/dpsearch/lib/libdpcharset-4.so...done.
Loaded symbols for /usr/local/dpsearch/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
#0 0x0000002a956b019e in DpsViolationEnter (param=0x0) at utils.c:2183
2183 bp = *((unsigned*)bp);
(gdb) bt
#0 0x0000002a956b019e in DpsViolationEnter (param=0x0) at utils.c:2183
#1 0x0000002a956abfe7 in DpsEnvAddLine (C=0x7fbfffb2d0,
str=0x53d63f "DBAddr\tmysql://user:[EMAIL
PROTECTED]/search/?dbmode=cache&stored=localhost:7004")
at conf.c:1605
#2 0x0000002a956f2a6c in DpsTemplateLoad (Agent=0x524dd0, Env=0x507810,
t=0x524f68,
tname=0x7fbfffeaf0 "/usr/local/dpsearch/etc/search.htm") at template.c:899
#3 0x0000000000402535 in main (argc=1, argv=0x7fbffffc58) at search.c:243
(gdb) q
debian:/usr/local/dpsearch/bin# /usr/local/dpsearch/sbin/indexer -T
Speicherzugriffsfehler (core dumped)
debian:/usr/local/dpsearch/bin# gdb /usr/local/dpsearch/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/dpsearch/sbin/indexer -T'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/local/dpsearch/lib/libdpsearch-4.so...done.
Loaded symbols for /usr/local/dpsearch/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/dpsearch/lib/libdpcharset-4.so...done.
Loaded symbols for /usr/local/dpsearch/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
#0 0x0000002a956b019e in DpsViolationEnter (param=0x0) at utils.c:2183
2183 bp = *((unsigned*)bp);
(gdb) bt
#0 0x0000002a956b019e in DpsViolationEnter (param=0x0) at utils.c:2183
#1 0x0000002a956aca6b in DpsEnvLoad (Indexer=0x509000,
cname=0x508200 "/usr/local/dpsearch/etc/indexer.conf", lflags=0) at
conf.c:1813
#2 0x0000000000403540 in DpsIndexerEnvLoad (Indexer=0x509000,
fname=0x508200 "/usr/local/dpsearch/etc/indexer.conf", lflags=0) at
main.c:562
#3 0x0000000000405691 in main (argc=0, argv=0x7fbffffc68) at main.c:1216
(gdb)
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
Read the full topic here:
http://www.dataparksearch.org/cgi-bin/simpleforum.cgi?fid=02;topic_id=1137887033;page=4