2
When hacking on open-isns, or when trying to locate a problem,
3
the following information may be useful:
5
- You can start the daemon using the -f option, which
6
prevents it from backgrounding itself. Crucial if
7
you want to run it in a debugger, or under strace.
9
This option works for isnsd and isnsdd
11
- All tools support the "-d" option to enable debugging.
12
In general, you want to use "-d all" to turn on all
13
debugging options. However, you can select individual
14
debug facilities - check out the manpages and/or
15
the source code in logging.c
17
- If isnsd crashes, and you suspect memory corruption,
18
you can compile open-isns with memory debugging enabled. Re-run
19
the configure script and add the option --enable-memdebug. Then
20
run "make clean all" to rebuild everything.
22
Memory debugging can be chosen at run-time by setting the
23
ISNS_MDEBUG environment variable, and re-starting the application:
28
Memory debugging works for all memory allocations done by the
29
Open-iSNS code, but does not affect memory allocations by other
30
libraries (such as glibc or openssl).