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/libc.so.6
#2 0xb7731a4f in ?? () from /usr/lib/libapr-1.so.0
#3 0x01158003 in ?? ()
#4 0xb7746548 in ?? () from /usr/lib/libapr-1.so.0
#5 0x00000001 in ?? ()
...

https://wiki.ubuntu.com/Backtrace

User tags

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