List Info

Thread: Webboard: Segmentation fault - pthreads




Webboard: Segmentation fault - pthreads
user name
2007-08-01 23:24:09
Author: Alexander Barkov
Email: barmnogosearch.org
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

<skip>


How does the last URL reported by indexer look like ?


Also, can you please run execute these commands in gdb
(in either threaded or non-threaded version):

(gdb) frame 3
(gdb) print Doc->URL[0]


Thanks!


Reply: <http://www.mnogosearch.org/board/message.php?id=19391&g
t;


------------------------------------------------------------
---------
To unsubscribe, e-mail: general-unsubscribemnogosearch.org
For additional commands, e-mail: general-helpmnogosearch.org


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )