File: HACKING

package info (click to toggle)
open-isns 0.101-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,440 kB
  • sloc: ansic: 19,981; sh: 3,211; python: 1,083; perl: 839; makefile: 214
file content (30 lines) | stat: -rw-r--r-- 1,125 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30

When hacking on open-isns, or when trying to locate a problem,
the following information may be useful:

 -	You can start the daemon using the -f option, which
 	prevents it from backgrounding itself. Crucial if
	you want to run it in a debugger, or under strace.

	This option works for isnsd and isnsdd

 -	All tools support the "-d" option to enable debugging.
 	In general, you want to use "-d all" to turn on all
	debugging options. However, you can select individual
	debug facilities - check out the manpages and/or
	the source code in logging.c

 -	If isnsd crashes, and you suspect memory corruption,
	you can compile open-isns with memory debugging enabled.  Re-run
	the configure script and add the option --enable-memdebug. Then
	run "make clean all" to rebuild everything.

	Memory debugging can be chosen at run-time by setting the
	ISNS_MDEBUG environment variable, and re-starting the application:

	export ISNS_MDEBUG=1
	./isnsd -f -d all

	Memory debugging works for all memory allocations done by the
	Open-iSNS code, but does not affect memory allocations by other
	libraries (such as glibc or openssl).