Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
d5391ed6
Commit
d5391ed6
authored
Dec 06, 2009
by
Staale Smedseng
Browse files
Options
Browse Files
Download
Plain Diff
Merge from 5.0
parents
42fead10
846c81c7
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
3 deletions
+22
-3
configure.in
configure.in
+1
-1
include/my_stacktrace.h
include/my_stacktrace.h
+1
-1
mysys/stacktrace.c
mysys/stacktrace.c
+20
-1
No files found.
configure.in
View file @
d5391ed6
...
...
@@ -2094,7 +2094,7 @@ AC_CHECK_FUNCS(alarm bcmp bfill bmove bsearch bzero \
sighold sigset sigthreadmask port_create
sleep
\
snprintf socket stpcpy strcasecmp strerror strsignal strnlen strpbrk strstr
\
strtol strtoll strtoul strtoull tell tempnam thr_setconcurrency vidattr
\
posix_fallocate backtrace backtrace_symbols backtrace_symbols_fd
)
posix_fallocate backtrace backtrace_symbols backtrace_symbols_fd
printstack
)
#
#
...
...
include/my_stacktrace.h
View file @
d5391ed6
...
...
@@ -23,7 +23,7 @@
(defined(__alpha__) && defined(__GNUC__))
#define HAVE_STACKTRACE 1
#endif
#elif defined(__WIN__)
#elif defined(__WIN__)
|| defined(__sun)
#define HAVE_STACKTRACE 1
#endif
...
...
mysys/stacktrace.c
View file @
d5391ed6
...
...
@@ -63,7 +63,26 @@ void my_safe_print_str(const char* name, const char* val, int max_len)
fputc
(
'\n'
,
stderr
);
}
#if HAVE_BACKTRACE && (HAVE_BACKTRACE_SYMBOLS || HAVE_BACKTRACE_SYMBOLS_FD)
#if defined(HAVE_PRINTSTACK)
/* Use Solaris' symbolic stack trace routine. */
#include <ucontext.h>
void
my_print_stacktrace
(
uchar
*
stack_bottom
__attribute__
((
unused
)),
ulong
thread_stack
__attribute__
((
unused
)))
{
if
(
printstack
(
fileno
(
stderr
))
==
-
1
)
fprintf
(
stderr
,
"Error when traversing the stack, stack appears corrupt.
\n
"
);
else
fprintf
(
stderr
,
"Please read "
"http://dev.mysql.com/doc/refman/5.1/en/resolve-stack-dump.html
\n
"
"and follow instructions on how to resolve the stack trace.
\n
"
"Resolved stack trace is much more helpful in diagnosing the
\n
"
"problem, so please do resolve it
\n
"
);
}
#elif HAVE_BACKTRACE && (HAVE_BACKTRACE_SYMBOLS || HAVE_BACKTRACE_SYMBOLS_FD)
#if BACKTRACE_DEMANGLE
...
...
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