Commit 7e8ea913 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Suppress errors from regex.c. Handle simultaneous runs of lyskomd and

dbck.  Make it possible to run lyskomd without malloc guard areas.
Fixed a read past the end of a buffer.  Fix the l2g test cases.
parent 77614a37
2002-08-02 Per Cederqvist <ceder@ceder.dyndns.org>
Suppress errors from regex.c. Handle simultaneous runs of lyskomd
and dbck.
* src/server/testsuite/lyskomd.supp: New file for valgrind. This
contains a suppression for bug 691.
* src/server/testsuite/config/unix.exp (l2g_start): Pass a log
file name to the valgrind wrapper.
(dbck_run): Ditto.
(spawn_lyskomd): New argument: log file name. All callers
updated. Use the lyskomd.supp valgrind suppressions file. Pass
--show-reachable=yes and a log file name to valgrind.
(check_valgrind): New arguments: logfile, need_leaks and
need_errs. All callers updated.
* src/server/testsuite/Makefile.am (valgrind.wrap): Expect the log
file name as the first argument.
(EXTRA_DIST): Added lyskomd.supp.
Make it possible to run lyskomd without malloc guard areas.
* configure.in: Added --disable-malloc-guards. This is useful
when combined with --with-valgrind, but should not be used in a
production setting.
* src/server/ram-smalloc.c: Document our guard areas, and make
them optional.
(OVERHEAD): New macro, that computes a size including the guard
area overhead. Two versions, depending on if USE_MALLOC_GUARDS is
defined or not.
(smalloc): Reindent. Test USE_MALLOC_GUARDS.
(sfree): Test USE_MALLOC_GUARDS.
(srealloc): Test USE_MALLOC_GUARDS.
Fixed a read past the end of a buffer.
* src/libraries/libmisc/s-string.c (s_strtol): When a string
containing only whitespace was passed to s_strtol, s_strtol would
attempt to read the sign ('+' or '-') past the end of the string.
Fix the l2g test cases.
* src/server/testsuite/l2g.0/00.exp: Destroy all structures before
exit, so that the leak check of valgrind works properly.
* src/server/testsuite/l2g.0/01.exp: Ditto.
* src/server/testsuite/l2g.0/02.exp: Ditto.
* src/server/testsuite/l2g.0/03.exp: Ditto.
* src/server/testsuite/l2g.0/04.exp: Ditto.
* src/server/testsuite/l2g.0/05.exp: Ditto.
* src/server/testsuite/l2g.0/06.exp: Ditto.
* src/server/testsuite/l2g.0/07.exp: Ditto.
* src/server/testsuite/l2g.0/08.exp: Ditto.
* src/server/testsuite/l2g.0/09.exp: Ditto.
* src/server/testsuite/l2g.0/10.exp: Ditto.
Valgrind refinements.
* src/server/testsuite/config/unix.exp (spawn_lyskomd): Use
......@@ -31,7 +79,6 @@
support.
* src/server/testsuite/.cvsignore: Ignore valgrind-*.log.
* src/server/testsuite/Makefile.am (site.exp): Set valgrind.
* src/server/testsuite/config/unix.exp: Use the "valgrind"
variable from site.exp. It contains a the path name of the
valgrind binary to use.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment