Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
htop
Commits
6c71b7ed
Commit
6c71b7ed
authored
Jul 12, 2012
by
Hisham Muhammad
Browse files
improve crash message
parent
078b8316
Changes
1
Hide whitespace changes
Inline
Side-by-side
CRT.c
View file @
6c71b7ed
...
@@ -131,6 +131,11 @@ static void CRT_handleSIGSEGV(int sgn) {
...
@@ -131,6 +131,11 @@ static void CRT_handleSIGSEGV(int sgn) {
size_t
size
=
backtrace
(
backtraceArray
,
sizeof
(
backtraceArray
)
/
sizeof
(
void
*
));
size_t
size
=
backtrace
(
backtraceArray
,
sizeof
(
backtraceArray
)
/
sizeof
(
void
*
));
fprintf
(
stderr
,
"Backtrace:
\n
"
);
fprintf
(
stderr
,
"Backtrace:
\n
"
);
backtrace_symbols_fd
(
backtraceArray
,
size
,
2
);
backtrace_symbols_fd
(
backtraceArray
,
size
,
2
);
fprintf
(
stderr
,
"
\n
Additionally, in order to make the above backtrace useful,"
);
fprintf
(
stderr
,
"
\n
please also run the following command to generate a disassembly of your binary:"
);
fprintf
(
stderr
,
"
\n\n
objdump -d `which htop` > ~/htop.objdump"
);
fprintf
(
stderr
,
"
\n\n
and then attach the file ~/htop.objdump to your bug report."
);
fprintf
(
stderr
,
"
\n\n
Thank you for helping to improve htop!
\n\n
"
);
#endif
#endif
#else
#else
fprintf
(
stderr
,
"
\n\n
htop "
VERSION
" aborting. Unsupported platform.
\n
"
);
fprintf
(
stderr
,
"
\n\n
htop "
VERSION
" aborting. Unsupported platform.
\n
"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment