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

Add coredump analysis & debug mode #104

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Add coredump analysis & debug mode #104

wants to merge 2 commits into from

Conversation

asadsa92
Copy link
Contributor

List coredumps of the Manager & child process of Varnish. This contains useful information such as: time of the crash, pid, uid, gid, signal, whether corefile is present, path of the executeable and size of the corefile.

Gather further information of each coredump, such as but not limited to: command line, cgroup, stack traces of threads, loaded so, path of the corefile.

Coredump analysis of the latest crash is done using coredumpctl, we invoke gdb on the coredump to get the backtrace. This depend on coredumpctl having --debugger-arguments.

A debug mode is introduced and activated through "-d", when activated we invoke gdb on all Varnish instances to get full backtrace and threads information. This is behind a non-default flag as it will pause Varnish while gathering this information.

Signed-off-by: Asad Sajjad Ahmed asadsa@varnish-software.com

List coredumps of the Manager & child process of Varnish.
This contains useful information such as: time of the crash, pid, uid,
gid, signal, whether corefile is present, path of the executeable and size of
the corefile.

Gather further information of each coredump, such as but not limited to:
command line, cgroup, stack traces of threads, loaded so, path of the corefile.

Coredump analysis of the latest crash is done using
coredumpctl, we invoke gdb on the coredump to get the backtrace.
This depend on coredumpctl having --debugger-arguments.

A debug mode is introduced and activated through "-d", when activated we
invoke gdb on all Varnish instances to get full backtrace and threads
information. This is behind a non-default flag as it will pause Varnish while
gathering this information.

Signed-off-by: Asad Sajjad Ahmed <asadsa@varnish-software.com>
Pulling this information later can be tricky.
File format could have changed, symbols might be missing, etc.
So, the best solution here is to run these commands on the Varnish server
itself.

Signed-off-by: Asad Sajjad Ahmed <asadsa@varnish-software.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant