1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-30 11:22:14 +03:00

Bug #47391 no stack trace printed to error log on

solaris after a crash
      
This patch adds a Solaris-specific version of
print_stacktrace() which uses printstack(2), available on all
Solaris versions since Solaris 9. (While Solaris 11 adds
support for the glibc functions backtrace_*() as of
PSARC/2007/162, printstack() is used for consistency over all
Solaris versions.)

The symbol names are mangled, so use of c++filt may be
required as described in the MySQL documentation.
This commit is contained in:
Staale Smedseng
2009-12-06 18:11:37 +01:00
parent eb9114229f
commit 846c81c763
2 changed files with 22 additions and 0 deletions

View File

@@ -35,6 +35,9 @@ void check_thread_lib(void);
#define HAVE_STACKTRACE
extern void set_exception_pointers(EXCEPTION_POINTERS *ep);
#define init_stacktrace() {}
#elif defined(__sun)
#define HAVE_STACKTRACE
#define init_stacktrace() {}
#endif
#ifdef HAVE_STACKTRACE