Hi,

I'm having problems with htfuzzy which suddently started segfaulting and
did not yet stop doing so. A small shell script started by cron runs the
following commands in this order:

htdig -i -s -c $CONF
nice -20 htmerge -v -s -c $CONF
htfuzzy -v endings   -c $CONF
htfuzzy -v soundex   -c $CONF
htfuzzy -v metaphone -c CONF
htfuzzy -v accents   -c $CONF

htfuzzy soundex then segfaults. I ran it with strace:
$ strace htfuzzy -v soundex -c /etc/htdig/htdig.conf
[... the last lines...]
access("/var/lib/htdig/she_fksrv.words.db", R_OK) = 0
stat64("/var/tmp", {st_mode=S_IFDIR|S_ISVTX|0777, st_size=4096, ...}) =
0
open("/var/lib/htdig/she_fksrv.words.db", O_RDONLY) = 3
fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
read(3, "\0\0\0\0\0\0\0\0\0\0\0\0b1\5\0\6\0\0\0\0\4\0\0\0\0\0\0"...,
512) = 512
close(3)                                = 0
brk(0x808c000)                          = 0x808c000
open("/etc/mtab", O_RDONLY)             = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=271, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0x40014000
read(3, "/dev/sda1 / ext2 rw,errors=remou"..., 4096) = 271
close(3)                                = 0
munmap(0x40014000, 4096)                = 0
open("/proc/cpuinfo", O_RDONLY)         = 3
fstat64(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0x40014000
read(3, "processor\t: 0\nvendor_id\t: Genuin"..., 4096) = 856
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x40014000, 4096)                = 0
open("/var/lib/htdig/she_fksrv.words.db", O_RDONLY) = 3
fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
fstat64(3, {st_mode=S_IFREG|0644, st_size=431104, ...}) = 0
old_mmap(NULL, 431104, PROT_READ, MAP_PRIVATE, 3, 0) = 0x4022e000
--- SIGSEGV (Segmentation fault) ---
+++ killed by SIGSEGV +++

Running it in gdb gives the following backtrace:
$ gdb htfuzzy
GNU gdb 2002-04-01-cvs
Copyright 2002 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-linux"...(no debugging symbols
found)...
(gdb) run -v soundex -c /etc/htdig/htdig.she-91374987.conf 
Starting program: /usr/bin/htfuzzy -v soundex -c
/etc/htdig/htdig.she-91374987.conf
(no debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...
Program received signal SIGSEGV, Segmentation fault.
0x0804bf56 in strcpy ()
(gdb) bt
#0  0x0804bf56 in strcpy ()
#1  0x080676c0 in ?? ()
#2  0x0804c0ec in strcpy ()
#3  0x0804d00e in strcpy ()
#4  0x400ea14f in __libc_start_main () from /lib/libc.so.6

Searching in google and the archives did not bring any success. Did
anyone experience the same / similar behaviour?

Regards,
-Alex


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
ht://Dig general mailing list: <[EMAIL PROTECTED]>
ht://Dig FAQ: http://htdig.sourceforge.net/FAQ.html
List information (subscribe/unsubscribe, etc.)
https://lists.sourceforge.net/lists/listinfo/htdig-general

Reply via email to