소스 검색

Add Python Faulthandler Example

Debug segmentation faults when they occur.
master
Nate Bohman 4 년 전
부모
커밋
b07c46c161
로그인 계정: Nate Bohman <natrinicle@gmail.com> GPG Key ID: C10546A54ABA1CE5
1개의 변경된 파일10개의 추가작업 그리고 0개의 파일을 삭제
  1. +10
    -0
      python_faulthandler

+ 10
- 0
python_faulthandler 파일 보기

# 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…
취소
저장