mirror of
https://git.freebsd.org/ports.git
synced 2025-07-03 18:39:16 -04:00
Submitted by: George Liaskos Security: http://www.vuxml.org/freebsd/5bae2ab4-0820-11e2-be5f-00262d5ed8ee.html
18 lines
599 B
C++
18 lines
599 B
C++
--- base/debug/stack_trace_posix.cc.orig 2012-10-01 23:40:32.000000000 +0300
|
|
+++ base/debug/stack_trace_posix.cc 2012-10-01 23:41:09.000000000 +0300
|
|
@@ -148,9 +148,15 @@
|
|
} // namespace
|
|
|
|
StackTrace::StackTrace() {
|
|
+#if defined(OS_FREEBSD)
|
|
+ // Disable backtrace for now, libexecinfo crashes in getframeaddr
|
|
+ // in release build / i386.
|
|
+ count_ = 0;
|
|
+#else
|
|
// Though the backtrace API man page does not list any possible negative
|
|
// return values, we take no chance.
|
|
count_ = std::max(backtrace(trace_, arraysize(trace_)), 0);
|
|
+#endif
|
|
}
|
|
|
|
void StackTrace::PrintBacktrace() const {
|