freebsd-ports/www/chromium/files/patch-base__debug__stack_trace_posix.cc
Rene Ladan 328a489e0b Update to 25.0.1364.97, some new features are:
- Improvements in managing and securing extensions
- Better support for HTML5 time/date inputs
- JavaScript Web Speech API support
- Better WebGL error handling

MathML is disabled in this release for security reasons.
Submitted by:	George Liaskos
Security:	http://www.vuxml.org/freebsd/dfd92cb2-7d48-11e2-ad48-00262d5ed8ee.html
2013-02-23 00:37:26 +00:00

28 lines
866 B
C++

--- base/debug/stack_trace_posix.cc.orig 2013-02-05 10:02:11.000000000 +0200
+++ base/debug/stack_trace_posix.cc 2013-02-13 20:27:44.000000000 +0200
@@ -14,6 +14,9 @@
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
+#if defined(OS_FREEBSD)
+#include <ucontext.h>
+#endif
#include <ostream>
@@ -326,9 +329,15 @@
// NOTE: This code MUST be async-signal safe (it's used by in-process
// stack dumping signal handler). NO malloc or stdio is allowed here.
+#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 {