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

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