Wednesday, August 12, 2015

Get public IP address of your computer

Open up the Terminal Application and run the command below to get the public IP address of your computer
dig +short myip.opendns.com @resolver1.opendns.com

Reference:
How to find my public IP address from command line on linux

Monday, August 3, 2015

Getting backtrace from qemu-kvm crash

When I'm running automated tests, qemu-kvm sometimes crashes and this needs to be debugged ASAP. To file a bug, I need a backtrace. As part of the test, the core which is dumped is saved.


  1. SSH into the machine where qemu-kvm crashed
  2. debuginfo-install qemu-kvm => This should install a bunch of packages to get a lot of symbol info. 
  3. gdb /usr/libexec/qemu-kvm <path to core file>
  4. Pass "thread apply all bt" to get the backtrace at the gdb prompt