Good [morning|day|evening|night],
A new message has been posted to DataparkSearch Engine forum at
http://www.dataparksearch.org/
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
Name: Krok
Subject: Re: Another error...
� !
��� trace �� gdb :
# gdb ./bin/httpd
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 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-marcel-freebsd"...
(gdb) b ap_process_request
Breakpoint 1 at 0x80752ca: file http_request.c, line 1311.
(gdb) run -X -d /usr/local/apache_search
Starting program: /usr/local/apache_search/bin/httpd -X -d
/usr/local/apache_search
[Sat Jan 29 16:12:03 2005] [warn] module mod_dpsearch.c is already added,
skipping
[Sat Jan 29 16:12:05 2005] [error] Can't load searchd config file
'/usr/local/dpsearch/etc/modsearchd.conf'
mod_dpsearch[31046]: mod_dpsearch started with
'/usr/local/dpsearch/etc/modsearchd.conf'
mod_dpsearch[31046]: LogLevel: 3
mod_dpsearch[31046]: VarDir: '/usr/local/dpsearch/var'
mod_dpsearch[31046]: Affixes: 1332, Spells: 131203, Synonyms: 30832
Program received signal SIGSEGV, Segmentation fault.
0x28195118 in strdup () from /lib/libc.so.5
(gdb) list
5619
5620 #ifdef TPF
5621 EBW_AREA input_parms;
5622 ecbptr()->ebrout = PRIMECRAS;
5623 input_parms = * (EBW_AREA *)(&(ecbptr()->ebw000));
5624 #endif
5625
5626 MONCONTROL(0);
5627
5628 common_init();
(gdb) where
#0 0x28195118 in strdup () from /lib/libc.so.5
#1 0x28240de5 in DpsMatchListAdd (A=0x0, L=0x810b824, M=0xbfbf4ee0,
err=0x810b004 "/usr/local/dpsearch/etc/modsearchd.conf:68:
/usr/local/dpsearch/etc/sections.conf:35: ", errsize=2048, ordre=0)
at match.c:252
#2 0x2824842d in ParseVariable (Agent=0x8106000, Env=0x810b000,
vars=0x810d0d8, str=0xbfbf6070 "Alias") at template.c:824
#3 0x28248968 in DpsTemplateLoad (Agent=0x8106000, Env=0x810b000,
vars=0x810d0d8,
tname=0x81049b4 "/usr/local/dpsearch/etc/modsearch.htm", tmpl=0x81060d4) at
template.c:922
#4 0x281d6a24 in cmd_template (cmd=0xbfbfc880, mconfig=0x0,
template_filename=0x81049b4 "/usr/local/dpsearch/etc/modsearch.htm")
at mod_dpsearch.c:1004
#5 0x0805f62f in invoke_cmd (cmd=0x281d85a0, parms=0xbfbfc880, mconfig=0x0,
args=0xbfbf65cc "") at http_config.c:814
#6 0x0805ffa1 in ap_handle_command (parms=0xbfbfc880, config=0x81046b4,
l=0xbfbf6590 "DataparkSearchTemplate
/usr/local/dpsearch/etc/modsearch.htm") at http_config.c:1037
#7 0x08060027 in ap_srm_command_loop (parms=0xbfbfc880, config=0x81046b4) at
http_config.c:1051
#8 0x08063b54 in urlsection (cmd=0xbfbfc880, dummy=0x810444c, arg=0xbfbf86d1
"") at http_core.c:1708
#9 0x0805f559 in invoke_cmd (cmd=0x809f6f0, parms=0xbfbfc880,
mconfig=0x810444c, args=0xbfbf86ca "/search") at http_config.c:796
#10 0x0805ffa1 in ap_handle_command (parms=0xbfbfc880, config=0x81042fc,
l=0xbfbf86c0 "<Location /search") at http_config.c:1037
#11 0x08060027 in ap_srm_command_loop (parms=0xbfbfc880, config=0x81042fc) at
http_config.c:1051
#12 0x08064381 in virtualhost_section (cmd=0xbfbfc880, dummy=0x80b810c,
arg=0xbfbfa7ed "localhost:7008") at http_core.c:1972
#13 0x0805f559 in invoke_cmd (cmd=0x809f720, parms=0xbfbfc880,
mconfig=0x80b810c, args=0xbfbfa7ed "localhost:7008") at http_config.c:796
#14 0x0805ffa1 in ap_handle_command (parms=0xbfbfc880, config=0x80b7754,
l=0xbfbfa7e0 "<VirtualHost localhost:7008")
at http_config.c:1037
#15 0x08060027 in ap_srm_command_loop (parms=0xbfbfc880, config=0x80b7754) at
http_config.c:1051
#16 0x080607c3 in ap_process_resource_config (s=0x80b7034, fname=0x810402c
"/usr/local/apache_search/conf/httpd.vhosts.conf",
p=0x80b700c, ptemp=0x80bd00c) at http_config.c:1343
#17 0x08065803 in include_config (cmd=0xbfbfea70, dummy=0x80b810c,
name=0x810402c "/usr/local/apache_search/conf/httpd.vhosts.conf")
at http_core.c:2769
#18 0x0805f62f in invoke_cmd (cmd=0x809fe10, parms=0xbfbfea70,
mconfig=0x80b810c, args=0xbfbfc9ee "") at http_config.c:814
#19 0x0805ffa1 in ap_handle_command (parms=0xbfbfea70, config=0x80b7754,
l=0xbfbfc9d0 "include conf/httpd.vhosts.conf")
at http_config.c:1037
#20 0x08060027 in ap_srm_command_loop (parms=0xbfbfea70, config=0x80b7754) at
http_config.c:1051
#21 0x080607c3 in ap_process_resource_config (s=0x80b7034, fname=0x80b81a4
"/usr/local/apache_search/conf/httpd.conf", p=0x80b700c,
ptemp=0x80bd00c) at http_config.c:1343
#22 0x080610c9 in ap_read_config (p=0x80b700c, ptemp=0x80bd00c,
confname=0x80ac940 "conf/httpd.conf") at http_config.c:1635
#23 0x0806bf5f in main (argc=4, argv=0xbfbfebc4) at http_main.c:5732
(gdb) up
#1 0x28240de5 in DpsMatchListAdd (A=0x0, L=0x810b824, M=0xbfbf4ee0,
err=0x810b004 "/usr/local/dpsearch/etc/modsearchd.conf:68:
/usr/local/dpsearch/etc/sections.conf:35: ", errsize=2048, ordre=0)
at match.c:252
252 N->section = M->section ? (char *)DpsStrdup(M->section) : NULL;
(gdb) print *M
$3 = {match_type = 1, nomatch = 1668246575, case_sense = 0, section =
0x61657370 <Error reading address 0x61657370: Bad address>,
subsection = 0x2f686372 <Error reading address 0x2f686372: Bad address>,
pattern = 0xbfbf6076 "htdb:/site.ru/firms/559/",
reg = 0x6f6e7973, arg = 0xbfbf6097 "http://site.ru/profile/index.html/firm_",
server_id = 1936946546}
(gdb) up
#2 0x2824842d in ParseVariable (Agent=0x8106000, Env=0x810b000,
vars=0x810d0d8, str=0xbfbf6070 "Alias") at template.c:824
824 DpsMatchListAdd(NULL, &Env->Aliases,
&Alias, Env->errstr, sizeof(Env->errstr), 0);
(gdb) list
819 DPS_MATCH Alias;
820 Alias.pattern=arg;
821 Alias.arg=arg1;
822 Alias.match_type=DPS_MATCH_BEGIN;
823 Alias.case_sense=0;
824 DpsMatchListAdd(NULL, &Env->Aliases,
&Alias, Env->errstr, sizeof(Env->errstr), 0);
825 }
826 }else
827 if(!strcasecmp(str,"MaxWordLength")){
828 arg = dps_strtok_r(NULL, " \t\r\n", <);
(gdb) print Alias
$4 = {match_type = 1, nomatch = 1668246575, case_sense = 0, section =
0x61657370 <Error reading address 0x61657370: Bad address>,
subsection = 0x2f686372 <Error reading address 0x2f686372: Bad address>,
pattern = 0xbfbf6076 "htdb:/site.ru/firms/559/",
reg = 0x6f6e7973, arg = 0xbfbf6097 "http://site.ru/profile/index.html/firm_",
server_id = 1936946546}
(gdb)
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
Read the full topic here:
http://www.dataparksearch.org/cgi-bin/simpleforum.cgi?fid=05;topic_id=1106647693;page=2