Skip to content

Instantly share code, notes, and snippets.

(gdb) thread apply all bt
Thread 18 (Thread 0x7f4b2a5d5700 (LWP 11702)):
#0 0x00007f4c096c8f85 in futex_abstimed_wait_cancelable (private=<optimized out>, abstime=0x7f4b2a5d4e00, expected=0, futex_word=0x56462ad3c93c <_PyRuntime+1340>) at ../sysdeps/unix/sysv/linux/futex-internal.h:205
#1 __pthread_cond_wait_common (abstime=0x7f4b2a5d4e00, mutex=0x56462ad3c940 <_PyRuntime+1344>, cond=0x56462ad3c910 <_PyRuntime+1296>) at pthread_cond_wait.c:539
#2 __pthread_cond_timedwait (cond=0x56462ad3c910 <_PyRuntime+1296>, mutex=0x56462ad3c940 <_PyRuntime+1344>, abstime=0x7f4b2a5d4e00) at pthread_cond_wait.c:667
#3 0x000056462abd965e in PyCOND_TIMEDWAIT (cond=0x56462ad3c910 <_PyRuntime+1296>, mut=0x56462ad3c940 <_PyRuntime+1344>, us=5000) at /home/conda/feedstock_root/build_artifacts/python_1591034797817/work/Python/condvar.h:90
#4 take_gil () at /home/conda/feedstock_root/build_artifacts/python_1591034797817/work/Python/ceval_gil.h:208
#5 0x000056462ab03be4 in PyEval_RestoreThread () at /home/conda/feedstock_root/
This file has been truncated, but you can view the full file.
(fairseq-test2) ➜ pytorch git:(a41d75b78a) ✗ gdb -p 6340
GNU gdb (Ubuntu 8.1-0ubuntu3.2) 8.1.0.20180409-git
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
@froody
froody / gist:17d016aa5fd3d2fca4ad018a21efdeed
Created February 27, 2020 01:10
Aircast log with hang
This file has been truncated, but you can view the full file.
-- Logs begin at Tue 2020-02-25 10:51:12 PST, end at Wed 2020-02-26 17:03:25 PST. --
Feb 25 10:51:16 raspberrypi systemd[1]: Started AirCast bridge.
Feb 25 10:51:16 raspberrypi aircast-arm[444]: [10:51:16.971832] main:945 Starting aircast version: v0.2.24.0 (Jan 4 2020 @ 16:23:31)
Feb 25 10:51:16 raspberrypi aircast-arm[444]: [10:51:16.972432] main:953 no config file, using defaults
Feb 25 10:51:16 raspberrypi aircast-arm[444]: [10:51:16.982039] Start:712 Binding to 0.0.0.0
Feb 25 10:51:47 raspberrypi aircast-arm[444]: [10:51:47.125706] MainThread:587 IP change detected 0.0.0.0
Feb 25 10:51:47 raspberrypi aircast-arm[444]: [10:51:47.126044] Start:712 Binding to 192.168.1.115
Feb 25 10:51:47 raspberrypi aircast-arm[444]: [10:51:47.180561] AddCastDevice:649 [0x84138]: adding renderer (Dining Room Speaker)
Feb 25 10:51:47 raspberrypi aircast-arm[444]: [10:51:47.180792] AddCastDevice:655 [0x84138]: creating MAC 84142
Feb 25 10:51:49 raspberrypi aircast-arm[444]: [10:51:49.321739] rtsp_thread:351 got RTSP connect
#!/usr/bin/env python
# Install dpkg with `brew install dpkg libelf` before running this script
import argparse
import sys
import bz2
import urllib2
import urllib
import urlparse
import posixpath