For version 1.2.8 insert line in CTcpContext::CTcpContext(CMultiTcpDataSource* parent) located in datasource.h : m_templ = parent->m_templ
Alexander. Sander wrote: > Hey, > > I tried running s.cgi again with both 1.2.9pre and 1.2.8, both fail with 2 different > daemonadress. twice the same address is no prob. > I can't figure out why it has worked. > > s.cgi segfaults. Below my info. gdb output for 'bt' and 'bt full' > > Grz, > Sander > > aspseek@linux:/home/www/aspseek > QUERY_STRING="q=123" gdb ./s.cgi > GNU gdb 5.0 > Copyright 2000 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-suse-linux"... > (gdb) run > Starting program: /home/zoek_local/www/aspseek/./s.cgi > [New Thread 1024 (LWP 32196)] > <HTML> > <HEAD> > > </TD></TR> > end of time limiting options --> > > </TABLE> > </FORM> > [New Thread 2049 (LWP 32197)] > [New Thread 1026 (LWP 32198)] > [New Thread 2051 (LWP 32199)] > > Program received signal SIGSEGV, Segmentation fault. > [Switching to Thread 1024 (LWP 32196)] > CTcpDataSource::AddStat (this=0xbf7ff6e0, pquery=0x80b95b8 "123", ul=0x4006308a "", >np=0, > ps=20, urls=94, sites=68, > start=@0xbfff9be0, finish=@0xbfff9968, spaces=0x80a5e20 "", site=0) at > datasource.cpp:316 > 316 aspseek_request *r = m_templ->request; > Current language: auto; currently c++ > (gdb) bt > #0 CTcpDataSource::AddStat (this=0xbf7ff6e0, pquery=0x80b95b8 "123", ul=0x4006308a >"", > np=0, ps=20, urls=94, sites=68, > start=@0xbfff9be0, finish=@0xbfff9968, spaces=0x80a5e20 "", site=0) at > datasource.cpp:316 > #1 0x4003418b in CMultiTcpDataSource::AddStat (this=0x80b2fa8, pquery=0x80b95b8 >"123", > ul=0x4006308a "", np=0, ps=20, > urls=94, sites=68, start=@0xbfff9be0, finish=@0xbfff9968, spaces=0x80a5e20 "", >site=0) > at datasource.cpp:977 > #2 0x4003075e in show_result (r=0x804fe5c, stime=@0xbfff9be0, ps1=20, > datasource=0x80b2fa8, counts=0xbfff9be8) > at aspseek.cpp:215 > #3 0x40031291 in aspseek_process_query (r=0x804fe5c) at aspseek.cpp:405 > #4 0x8048f8f in main (argc=1, argv=0xbffff89c) at sc.c:283 > #5 0x400fcc6f in __libc_start_main () from /lib/libc.so.6 > (gdb) > > (gdb) bt full > #0 CTcpDataSource::AddStat (this=0xbf7ff6e0, pquery=0x80b95b8 "123", ul=0x4006308a >"", > np=0, ps=20, urls=94, sites=68, > start=@0xbfff9be0, finish=@0xbfff9968, spaces=0x80a5e20 "", site=0) at > datasource.cpp:316 > this = (CTcpDataSource *) 0xbf7ff6e0 > pquery = 0x80b95b8 "123" > r = (aspseek_request *) 0x4000cfc3 > c = (aspseek_client *) 0x4007762c > proxy = 0x401386bc "[\201�l�\013" > referer = 0xbfff96ec "D" > addr = 0x80b95b8 "123" > #1 0x4003418b in CMultiTcpDataSource::AddStat (this=0x80b2fa8, pquery=0x80b95b8 >"123", > ul=0x4006308a "", np=0, ps=20, > urls=94, sites=68, start=@0xbfff9be0, finish=@0xbfff9968, spaces=0x80a5e20 "", >site=0) > at datasource.cpp:977 > this = (CMultiTcpDataSource *) 0x0 > pquery = 0x0 > ul = 0x0 > np = 0 > ps = 0 > urls = 0 > sites = 0 > start = (timeval &) @0x0: Cannot access memory at address 0x0 > > -------------------------------------------------------------------- > > Doorgestuurd bericht: > > Aan: [EMAIL PROTECTED] > > Van: [EMAIL PROTECTED] > > Onderwerp: [aseek-users] Multiple DaemonAddress > > Datum: Tue, 09 Apr 2002 23:13:43 -0400 > > ----- > > I did experiment today. I have two searchd process with different database and >run on > different port number. I try use two DaemonAddress in s.htm but it does not work. >Both > DaemonAddress work but not together. > > > > In documentation, it say: > > > > # You _can_ put several DaemonAddress variables, in that case s.cgi > > # will connect to all searchd, retrieve results from every searchd > > # and merge it. > > > > DaemonAddress 127.0.0.1:12346 > > DaemonAddress 127.0.0.1:12347 > > > > Anyone have this working? > > > > Thank you, > > Nori > > > > > > > > __________________________________________________________________ > > Your favorite stores, helpful shopping tools and great gift ideas. Experience the > convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/ > > > > Get your own FREE, personal Netscape Mail account today at >http://webmail.netscape.com/ > >
