Author: Alexander Barkov
Email: bar mnogosearch.org
Message:
> May be not a pthread issue?
> Scott
Not really a thread issue, but this is because
of recent thread related changes.
I committed a fix, please try the latest snapshot
(will be updated within 30 minutes).
Many thanks for help!
>
> Log output for URL below.
>
> GDB commands "where, backtrace, frame 3 and print
Doc->CurURL" below. 3.3-5 with no install option for
threads.
>
> URL EXPLANATION:
> In general, we use mnogosearch to index local space on
the same server. As I recall, we set up two local URLs, one
on port 50000 and the other on port 50001. The URL is from
the latter where emails are archived using mhonarc into html
format.
>
> -v3 parameter log only contains the following 8
entries:
>
> indexer[24435]: indexer from mnogosearch-3.3.5-mysql
started with '/usr/local/mnogosearch/etc/indexer.conf'
> indexer[24435]: [24435] URL: http://epoch.dsb
cpas.com:50000/docs/
> indexer[24435]: [24435] URL: htt
p://emailarchive.epoch.dsbcpas.com:50001/docs/
> indexer[24435]: [24435] URL: http://www.dsbcpas.com/
> indexer[24435]: [24435] ROBOTS: http://www.dsbcpas.
com/robots.txt
> indexer[24435]: [24435] URL: http://www
.aicpa.org/about/code/index.html
> indexer[24435]: [24435] ROBOTS: http://www.aicpa.org/
robots.txt
> indexer[24435]: [24435] URL: http://emailarchive.epoch.dsbcpas.com:50001/docs/client/
>
> GDB REQUEST 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 -v3 &>/var/log/mnogosearch.log
> Starting program: /usr/local/mnogosearch/sbin/indexer
-a -v3 &>/var/log/mnogosearch.log
> [Thread debugging using libthread_db enabled]
> [New Thread -1208371520 (LWP 24435)]
> [New Thread -1208374368 (LWP 24439)]
>
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread -1208374368 (LWP 24439)]
> 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=0x93fb000,
Doc=0xb7f99430) at db.c:258
> #4 0x08072a42 in UdmURLActionNoLock (A=0x93fb000,
D=0xb7f99430, cmd=19) at db.c:396
> #5 0x080566c6 in UdmIndexNextURL (Indexer=0x93fb000)
at indexer.c:2311
> #6 0x0804fc75 in thread_main (arg=0x93fb000) 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=0x93fb000,
Doc=0xb7f99430) at db.c:258
> #4 0x08072a42 in UdmURLActionNoLock (A=0x93fb000,
D=0xb7f99430, cmd=19) at db.c:396
> #5 0x080566c6 in UdmIndexNextURL (Indexer=0x93fb000)
at indexer.c:2311
> #6 0x0804fc75 in thread_main (arg=0x93fb000) 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) frame 3
> #3 0x08073057 in DocUpdate (Indexer=0x93fb000,
Doc=0xb7f99430) at db.c:258
> 258
UdmHostErrorReset(&Indexer->Conf->Hosts,
Doc->connp.hostname);
> (gdb) print Doc->CurURL
> $1 = {schema = 0xe2f8d60 "http", specific =
0xe277580
"//emailarchive.epoch.dsbcpas.com:50001/docs/client/&qu
ot;,
> hostinfo = 0xe2776c0
"emailarchive.epoch.dsbcpas.com:50001", auth =
0x0,
> hostname = 0xe2785c0
"emailarchive.epoch.dsbcpas.com", path = 0xe277700
"/docs/client/", filename = 0x0, anchor = 0x0,
> port = 50001, default_port = 80}
> (gdb)
>
Reply: <http://www.mnogosearch.org/board/message.php?id=19400&g
t;
------------------------------------------------------------
---------
To unsubscribe, e-mail: general-unsubscribe mnogosearch.org
For additional commands, e-mail: general-help mnogosearch.org
|