Language Features

PyFaulthandler

Python stdlib module — faulthandler. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.

Other Methods

.cancel_dump_traceback_later()Neutral
#
Signature
cancel_dump_traceback_later()

cancel_dump_traceback_later():

.disable()Neutral
#
Signature
disable()

disable(): disable the fault handler

.dump_traceback()Neutral
#
Signature
dump_traceback()

dump_traceback(file=sys.stderr, all_threads=True): dump the traceback of the current thread, or of all threads if all_threads is True, into file

.dump_traceback_later()Neutral
#
Signature
dump_traceback_later()

dump_traceback_later(timeout, repeat=False, file=sys.stderrn, exit=False):

.enable()Neutral
#
Signature
enable()

enable(file=sys.stderr, all_threads=True): enable the fault handler

.is_enabled()Neutral
#
Signature
is_enabled()

is_enabled()->bool: check if the handler is enabled

.register()Neutral
#
Signature
register()

register(signum, file=sys.stderr, all_threads=True, chain=False): register a handler for the signal 'signum': dump the traceback of the current thread, or of all threads if all_thr

.unregister()Neutral
#
Signature
unregister()

unregister(signum): unregister the handler of the signal 'signum' registered by register()

Fully-Qualified Names

FQNField
faulthandlerfqns[0]

Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.

Import

rule.py
import faulthandler