attempt to trouble shoot missing backtraces on linux
This commit is contained in:
parent
adc63d2b88
commit
3755a77a64
5
Jamfile
5
Jamfile
|
@ -151,7 +151,8 @@ rule linking ( properties * )
|
||||||
result += <library>tcmalloc ;
|
result += <library>tcmalloc ;
|
||||||
}
|
}
|
||||||
|
|
||||||
if <toolset>gcc in $(properties)
|
if ( <toolset>gcc in $(properties)
|
||||||
|
|| <toolset>clang in $(properties) )
|
||||||
&& <target-os>linux in $(properties)
|
&& <target-os>linux in $(properties)
|
||||||
&& ( <variant>debug in $(properties)
|
&& ( <variant>debug in $(properties)
|
||||||
|| <asserts>on in $(properties)
|
|| <asserts>on in $(properties)
|
||||||
|
@ -162,7 +163,7 @@ rule linking ( properties * )
|
||||||
{
|
{
|
||||||
# for backtraces in assertion failures
|
# for backtraces in assertion failures
|
||||||
# which only works on ELF targets with gcc
|
# which only works on ELF targets with gcc
|
||||||
result += <linkflags>-export-dynamic <cxxflags>-rdynamic ;
|
result += <linkflags>-export-dynamic <linkflags>-rdynamic ;
|
||||||
}
|
}
|
||||||
|
|
||||||
if <boost>source in $(properties)
|
if <boost>source in $(properties)
|
||||||
|
|
|
@ -226,7 +226,8 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||||
#define TORRENT_HAVE_FDATASYNC 1
|
#define TORRENT_HAVE_FDATASYNC 1
|
||||||
#endif // ANDROID
|
#endif // ANDROID
|
||||||
|
|
||||||
#if __amd64__ || __i386__
|
#if defined _GLIBC_ && ( defined __x86_64__ || defined __i386 \
|
||||||
|
|| defined _M_X64 || defined _M_IX86 )
|
||||||
#define TORRENT_USE_EXECINFO 1
|
#define TORRENT_USE_EXECINFO 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -207,7 +207,10 @@ TORRENT_EXPORT void print_backtrace(char* out, int len, int max_depth)
|
||||||
#else
|
#else
|
||||||
|
|
||||||
TORRENT_EXPORT void print_backtrace(char* out, int len, int max_depth)
|
TORRENT_EXPORT void print_backtrace(char* out, int len, int max_depth)
|
||||||
{ out[0] = 0; }
|
{
|
||||||
|
out[0] = 0;
|
||||||
|
strncat(out, "<not supported>", len)
|
||||||
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -102,6 +102,7 @@ void sig_handler(int sig)
|
||||||
strcat(stack_text, __FUNCTION__);
|
strcat(stack_text, __FUNCTION__);
|
||||||
#else
|
#else
|
||||||
stack_text[0] = 0;
|
stack_text[0] = 0;
|
||||||
|
strcat(stack_text, "<stack traces disabled>");
|
||||||
#endif
|
#endif
|
||||||
char const* sig_name = 0;
|
char const* sig_name = 0;
|
||||||
switch (sig)
|
switch (sig)
|
||||||
|
@ -125,7 +126,7 @@ void sig_handler(int sig)
|
||||||
|
|
||||||
output_test_log_to_terminal();
|
output_test_log_to_terminal();
|
||||||
|
|
||||||
exit(138);
|
exit(128 + sig);
|
||||||
}
|
}
|
||||||
|
|
||||||
void print_usage(char const* executable)
|
void print_usage(char const* executable)
|
||||||
|
|
Loading…
Reference in New Issue