Author: Scott Beane
Email: scott dsbcpas.com
Message:
I have always encountered segmentation faults in all
versions and eliminated them via "-b" or "-N
1" parameters. That does not seem to be controlling
them anymore. She runs for about 15 seconds and dies
consistently every time. Background information and GDB
output below.
Thank you for your assistance.
Scott Beane
Mnogosearch Version 3.3-5
Distribution of linux 2.6.9-55.0.2.ELsmp
install.options: ./configure --prefix=/usr/local/mnogosearch
--bindir=/usr/local/mnogosearch/bin
--sbindir=/usr/local/mnogosearch/sbin
--sysconfdir=/usr/local/mnogosearch/etc
--localstatedir=/usr/local/mnogosearch/var
--libdir=/usr/local/mnogosearch/lib
--includedir=/usr/local/mnogosearch/include
--mandir=/usr/local/mnogosearch/man --disable-shared
--enable-static --enable-syslog --with-openssl
--without-docs --enable-pthreads --enable-dmalloc
--enable-parser --disable-mp3 --with-extra-charsets=all
--enable-file --enable-http --enable-ftp --enable-htdb
--enable-news --with-mysql --with-zlib
Clean install of mnogosearch-3.3-5 with all new tables
(-Ecreate).
GDB output is as follows:
gdb /usr/local/mnogosearch/sbin/indexer
GNU gdb Red Hat Linux (6.3.0.0-1.143.el4rh)
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
"i386-redhat-linux-gnu"...Using host libthread_db
library "/lib/tls/libthread_db.so.1".
(gdb) run -a -N 1 -v3 &>/var/log/mnogosearch.log
Starting program: /usr/local/mnogosearch/sbin/indexer -a -N
1 -v3 &>/var/log/mnogosearch.log
[Thread debugging using libthread_db enabled]
[New Thread -1208830272 (LWP 7952)]
[New Thread -1208833120 (LWP 7956)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1208833120 (LWP 7956)]
0x0019eb88 in strcasecmp () from /lib/tls/libc.so.6
(gdb) where
#0 0x0019eb88 in strcasecmp () from /lib/tls/libc.so.6
#1 0x08066da1 in UdmHostFind (List=0x82e5ca0, hostname=0x0)
at host.c:118
#2 0x08066ddd in UdmHostErrorReset (List=0x82e5ca0,
hostname=0x0)
at host.c:133
#3 0x08073057 in DocUpdate (Indexer=0x996c000,
Doc=0xb7f29430) at db.c:258
#4 0x08072a42 in UdmURLActionNoLock (A=0x996c000,
D=0xb7f29430, cmd=19)
at db.c:396
#5 0x080566c6 in UdmIndexNextURL (Indexer=0x996c000) at
indexer.c:2311
#6 0x0804fc75 in thread_main (arg=0x996c000) at main.c:887
#7 0x00cc53cc in start_thread () from
/lib/tls/libpthread.so.0
#8 0x001fcc3e in clone () from /lib/tls/libc.so.6
(gdb) backtrace
#0 0x0019eb88 in strcasecmp () from /lib/tls/libc.so.6
#1 0x08066da1 in UdmHostFind (List=0x82e5ca0, hostname=0x0)
at host.c:118
#2 0x08066ddd in UdmHostErrorReset (List=0x82e5ca0,
hostname=0x0)
at host.c:133
#3 0x08073057 in DocUpdate (Indexer=0x996c000,
Doc=0xb7f29430) at db.c:258
#4 0x08072a42 in UdmURLActionNoLock (A=0x996c000,
D=0xb7f29430, cmd=19)
at db.c:396
#5 0x080566c6 in UdmIndexNextURL (Indexer=0x996c000) at
indexer.c:2311
#6 0x0804fc75 in thread_main (arg=0x996c000) at main.c:887
#7 0x00cc53cc in start_thread () from
/lib/tls/libpthread.so.0
#8 0x001fcc3e in clone () from /lib/tls/libc.so.6
************************************************************
*****
I also tried with no --with-pthreads configure parameter and
ran with no "-N 1" parameter and here is the
output from gdb, interestingly, it's different.
************************************************************
*****
gdb /usr/local/mnogosearch/sbin/indexer
GNU gdb Red Hat Linux (6.3.0.0-1.143.el4rh)
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
"i386-redhat-linux-gnu"...Using host libthread_db
library "/lib/tls/libthread_db.so.1".
(gdb) run -a -v3 &>/var/log/mnogosearch.log
Starting program: /usr/local/mnogosearch/sbin/indexer -a -v3
&>/var/log/mnogosearch.log
shell-init: error retrieving current directory: getcwd:
cannot access parent directories: No such file or directory
[Thread debugging using libthread_db enabled]
[New Thread -1208277312 (LWP 31580)]
[New Thread -1208280160 (LWP 31584)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1208280160 (LWP 31584)]
0x00bbfb88 in strcasecmp () from /lib/tls/libc.so.6
(gdb) where
#0 0x00bbfb88 in strcasecmp () from /lib/tls/libc.so.6
#1 0x08066da1 in UdmHostFind (List=0x82e5ca0, hostname=0x0)
at host.c:118
#2 0x08066ddd in UdmHostErrorReset (List=0x82e5ca0,
hostname=0x0)
at host.c:133
#3 0x08073057 in DocUpdate (Indexer=0x9ee6000,
Doc=0xb7fb0430) at db.c:258
#4 0x08072a42 in UdmURLActionNoLock (A=0x9ee6000,
D=0xb7fb0430, cmd=19)
at db.c:396
#5 0x080566c6 in UdmIndexNextURL (Indexer=0x9ee6000) at
indexer.c:2311
#6 0x0804fc75 in thread_main (arg=0x9ee6000) at main.c:887
#7 0x00cc53cc in start_thread () from
/lib/tls/libpthread.so.0
#8 0x00c1dc3e in clone () from /lib/tls/libc.so.6
(gdb) backtrace
#0 0x00bbfb88 in strcasecmp () from /lib/tls/libc.so.6
#1 0x08066da1 in UdmHostFind (List=0x82e5ca0, hostname=0x0)
at host.c:118
#2 0x08066ddd in UdmHostErrorReset (List=0x82e5ca0,
hostname=0x0)
at host.c:133
#3 0x08073057 in DocUpdate (Indexer=0x9ee6000,
Doc=0xb7fb0430) at db.c:258
#4 0x08072a42 in UdmURLActionNoLock (A=0x9ee6000,
D=0xb7fb0430, cmd=19)
at db.c:396
#5 0x080566c6 in UdmIndexNextURL (Indexer=0x9ee6000) at
indexer.c:2311
#6 0x0804fc75 in thread_main (arg=0x9ee6000) at main.c:887
#7 0x00cc53cc in start_thread () from
/lib/tls/libpthread.so.0
#8 0x00c1dc3e in clone () from /lib/tls/libc.so.6
(gdb)
Reply: <http://www.mnogosearch.org/board/message.php?id=19389&g
t;
------------------------------------------------------------
---------
To unsubscribe, e-mail: general-unsubscribe mnogosearch.org
For additional commands, e-mail: general-help mnogosearch.org
|