From a926288bee10a49a8ce095a3997db075256d697e Mon Sep 17 00:00:00 2001 From: naruse Date: Tue, 30 Nov 2010 08:06:22 +0000 Subject: [PATCH] * vm_dump.c: undef HAVE_BACKTRACE when the OS is FreeBSD (in other words backtrace() is libexecinfo) and it is optimized. This temporary hack should be also applied to other libexecinfo environments. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29982 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 7 +++++++ vm_dump.c | 3 +++ 2 files changed, 10 insertions(+) diff --git a/ChangeLog b/ChangeLog index f0b695ab2e..cdda576cd0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +Tue Nov 30 16:29:19 2010 NARUSE, Yui + + * vm_dump.c: undef HAVE_BACKTRACE when the OS is FreeBSD (in other + words backtrace() is libexecinfo) and it is optimized. + This temporary hack should be also applied to other libexecinfo + environments. + Tue Nov 30 16:23:23 2010 NARUSE, Yui * lib/net/http.rb: improve rdoc. diff --git a/vm_dump.c b/vm_dump.c index 278c4aab43..fd8f9e50c9 100644 --- a/vm_dump.c +++ b/vm_dump.c @@ -585,6 +585,9 @@ bugreport_backtrace(void *arg, VALUE file, int line, VALUE method) return 0; } +#if defined(__FreeBSD__) && defined(__OPTIMIZE__) +#undef HAVE_BACKTRACE +#endif #if HAVE_BACKTRACE # include #elif defined(_WIN32)