Getting a live backtrace

 pstack pid

or use gdb to attach to the running process
and then using "where" to print the backtrace
gdb prog pid

gdb apache2 26219
(gdb) where
#0 0xb7799424 in __kernel_vsyscall ()
#1 0xb7689b7b in semop () from /lib/i686/cmov/
#2 0xb7731a4f in ?? () from /usr/lib/
#3 0x01158003 in ?? ()
#4 0xb7746548 in ?? () from /usr/lib/
#5 0x00000001 in ?? ()

Kernel Stack Traceback

If you have hung processes, capture a stack traceback to show where the processes are waiting in the kernel. You will need to build your kernel with the CONFIG_MAGIC_SYSRQ option (under Kernel Hacking) to enable stack traceback.
First, look in /etc/sysctl.conf to see if kernel.sysrq is set to 1. If not, then run this command:

echo 1 > /proc/sys/kernel/sysrq

Next, trigger a stack traceback via this command:
echo t > /proc/sysrq-trigger

Look on your console or in /var/log/messages for the output.

User tags

encrypt sysresccd SuperMicro bind dpkg netfilter exim4 corosync iptables mkfs LSI tin conntrack search arping sg alien usb PTR freedos iSCSI numa parallel mount tzdata rtl8723be cgroups security erase ha qemu glusterfs docker-compose perlbrew elliptics lxc regex equalizer lstat video leap second nginx find ipmi asoundrc cache chromium bacula perl iostat routing noop HTTPS debootstrap dovecot mysql Salt ddos hdparm xargs vlan cpanm deb fio git rsync nvidia SpamAssassin rkhunter openvpn lenny pam oprofile keyboard ulimit grub youtube etch MODx kernel language sublime core dump CPAN xfs OpenStack lts cluster dhcp bridge iowait xhost raid5 munin chroot RT performance flash cpu top Adaptec newgrp tftp puppet ubuntu slab pulseaudio swap shorewall route .htaccess storage drupal backtrace SYN docker soa vim bonding apache virt-install exim scsi wget DRBD java pvmove virtualbox KVM ipmitool fido7 raid graylog2 OpenSSL centos 7 APU jackd quagga vrrpd iops lubuntu tun gre /etc/network/interfaces sysctl.conf rpm X forwarding zRam ssh source alsa arp Areca Swift wordpress mdadm nfs4 vrrp idmapd bash virsh glxinfo tar proxy bscan NFS initrd arch hotplug tiger sysfs dns firefox debian radeon limit_conn HDFS StorMan opreport sysctl PXE gtk CentOS dhclient profiling vtysh su qcow2 dstat cpu usage pacemaker ansible SSD bug gdb rtsp MegaRAID taskset ardour cfq mariadb opcontrol htop shellshock ps replication php groups LVM sftp xen backup 3Ware tool ip sysrq fail2ban boot build AMD gpg apt squeeze