You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Capture c++ stack traces from core dump files on linux (#38600)
* add pystack to workbench and developer environments
* Turn on core dumps on linux for the inner workbench process
Has to switch from multiprocessing to subprocess in order to do this (needed the preexec option).
Through some testing, this should preserve the desired spawn behaviour.
A new module 'workbench_process.py' has been created to use with subprocess.run (can't pass it a function)
* add module to get the compressed output from pystack on the latest worbench core file
* add tests for new run pystack module
* add cpp traces to the report sender
* base64 encode data to store as a string
* show pystack output in the show more details window
* add release note
* update existing tests
* fix pystack test
* add support for lz4 compressed core files, such as those on idaaas
* only import lz4 if on linux
* return Path type as intended
* use process id to identify core dump file
* move release note to 6.13
* pass missing parameter to errorreporter constructor
* only launch with preexec_func when not on windows to avoid crash
* add property to user properties default file
* Update comment in run_pystack
---------
Co-authored-by: thomashampson <thomas.hampson@stfc.ac.uk>
- Added property ``errorreports.core_dumps``. Linux users can set this to the directory on their system where core dump files are put after a crash (e.g ``errorreports.core_dumps=/var/lib/apport/coredump``).
2
+
Workbench will then be able to use this property to extract useful information from the core dump file created after a crash and give that to the error reporting service.
3
+
This will help us to diagnose some problems where previously no stacktrace was available after a crash. On Linux, core dumps are now always turned on for the workbench process.
0 commit comments