Parcourir la source

Add Python Faulthandler Example

Debug segmentation faults when they occur.
master
Nate Bohman il y a 4 ans
Parent
révision
b07c46c161
Signé par: Nate Bohman <natrinicle@gmail.com> ID de la clé GPG: C10546A54ABA1CE5
1 fichiers modifiés avec 10 ajouts et 0 suppressions
  1. +10
    -0
      python_faulthandler

+ 10
- 0
python_faulthandler Voir le fichier

@@ -0,0 +1,10 @@
# If getting a segmentation fault on exit, enable the Python faulthandler to show where it's coming from.

python -X faulthandler ./check_oonum_auth_svc.py -H 'api.staging.oonum.io' --username 'developer@testfire.com' --password 'PASSWORD' --private-key '/home/natrinicle/repos/oonum/staging-keys/testfire.priv' --issuer '@testfire/testfire-svc' --org '85TqPo6FizwoNnVU5TsDAa' --mongo-url 'mongodb+srv://auth-svc:PASSWORD@staging.mongodb.staging.oonum.io/auth?ssl=false&retryWrites=true&serverSelectionTimeoutMS=5000&connectTimeoutMS=10000&authMechanism=SCRAM-SHA-256&w=majority' --runs 5
OONUM AUTH-SVC API UNKNOWN: Timeout: check execution aborted after 50s
Fatal Python error: Segmentation fault

Current thread 0x00007f36e505d740 (most recent call first):
File "/home/natrinicle/repos/oonum/salt/formulas/icinga2/icinga2/checks/venv/lib/python3.8/site-packages/shm_dict/shm_dict.py", line 145 in map_file
File "/home/natrinicle/repos/oonum/salt/formulas/icinga2/icinga2/checks/venv/lib/python3.8/site-packages/shm_dict/shm_dict.py", line 242 in __del__
Segmentation fault

Chargement…
Annuler
Enregistrer