From d5dff793af80b6534e9fb2e4f0301993bd209a4f Mon Sep 17 00:00:00 2001 From: Paul Pluzhnikov Date: Sat, 15 Aug 2015 11:42:43 -0700 Subject: Fix BZ #18084 -- backtrace (..., 0) dumps core on x86. Other architectures also had bugs, or did unnecessary work. --- debug/tst-backtrace2.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'debug') diff --git a/debug/tst-backtrace2.c b/debug/tst-backtrace2.c index 846ca35555..396d743a53 100644 --- a/debug/tst-backtrace2.c +++ b/debug/tst-backtrace2.c @@ -94,6 +94,12 @@ fn3 (void) NO_INLINE static int do_test (void) { + /* Test BZ #18084. */ + void *buffer[1]; + + if (backtrace (buffer, 0) != 0) + FAIL (); + fn3 (); return ret; } -- cgit 1.4.1