File: dev_faulthandler.py

package info (click to toggle)
streamtuner2 2.2.1%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,432 kB
  • sloc: python: 8,976; makefile: 91; php: 51; sh: 7; perl: 3
file content (23 lines) | stat: -rw-r--r-- 580 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# api: python
# title: faulthandler
# description: capture fatal errors / memory fauls / Gtk and threading bugs
# version: -1
# type: io
# category: debug
# priority: development
#
# Debug Gtk/glibs/python/threading crashes.
#
# * Gdk:ERROR:/build/buildd/gtk+2.0-2.24.23/gdk/gdkregion-generic.c:1110:miUnionNonO:
#   assertion failed: (y1 < y2)
# * foobar: double free or corruption (fasttop): 0x...


import faulthandler
faulthandler.enable()
   # file=open("/tmp/st2.log", "a+"), all_threads=True

class dev_faulthandler(object):
    def __init__(sefl, *x, **kw):
        pass