Danish Qadri wrote:
> Here's something I got from gdb, after a seg fault. Notably, I've received
> seg faults with both 3.2.0b1 and the CVS version... I think I have an idea
> why it happened.
> 
>>From the output logs, which I luckily saved, the indexer hit a page with a
> LOT of links... The page it tried to index actually happened to be a
> glossary page.  The exact # of links printed in the log is 96 (which isn't
> that much actually). The file did go through the pdftotext converter.
> 
> I'll try digging some more, and report back.
> 
> - Danish
> 
> 
> ----
> 
> root:intranet2 [16:25:16] $ gdb indexer core
> GNU gdb 5.0
> Copyright 2000 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 "sparc-sun-solaris2.7"...
> Core was generated by `./indexer -m -e -o -v7'.
> Program terminated with signal 11, Segmentation Fault.
> Reading symbols from /usr/lib/libsocket.so.1...done.
> Loaded symbols for /usr/lib/libsocket.so.1
> Reading symbols from /usr/lib/libm.so.1...done.
> Loaded symbols for /usr/lib/libm.so.1
> Reading symbols from /usr/lib/libxnet.so.1...done.
> Loaded symbols for /usr/lib/libxnet.so.1
> Reading symbols from /usr/lib/libpq.so.2...done.
> Loaded symbols for /usr/lib/libpq.so.2
> Reading symbols from /usr/lib/libc.so.1...done.
> Loaded symbols for /usr/lib/libc.so.1
> Reading symbols from /usr/lib/libnsl.so.1...done.
> Loaded symbols for /usr/lib/libnsl.so.1
> Reading symbols from /usr/lib/libkrb5.so.1.0...done.
> Loaded symbols for /usr/lib/libkrb5.so.1.0
> Reading symbols from /usr/lib/libcrypto.so.1.0...done.<HrefList->nhrefs
> Loaded symbols for /usr/lib/libcrypto.so.1.0
> Reading symbols from /usr/lib/libcom_err.so.1.0...done.
> Loaded symbols for /usr/lib/libcom_err.so.1.0
> Reading symbols from /usr/lib/libresolv.so.2...done.<HrefList->nhrefs
> Loaded symbols for /usr/lib/libresolv.so.2
> Reading symbols from /usr/lib/libdl.so.1...done.
> Loaded symbols for /usr/lib/libdl.so.1
> Reading symbols from /usr/lib/libmp.so.2...done.
> Loaded symbols for /usr/lib/libmp.so.2
> Reading symbols from /usr/lib/libgen.so.1...done.
> Loaded symbols for /usr/lib/libgen.so.1
> Reading symbols from /usr/platform/SUNW,Ultra-2/lib/libc_psr.so.1...done.
> Loaded symbols for /usr/platform/SUNW,Ultra-2/lib/libc_psr.so.1
> #0  0xff245be4 in realfree () from /usr/lib/libc.so.1
> (gdb) bt
> #0  0xff245be4 in realfree () from /usr/lib/libc.so.1
> #1  0xff246418 in _free_unlocked () from /usr/lib/libc.so.1
> #2  0xff246368 in free () from /usr/lib/libc.so.1
> #3  0x27aec in UdmFreeHrefList (HrefList=0x1149050) at hrefs.c:95
> #4  0x27cd8 in UdmStoreHrefs (Indexer=0x1145008) at hrefs.c:138
> #5  0x16dd8 in UdmGetTarget (Indexer=0x165c988, result=0xffbe27c4,
>     index_flags=71) at indexer.c:234
> #6  0x19110 in UdmIndexNextURL (Indexer=0x165c988, index_flags=71)
>     at indexer.c:1147
> #7  0x15bcc in thread_main (arg=0x165c988) at main.c:256
> #8  0x165f8 in main (argc=0, argv=0xffbefc20) at main.c:598
> (gdb)
> 
> 

It would be nice if you could resolve what exactly happened in
line 95 of hrefs.c, i.e. in frame #3.  Values  of i,
HrefList->nhrefs, HrefList->nhrefs[i] are interesting.
Use "frame 3" then "print" gdb commands. Thanks.

By the way, do you use multi-threads indexer, or single-thread one?
--enable-phtreads configure flag is respobsible for this.

___________________________________________
If you want to unsubscribe send "unsubscribe general"
to [EMAIL PROTECTED]

Reply via email to