Re: [htdig] Suse 6.2 + symlinks + htdig 3.1.5


Subject: Re: [htdig] Suse 6.2 + symlinks + htdig 3.1.5
From: Peter L. Peres (plp@actcom.co.il)
Date: Fri May 05 2000 - 01:38:04 PDT


On Fri, 5 May 2000, Gilles Detillieux wrote:

>According to Peter L. Peres:
>> looked in the archives and run htsearch manually. Here is my output:
>>
>> root@plp5:/usr/local/httpd/cgi-bin$ ./htsearch -vvvmail -s htdig
> ^^^^^^^^^^^^^ Huh?

Don't worry about that, the mail thing is a leftover from another command
line. It got there when I cut & pasted in an X11 shell window (there is
a well-known bug when at the bottom of the window ...).

I will get a script of a gdb session and a dump. Meanwhile I straced it
and it seems to fail by segfault while starting to read a db database. See
attached file.

I will get my act together and post complete docs next time. And the
patch. Btw, the patch only affects the Retriever class in htdig. I have
verified that the patched build htsearch and the unpatched htsearch are
identical by binary diff (only the date etc are different).

I will work hard on this 2morrow and keep you posted,

        Peter

execve("./htsearch", ["./htsearch", "-vvv", "-c", "/opt/www/htdig/conf/susedig.conf"], [/* 46 vars */]) = 0
brk(0) = 0x80aebcc
open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat(3, {st_mode=0, st_size=0, ...}) = 0
mmap(0, 32253, PROT_READ, MAP_PRIVATE, 3, 0) = 0x4000d000
close(3) = 0
open("/usr/lib/libz.so.1", O_RDONLY) = 3
mmap(0, 4096, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40015000
munmap(0x40015000, 4096) = 0
mmap(0, 65228, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40015000
mprotect(0x40023000, 7884, PROT_NONE) = 0
mmap(0x40023000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xd000) = 0x40023000
close(3) = 0
open("/usr/lib/libstdc++.so.2.9", O_RDONLY) = 3
mmap(0, 4096, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40025000
munmap(0x40025000, 4096) = 0
mmap(0, 274600, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40025000
mprotect(0x4005a000, 57512, PROT_NONE) = 0
mmap(0x4005a000, 49152, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x34000) = 0x4005a000
mmap(0x40066000, 8360, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40066000
close(3) = 0
open("/lib/libm.so.6", O_RDONLY) = 3
mmap(0, 4096, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40069000
munmap(0x40069000, 4096) = 0
mmap(0, 105916, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40069000
mprotect(0x40082000, 3516, PROT_NONE) = 0
mmap(0x40082000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x18000) = 0x40082000
close(3) = 0
open("/lib/libc.so.6", O_RDONLY) = 3
mmap(0, 4096, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40083000
munmap(0x40083000, 4096) = 0
mmap(0, 707344, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40083000
mprotect(0x4011d000, 76560, PROT_NONE) = 0
mmap(0x4011d000, 28672, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x99000) = 0x4011d000
mmap(0x40124000, 47888, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40124000
close(3) = 0
munmap(0x4000d000, 32253) = 0
personality(PER_LINUX) = 0
getpid() = 11494
brk(0) = 0x80aebcc
brk(0x80aed74) = 0x80aed74
brk(0x80af000) = 0x80af000
alarm(300) = 0
brk(0x80b0000) = 0x80b0000
brk(0x80b1000) = 0x80b1000
brk(0x80b2000) = 0x80b2000
brk(0x80b3000) = 0x80b3000
access("/opt/www/htdig/conf/susedig.conf", R_OK) = 0
open("/opt/www/htdig/conf/susedig.conf", O_RDONLY) = 3
fstat(3, {st_mode=S_ISVTX|0546, st_size=0, ...}) = 0
mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4000d000
read(3, "database_dir:\t\t/opt/www/htdig/"..., 4096) = 3290
brk(0x80b4000) = 0x80b4000
read(3, "", 4096) = 0
close(3) = 0
munmap(0x4000d000, 4096) = 0
brk(0x80b5000) = 0x80b5000
brk(0x80b6000) = 0x80b6000
brk(0x80b7000) = 0x80b7000
brk(0x80b8000) = 0x80b8000
brk(0x80b9000) = 0x80b9000
brk(0x80ba000) = 0x80ba000
brk(0x80bb000) = 0x80bb000
brk(0x80bc000) = 0x80bc000
brk(0x80bd000) = 0x80bd000
brk(0x80be000) = 0x80be000
brk(0x80bf000) = 0x80bf000
brk(0x80c0000) = 0x80c0000
brk(0x80c1000) = 0x80c1000
brk(0x80c2000) = 0x80c2000
brk(0x80c3000) = 0x80c3000
brk(0x80c4000) = 0x80c4000
brk(0x80c5000) = 0x80c5000
brk(0x80c6000) = 0x80c6000
brk(0x80c7000) = 0x80c7000
brk(0x80c8000) = 0x80c8000
brk(0x80c9000) = 0x80c9000
brk(0x80ca000) = 0x80ca000
brk(0x80cb000) = 0x80cb000
brk(0x80cc000) = 0x80cc000
brk(0x80cd000) = 0x80cd000
brk(0x80ce000) = 0x80ce000
brk(0x80cf000) = 0x80cf000
brk(0x80d0000) = 0x80d0000
brk(0x80d1000) = 0x80d1000
brk(0x80d2000) = 0x80d2000
brk(0x80d3000) = 0x80d3000
brk(0x80d4000) = 0x80d4000
brk(0x80d5000) = 0x80d5000
brk(0x80d6000) = 0x80d6000
brk(0x80d7000) = 0x80d7000
brk(0x80d8000) = 0x80d8000
brk(0x80d9000) = 0x80d9000
brk(0x80da000) = 0x80da000
brk(0x80db000) = 0x80db000
brk(0x80dc000) = 0x80dc000
brk(0x80dd000) = 0x80dd000
brk(0x80de000) = 0x80de000
write(2, "Enter value for ", 16Enter value for ) = 16
write(2, "words", 5words) = 5
write(2, ": ", 2: ) = 2
fstat(0, {st_mode=S_ISVTX|0400, st_size=0, ...}) = 0
mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4000d000
ioctl(0, TTY_MAGIC, {B38400 opost isig icanon echo ...}) = 0
read(0, "suse\n", 4096) = 5
open("/opt/www/htdig/common/bad_words", O_RDONLY) = 3
fstat(3, {st_mode=0, st_size=0, ...}) = 0
mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4000e000
read(3, "the\nand\nfor\nwith\nthat\nthis\n"..., 4096) = 84
read(3, "", 4096) = 0
close(3) = 0
munmap(0x4000e000, 4096) = 0
write(2, "tempWords", 9tempWords) = 9
write(2, ": \'", 3: ') = 3
write(2, "suse", 4suse) = 4
write(2, ":", 1:) = 1
write(2, "0", 10) = 1
write(2, " ", 1 ) = 1
write(2, "\'\n", 2'
) = 2
write(2, "Boolean", 7Boolean) = 7
write(2, ": \'", 3: ') = 3
write(2, "suse", 4suse) = 4
write(2, ":", 1:) = 1
write(2, "0", 10) = 1
write(2, " ", 1 ) = 1
write(2, "\'\n", 2'
) = 2
stat("/opt/www/htdig/common/bad_words", {st_mode=S_ISVTX|0504, st_size=0, ...}) = 0
open("/opt/www/htdig/common/synonyms.db", O_RDONLY) = 3
fcntl(3, F_SETFD, FD_CLOEXEC) = 0
read(3, "\0\0\0\0\0\0\0\0\0\0\0\0b1\5\0\6"..., 512) = 512
close(3) = 0
brk(0x80e6000) = 0x80e6000
open("/etc/fstab", O_RDONLY) = 3
fstat(3, {st_mode=S_IFBLK|S_ISVTX|0403, st_rdev=makedev(101, 85), ...}) = 0
mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4000e000
read(3, "/dev/hda2 swap "..., 4096) = 968
close(3) = 0
munmap(0x4000e000, 4096) = 0
open("/proc/cpuinfo", O_RDONLY) = 3
fstat(3, {st_mode=S_ISUID|067, st_size=0, ...}) = 0
mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4000e000
read(3, "processor\t: 0\nvendor_id\t: unk"..., 1024) = 241
read(3, "", 1024) = 0
close(3) = 0
munmap(0x4000e000, 4096) = 0
open("/opt/www/htdig/common/synonyms.db", O_RDONLY) = 3
fcntl(3, F_SETFD, FD_CLOEXEC) = 0
fstat(3, {st_mode=S_IFCHR|S_ISUID|S_ISGID|0502, st_rdev=makedev(101, 167), ...}) = 0
mmap(0, 16384, PROT_READ, MAP_PRIVATE, 3, 0) = 0x4000e000
stat("/var/tmp", {st_mode=S_ISVTX|0504, st_size=0, ...}) = 0
open("/opt/www/htdig/common/word2root.db", O_RDONLY) = 4
fcntl(4, F_SETFD, FD_CLOEXEC) = 0
read(4, "\0\0\0\0\0\0\0\0\0\0\0\0b1\5\0\6"..., 512) = 512
close(4) = 0
brk(0x80ee000) = 0x80ee000
open("/opt/www/htdig/common/word2root.db", O_RDONLY) = 4
fcntl(4, F_SETFD, FD_CLOEXEC) = 0
fstat(4, {st_mode=S_ISVTX|0312, st_size=0, ...}) = 0
mmap(0, 3003392, PROT_READ, MAP_PRIVATE, 4, 0) = 0x40130000
stat("/var/tmp", {st_mode=S_ISVTX|0504, st_size=0, ...}) = 0
open("/opt/www/htdig/common/root2word.db", O_RDONLY) = 5
fcntl(5, F_SETFD, FD_CLOEXEC) = 0
read(5, "\0\0\0\0\0\0\0\0\0\0\0\0b1\5\0\6"..., 512) = 512
close(5) = 0
brk(0x80f6000) = 0x80f6000
open("/opt/www/htdig/common/root2word.db", O_RDONLY) = 5
fcntl(5, F_SETFD, FD_CLOEXEC) = 0
fstat(5, {st_mode=0, st_size=0, ...}) = 0
mmap(0, 2295808, PROT_READ, MAP_PRIVATE, 5, 0) = 0x4040e000
write(2, "initial", 7initial) = 7
write(2, ": \'", 3: ') = 3
write(2, "\'\n", 2'
) = 2
write(2, "Fuzzy on: ", 10Fuzzy on: ) = 10
write(2, "suse", 4suse) = 4
write(2, "\n", 1
) = 1
fstat(1, {st_mode=0404, st_size=0, ...}) = 0
mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40012000
write(1, " (null) suse\n", 15 (null) suse
) = 15
write(1, " synonyms\n", 12 synonyms
) = 12
write(1, " endings\n", 11 endings
) = 11
write(2, "searchWords", 11searchWords) = 11
write(2, ": \'", 3: ') = 3
write(2, "suse", 4suse) = 4
write(2, ":", 1:) = 1
write(2, "0", 10) = 1
write(2, " ", 1 ) = 1
write(2, "\'\n", 2'
) = 2
munmap(0x4000e000, 16384) = 0
close(3) = 0
munmap(0x4040e000, 2295808) = 0
close(5) = 0
munmap(0x40130000, 3003392) = 0
close(4) = 0
write(2, "LogicalWords: ", 14LogicalWords: ) = 14
write(2, "suse", 4suse) = 4
write(2, "\n", 1
) = 1
write(2, "Pattern: ", 9Pattern: ) = 9
write(2, "suse", 4suse) = 4
write(2, "\n", 1
) = 1
access("/opt/www/htdig/db/db.words.db", R_OK) = 0
stat("/var/tmp", {st_mode=S_ISVTX|0504, st_size=0, ...}) = 0
open("/opt/www/htdig/db/db.words.db", O_RDONLY) = 3
fcntl(3, F_SETFD, FD_CLOEXEC) = 0
read(3, "\0\0\0\0\0\0\0\0\0\0\0\0b1\5\0\6"..., 512) = 512
close(3) = 0
open("/opt/www/htdig/db/db.words.db", O_RDONLY) = 3
fcntl(3, F_SETFD, FD_CLOEXEC) = 0
fstat(3, {st_mode=S_ISVTX|0145, st_size=0, ...}) = 0
lseek(3, 0, SEEK_SET) = 0
read(3, "\0\0\0\0\0\0\0\0\0\0\0\0b1\5\0\6"..., 1024) = 1024
lseek(3, 1024, SEEK_SET) = 1024
read(3, "\0\0\0\0\0\0\0\0\1\0\0\0\0\0\0\0"..., 1024) = 1024
lseek(3, 131534848, SEEK_SET) = 131534848
read(3, "\0\0\0\0\0\0\0\0\304\365\1\0\0\0"..., 1024) = 1024
lseek(3, 135391232, SEEK_SET) = 135391232
read(3, "\0\0\0\0\0\0\0\0z\4\2\0\0\0\0\0\0"..., 1024) = 1024
lseek(3, 135398400, SEEK_SET) = 135398400
read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 1024) = 1024
--- SIGSEGV (Segmentation fault) ---
+++ killed by SIGSEGV +++

------------------------------------
To unsubscribe from the htdig mailing list, send a message to
htdig-unsubscribe@htdig.org
You will receive a message to confirm this.



This archive was generated by hypermail 2b28 : Fri May 05 2000 - 11:03:22 PDT