[aseek-devel] index SEGSEGV on Alphas?

From: Alexander Ufimtsev (no email)
Date: Sun Dec 09 2001 - 13:24:06 EST


I believe there might a bug in aspseek index program when working on alpha
processors.

Here are couple of examples (list of urls is already inserted):

alex at somewhere://usr/local/aspseek/sbin$ ./index -a
Loading configuration from /usr/local/aspseek/etc/db.conf
Loading configuration from /usr/local/aspseek/etc/ucharset.conf
Loading configuration from /usr/local/aspseek/etc/stopwords.conf
Loading configuration from /usr/local/aspseek/etc/aspseek.conf
Index has not been stopped safely, checking of delta files will be performed
now
Adding URL: http://localhost/robots.txt
Address of param: 1fff5870
Segmentation fault

With GDB:

Adding URL: http://localhost/cgi-bin/doc?00101003

Program received signal SIGSEGV, Segmentation fault.
0x12012d8e8 in CBuddyHeap::Free (this=0x11fff75d8, ptr=0x20000022210, pool=0)
at buddy.cpp:131
131 *buddy->m_prev = buddy->m_next;
(gdb) bt
#0 0x12012d8e8 in CBuddyHeap::Free (this=0x11fff75d8, ptr=0x20000022210,
pool=0) at buddy.cpp:131
#1 0x12012db48 in CBuddyHeap::FreeBytes (this=0x11fff75d8,
ptr=0x20000022210, size=16) at buddy.cpp:180
#2 0x12012dc3c in CWordBuddyVector::push_back (this=0x20000ed97b0,
value=220) at buddy.cpp:202
#3 0x1200b56d8 in CUrlContent::AddWord1 (this=0x11fff7490,
word=0x20000022210, pos=220, fontsize=1)
    at ../include/content.h:308
#4 0x120041cf8 in CParsedContent::ParseText (this=0x11fff74b8, content=0x6,
pos=@0x11fff3440, CurSrv=0x12043aff0,
    fontsize=1) at content.cpp:51
#5 0x1200c17f0 in ParseText1 (ucontent=0x11fff74b8, CurSrv=0x12043aff0,
position=0x11fff3440, fontsize=1, inbody=1,
    inscript=536808216, intitle=0, index=1, state=@0x11fff5e28,
    e=0x11fff0a50 "What`s Shakin` in San Diego-
http://www.sdtech.com/sandiego/", s=@0x11fff5e80,
    title=0x11fff7aa8 "SDTech`s Website Spotlight", ptitle=@0x11fff5e88,
    text=0x11fff7e38 " The following are links to some of the websites
created and maintained by SDTech . SDTech is a computer consulting firm based
out of San Diego, CA. If you are interested in a web presence for you or "...,
    ptext=@0x11fff5e90) at parse.cpp:1699
#6 0x1200c3770 in ParseHtml (ucontent=0x11fff74b8, curURL=0x11fffc078,
CurSrv=0x12043aff0, doc=0x1204d8ed0,
    content=0x200012c40b2 "<html>\n<head>\n<title>SDTech's Website
Spotlight</title>\n</head>\n<BODY BGCOLOR=\"#FFDFBF\" TEXT=\"#FFFFFF\"
LINK=\"#00FFFF\" VLINK=\"#00FFFF\" ALINK=\"#EE0000\" BACKGROUND=\"stars.jpg\"
><center>\n<IMG SRC=\"lamp.gi"..., index=1, follow=0,
    text=0x11fff7e38 " The following are links to some of the websites
created and maintained by SDTech . SDTech is a computer consulting firm based
out of San Diego, CA. If you are interested in a web presence for you or "...,
    keywords=0x11fff7b28 "", descript=0x11fff7da8 "", title=0x11fff7aa8
"SDTech`s Website Spotlight") at parse.cpp:2094
#7 0x1200bc7f4 in CUrl::HTTPGetUrlAndStore (this=0x11fffc078,
wordCache=@0x11fffc520,
    buf=0x200012c4010 "HTTP/1.1 200 OK", maxsize=1048576, doc=@0x1204d8ed0)
at parse.cpp:1028
#8 0x12003143c in CWordCache::Index (this=0x11fffc520) at wcache.cpp:963
#9 0x1200694c4 in Index (database=0x12045d4a0, flags=8, maxthreads=1,
fname=0x0, logname=0x120142e43 "logs.txt")
    at index.cpp:568
#10 0x12006f2b8 in main (argc=0, argv=0x120255038) at index.cpp:1542

This error does not seem to appear on machines with Intel processors.

-- 
Alexander Ufimtsev
Dept. of Computer Science,
University College Dublin, Ireland
Tel: +353-1-7162488 Fax: +353-1-2697262







Hosted Email Solutions

Invaluement Anti-Spam DNSBLs



Powered By FreeBSD   Powered By FreeBSD