Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Analyse core dump files to capture c++ stack traces #38405

Open
jhaigh0 opened this issue Nov 18, 2024 · 0 comments · May be fixed by #38600
Open

Analyse core dump files to capture c++ stack traces #38405

jhaigh0 opened this issue Nov 18, 2024 · 0 comments · May be fixed by #38600
Assignees
Labels
ISIS Team: Core Issue and pull requests managed by the Core subteam at ISIS Linux Only Only on Linux
Milestone

Comments

@jhaigh0
Copy link
Contributor

jhaigh0 commented Nov 18, 2024

I started some exploratory work on this a while back on this branch main...core_dump_analysis. I had some success with this but there were also some problems with the implementation.

Essentially, if we set the inner workbench process to produce core dump files on crash, we could get the c++ thread traces out of the file using a tool like gdb. This could be sent to the error reporter site (which will need a bit of a change to support this).

Previously I used gdb but it came with some drawbacks, mainly that it was very slow. It was also just a bit heavy-handed to add gdb as a runtime dependency of workbench.

This time round, after discussing with @martyngigg, pystack looks like a good option. (https://bloomberg.github.io/pystack/corefile.html). This will produce much more output than currently we can send to the error reports site (it gets the trace from every thread), so this data will be compressed and sent to a new field that'll be created in the error reports database model.

This issue is to create the system which will, switch on, locate, and analyse the core dump files, having them ready to send to the error reports site once that work is done.

@jhaigh0 jhaigh0 added ISIS Team: Core Issue and pull requests managed by the Core subteam at ISIS Linux Only Only on Linux labels Nov 18, 2024
@jhaigh0 jhaigh0 added this to the Release 6.12 milestone Nov 18, 2024
@jhaigh0 jhaigh0 self-assigned this Nov 18, 2024
@jhaigh0 jhaigh0 moved this to In Progress in ISIS Core Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ISIS Team: Core Issue and pull requests managed by the Core subteam at ISIS Linux Only Only on Linux
Projects
Status: In Progress
Development

Successfully merging a pull request may close this issue.

1 participant