[PATCH] Make overview debugging compile (was Re: buffindexed overview corruption, INN 2.3.2, Linux)
Harald Welte
laforge at gnumonks.org
Wed Jan 16 18:51:04 UTC 2002
On Mon, Jan 14, 2002 at 12:08:28PM +0900, Katsuhiro Kondou wrote:
>
> In article <20020113105202.B7435 at sunbeam.de.gnumonks.org>,
> Harald Welte <laforge at gnumonks.org> wrote;
>
> } Any idea what might cause the overview corruption?
> :
> } The problem is _not_ crash-related!
>
> Hm, could you debug together with me?
>
> If, so. To enable debugging, it's necessary to recompile
> buffindexed.c with -DOV_DEBUG. In the case of the problem
> happening, you should have several error messages in syslog.
> And also you'll get the buffer block info under $pathtmp/$pid.
> I'd want to get those info.
I've now rebuilt my inn package with -DOV_DEBUG enabled. Debugging
doesn't seem to work right ahead, since there are a couple of compile
problems. You might consider the following patch in order to make
-DOV_DEBUG compile straight ahead:
--- inn-2.3.2-plain/storage/buffindexed/buffindexed.c Wed Jan 16 19:46:10 2002
+++ inn-2.3.2/storage/buffindexed/buffindexed.c Wed Jan 16 19:47:17 2002
@@ -1801,7 +1801,11 @@
/* this may be duplicated, but ignore it in this case */
OVEXPremove(Gib[j].token, TRUE, NULL, 0);
}
+#ifdef OV_DEBUG
+ freegroupblock(ge);
+#else
freegroupblock();
+#endif
ovgroupunmap();
ge->expired = time(NULL);
ge->count = 0;
@@ -1919,7 +1923,7 @@
FILE *F = NULL;
PID_T pid;
char *path = NULL;
- int j;
+ int i,j;
struct ov_trace_array *trace;
struct ov_name_table *ntp;
#endif /* OV_DEBUG */
> --
> Katsuhiro Kondou
>
>
--
Live long and prosper
- Harald Welte / laforge at gnumonks.org http://www.gnumonks.org/
============================================================================
GCS/E/IT d- s-: a-- C+++ UL++++$ P+++ L++++$ E--- W- N++ o? K- w--- O- M-
V-- PS+ PE-- Y+ PGP++ t++ 5-- !X !R tv-- b+++ DI? !D G+ e* h+ r% y+(*)
More information about the inn-workers
mailing list