Useful for tracking down segfaults in the daemon. This is not
upstreamable right now.
Example usage:
$ ./run guestfish -v -x -a /dev/null run : debug segv ""
[...]
libguestfs: trace: launch = 0
libguestfs: trace: debug "segv" ""
guestfsd: main_loop: new request, len 0x34
Program received signal SIGSEGV, Segmentation fault.
debug_segv (subcmd=0x4687050 "segv", argc=0, argv=0x4687070) at debug.c:223
223\tdebug.c: No such file or directory.
#0 debug_segv (subcmd=0x4687050 "segv", argc=0, argv=0x4687070) at debug.c:223
#1 0x000000000042e083 in debug_stub (xdr_in=<optimized out>) at stubs.c:2557
#2 0x0000000000448d5d in dispatch_incoming_message (xdr_in=0x7fffffffe8d0) at
stubs.c:15819
#3 0x0000000000428a91 in main_loop (_sock=73953360, _sock@entry=3) at proto.c:192
#4 0x000000000040564d in main (argc=<optimized out>, argv=<optimized out>) at
guestfsd.c:344
Rebooting.
Rich.
--
Richard Jones, Virtualization Group, Red Hat
http://people.redhat.com/~rjones
Read my programming and virtualization blog:
http://rwmj.wordpress.com
virt-top is 'top' for virtual machines. Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://people.redhat.com/~rjones/virt-top