Преглед на файлове

Add Python Faulthandler Example

Debug segmentation faults when they occur.
master
Nate Bohman преди 4 години
родител
ревизия
b07c46c161
Signed by: Nate Bohman <natrinicle@gmail.com> GPG Key ID: C10546A54ABA1CE5
променени са 1 файла, в които са добавени 10 реда и са изтрити 0 реда
  1. +10
    -0
      python_faulthandler

+ 10
- 0
python_faulthandler Целия файл

@@ -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…
Отказ
Запис