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...
�� ����� ������� !
����� ��������� ���������� gdb (6.3) ������� �������� ��������� :
�������� ����� :
# /usr/local/bin/gdb ./bin/httpd
GNU gdb 6.3
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-unknown-freebsd5.3"...
(gdb) run -X -d /usr/local/apache_search
Starting program: /usr/local/apache_search/bin/httpd -X -d
/usr/local/apache_search
[Mon Jan 31 17:38:13 2005] [warn] module mod_dpsearch.c is already added,
skipping
mod_dpsearch[70576]: Preloading url data
mod_dpsearch[70576]: URL data preloaded. 3646804 bytes of memory used
mod_dpsearch[70576]: mod_dpsearch started with
'/usr/local/dpsearch/etc/modsearchd.conf'
mod_dpsearch[70576]: LogLevel: 3
mod_dpsearch[70576]: VarDir: '/usr/local/dpsearch/var'
mod_dpsearch[70576]: Affixes: 1332, Spells: 131203, Synonyms: 30832
������ ��������� ������ � �������� :
Program received signal SIGSEGV, Segmentation fault.
0x281d5045 in dpsearch_handler (r=0xb81f034) at mod_dpsearch.c:798
798 *catpath = '\0';
(gdb) list
793 size_t c, l = 0;
794
795 for(c = 0; c < C.ncategories; c++) l += 32 +
strlen(C.Category[c].path) + strlen(C.Category[c].name);
796 catpath = (char*)DpsMalloc(l);
797 if (catpath != NULL) {
798 *catpath = '\0';
799 for(c = 0; c < C.ncategories; c++){
800 sprintf(catpath+strlen(catpath)," >
<A HREF=\"?cat=%s\">%s</A> ",
801 C.Category[c].path,
802 C.Category[c].name);
(gdb) print catpath
$1 = 0x800 <Address 0x800 out of bounds>
(gdb) print l
$2 = 0
(gdb)
� mod_dpsearch.c:796 ������� if (l>0) - ���������� !!!
�������� � ���, ��� DY �� ���������� �� ��, ��� ����...
�� ���� ��� ����� ������� ��������� ���...
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
Read the full topic here:
http://www.dataparksearch.org/cgi-bin/simpleforum.cgi?fid=05;topic_id=1106647693;page=3