Launching Rockhopper from terminal.
To Launch Rockhopper from a terminal, you can use
rockhopper-dbg.run script.
This script invokes Rockhopper(/usr/sbin/rockhopperd) from the
terminal and enables core dump. In this case, Rockhopper is not daemonized.
-
% sudo su (Ubuntu)
-
% /etc/init.d/rockhopper stop (Ubuntu)
-
% cd <install_dir>/rockhopper-<version>/debug_tools
-
Confirm that all Rockhopper's
processes are already killed.
(pgrep -f rockhopper -l)
Run it like this:
% ./rockhopper-dbg.run term
A core dump file is generated in the current directory (<install_dir>/rockhopper-<version>/debug_tools).
-
Invoke gdb to debug the core file like this:
% ./rockhopper-dbg.run core
If you want to build Rockhopper with no optimization
(gcc -O0), please install like this:
% cd rockhopper-<version> (installed-dir)
% sudo ./debug_tools/install_dbg_no_optmz.sh
In addition,
if you want to enable most debug flags (gcc -DRHP_XXX), please install
like this:
% cd rockhopper-<version> (installed-dir)
% sudo ./debug_tools/install_dbg_all.sh