Questions tagged [faulthandler]
8 questions
35
votes
1 answer
python: Is there a downside to using faulthandler?
Python 3.3 includes a module named faulthandler that displays helpful traceback information if a segfault occurs. (For Python versions prior to 3.3, the module can be obtained from PyPI.)
The module is not enabled by default. It is enabled like…

Stuart Berg
- 17,026
- 12
- 67
- 99
2
votes
1 answer
Get Python stack trace while using cx_freeze
I have a data acquisition program written in Python that I distribute to my collaboration as an executable (using cx_freeze), as I don't want to bother them with installing Python and installing all the software dependencies. The program has been…

The Quantum Physicist
- 24,987
- 19
- 103
- 189
1
vote
0 answers
Trouble tracking down Python Segfault with thread and GTK
I'm having trouble tracking down why my Python code often (but not always) Segfaults. I'm a rank beginner at Python, so don't be too harsh on my code posted below.
My code below is meant to run duply in a thread. I can't seem to reproduce the…

David Purton
- 111
- 3
1
vote
1 answer
Recover from Hard Fault on Cortex M0+
Until now I had a Hard fault handler in C that I defined in the vector table:
.sect ".intvecs"
.word _top_of_main_stack
.word _c_int00
.word NMI
.word Hard_Fault
.word Reserved
.word Reserved
.word Reserved
.word Reserved
.word Reserved
.word…

DrorNohi
- 153
- 1
- 2
- 11
1
vote
1 answer
Anaconda failed building wheel for faulthandler on TravisCI for python 2.7
I'm using TravisCI to run my unit tests for python 2.7, 3.4, 3.5 and 3.6. My .travis.yml file includes the line - pip install pytest-faulthandler, which until 2 days ago gave me no issues. Then, yesterday, for no apparent reason, this line started…

jjs
- 594
- 8
- 13
1
vote
0 answers
Ctypes segmentation fault fixed by faulthandler
I interact with a C framework using pythons ctypes, sometimes I get a segmentation fault when dereferencing a ctypes struct pointer.
To debug the segmentation fault I decided to install and enable faulthandler. (faulthandler is not default in…

vriesdemichael
- 914
- 1
- 7
- 19
0
votes
0 answers
MCU and ADC fault handling in production code
I am using S32k3xx ECU with mcal drivers from nxp. I want to handle the real time faults of adc and mcu in production code so read faults from adc using register/structure and passing this fault to DEM. So I want to know what is the Autosar standerd…

prish
- 1
- 1
0
votes
1 answer
cProfile for non terminating python program
I have a non terminating python program that I debug with
import faulthandler
faulthandler.dump_traceback_later(480,exit=True)
call_very_complicated_python_code()
I want to profile it to gain better understanding which parts are stuck:
$ python -m…

OrenIshShalom
- 5,974
- 9
- 37
- 87