-
Notifications
You must be signed in to change notification settings - Fork 21
Print CORE_COLLECTOR as debug info #117
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -182,6 +182,7 @@ dump_fs() { | |||||
| KDUMP_LOG_DEST=$_dump_fs_path/ | ||||||
| KDUMP_LOG_OP="mv '$KDUMP_LOG_FILE' '$KDUMP_LOG_DEST/'" | ||||||
|
|
||||||
| ddebug "Core Collector: $CORE_COLLECTOR" | ||||||
| $CORE_COLLECTOR /proc/vmcore "$_dump_fs_path/vmcore-incomplete" > /dev/console 2>&1 | ||||||
| _dump_exitcode=$? | ||||||
| if [ $_dump_exitcode -eq 0 ]; then | ||||||
|
|
@@ -392,6 +393,7 @@ dump_raw() { | |||||
| fi | ||||||
|
|
||||||
| dinfo "saving vmcore" | ||||||
| ddebug "Core Collector: $CORE_COLLECTOR" | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The For example, you could log a hash of the sensitive parts, or redact them entirely.
Suggested change
|
||||||
| $CORE_COLLECTOR /proc/vmcore | dd of="$1" bs=$DD_BLKSIZE >> /tmp/dd_progress_file 2>&1 || return 1 | ||||||
| sync | ||||||
|
|
||||||
|
|
@@ -440,6 +442,7 @@ dump_ssh() { | |||||
| # shellcheck disable=SC2029,SC2086 | ||||||
| # - _ssh_opts needs to be split | ||||||
| # - _ssh_dir needs to be expanded | ||||||
| ddebug "Core Collector: $CORE_COLLECTOR" | ||||||
coiby marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||
| $CORE_COLLECTOR /proc/vmcore | ssh $_ssh_opts "$2" "umask 0077 && dd bs=512 of='$_ssh_dir/vmcore-incomplete'" | ||||||
| _ret=$? | ||||||
| _vmcore="vmcore.flat" | ||||||
|
|
||||||
Uh oh!
There was an error while loading. Please reload this page.