htdig: Segfault in htfuzzy on FreeBSD

Jeff Coffin (
06 Aug 1998 15:20:46 -0700

Hey All,

I just downloadedm compiled and installed ht://dig on freebsd box, and
after editing and running the rundig script it segfaulted in htfuzzy.


commerce2: [113]% uname -a
FreeBSD 2.2.6-STABLE FreeBSD 2.2.6-STABLE #69: Wed Jul 15 00:14:50 PDT 1998 i386

Here's the output from the run:

[ htdoc list snipped ]

htdig: Run complete
htdig: 1 server seen:
htdig: 126 documents
htmerge: Sorting...
htmerge: Merging...
htmerge: 5100:wwwmtcde
htmerge: Total word count: 5176
htmerge: 120
htmerge: Total documents: 126
htfuzzy: Selected algorithm: endings
htfuzzy/endings: Reading rules
htfuzzy/endings: Creating databases
Segmentation fault - core dumped

and finally gdb says:

commerce2: [159]% gdb htfuzzy htfuzzy.core
GDB is free software and you are welcome to 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.
GDB 4.16 (i386-unknown-freebsd),
Copyright 1996 Free Software Foundation, Inc...
Core was generated by `htfuzzy'.
Program terminated with signal 11, Segmentation fault.
Cannot access memory at address 0x2002b080.
#0 0xa96e in get_elem ()
(gdb) bt
#0 0xa96e in get_elem ()
#1 0xab2b in adjust_bucket_avail ()
#2 0xa66b in _gdbm_free ()
#3 0x9616 in gdbm_store ()
#4 0x659e in GDBM_db::Put (this=0x21b40, key=@0xefbfd57c, data=@0xefbfd56c)
#5 0x5bb3 in Database::Put (this=0x21b40, key=0xfbc40 "",
    data=0x38880 "billiken", size=8) at
#6 0x2057 in Endings::createRoot (this=0x1c080, rules=@0xefbfda5c,
    word2root=0x19cf "/tmp/word2root.gdbm",
    root2word=0x19bb "/tmp/root2word.gdbm",
    dictFile=0x38700 "/webadmin/home/web1/synplcty/ht_dig/common/english.0")
#7 0x1ac3 in Endings::createDB (this=0x1c080, config=@0x1855c)
#8 0x4375 in main (ac=3, av=0xefbfdb3c) at

Any help/insight would be appreciated.

To unsubscribe from the htdig mailing list, send a message to containing the single word "unsubscribe" in
the body of the message.

This archive was generated by hypermail 2.0b3 on Sat Jan 02 1999 - 16:27:15 PST