It's horrible practice to commit something that's broken, but the new
htstat program dies horribly. Here's the code that's causing the problems:
cout << "htstat: Total words: " << words.WordRefs()->Count() << endl;
cout << "htstat: Total unique words: " << words.Words()->Count() << endl;
It looks like a valid construction to me... Maybe not the best, but
certainly valid. I do the same thing for the DocumentDB and it works fine.
(gdb) run
Starting program: /home/ghutchis/htdig-cvs/build-3.2/httools/.libs/lt-htstat
htstat: Total documents: 5381
WordKeyInfo::Instance: no instance
htstat: Total words: WordKey::WordKey used before word_key_info set
FATAL ERROR:WordKey::initialize
FATAL ERROR at file:../../htdig-3.2/htword/WordKey.h line:143 !!!
Program received signal SIGSEGV, Segmentation fault.
0xff17f8c in WordKey::Initialize ()
Current language: auto; currently c
(gdb) bt
#0 0xff17f8c in WordKey::Initialize ()
#1 0xff17d54 in WordKey::WordKey ()
#2 0xff17b8c in WordReference::WordReference ()
#3 0xfe9da34 in WordList::WordRefs () at
../../htdig-3.2/htword/WordList.cc:457#4 0x10002a8c in main (ac=1,
av=0x7ffffb44) at ../../htdig-3.2/httools/htstat.cc:127
#5 0xfbfe7d4 in __libc_start_main () at
../sysdeps/powerpc/elf/libc-start.c:106
Is this a bug in what I'm doing or in htword? If it's in what I'm doing,
is there a better way to get a count?
-Geoff
------------------------------------
To unsubscribe from the htdig3-dev mailing list, send a message to
[EMAIL PROTECTED]
You will receive a message to confirm this.