Sfoglia il codice sorgente

Add Python Faulthandler Example

Debug segmentation faults when they occur.
master
Nate Bohman 4 anni fa
parent
commit
b07c46c161
Firmato da: Nate Bohman <natrinicle@gmail.com> ID Chiave GPG: C10546A54ABA1CE5
1 ha cambiato i file con 10 aggiunte e 0 eliminazioni
  1. +10
    -0
      python_faulthandler

+ 10
- 0
python_faulthandler Vedi File

@@ -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

Loading…
Annulla
Salva