Comment 40 for bug 797922

Revision history for this message
Seth Forshee (sforshee) wrote :

It is an internal wiki page (probably because it's still fairly error-prone); I didn't notice that earlier. Here are the instructions.

1. Download the pmdebug utilities. These are currently available in a git repository, so you need to have git installed (sudo apt-get install git). Then run 'git clone git://kernel.ubuntu.com/cking/pmdebug.git'.

2. Install kernel debug ddeb (this will take a while). First run 'echo "deb http://ddebs.ubuntu.com $(lsb_release -cs) main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list.d/ddebs.list' to create ddebs.list and then run 'sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 428D7C01' to import the signing key. Next run 'sudo apt-get update' followed by 'sudo apt-get install linux-image-$(uname -r)-dbgsym' to install the ddeb package.

3. Install systemtap. I think you said you've already done this, but the command is 'sudo apt-get install systemtap'.

4. Build the locatehang program. Cd into the locatehange directory within the pmdebug directory you downloaded in step 1, then run 'make'.

5. Cd to the pmdebug/systemtap directory and run 'sudo ./s4test -h'. If all goes well this will automatically hibernate the machine.

6. After the machine hangs, reboot it. Immediately after rebooting run the locatehang program you built in step 4. This must be done within a few minutes of the machine hanging, or else the data that was stored in the RTC could be corrupted.

After you've done all of this, attach the various *.log files in the pmdebug/systemtap directory and the output from locatehang. Let me know if you encounter any problems.

Thanks!