diff options
author | Paul Pluzhnikov <ppluzhnikov@google.com> | 2015-08-15 11:42:43 -0700 |
---|---|---|
committer | Paul Pluzhnikov <ppluzhnikov@google.com> | 2015-08-15 11:42:43 -0700 |
commit | d5dff793af80b6534e9fb2e4f0301993bd209a4f (patch) | |
tree | c3df534ffb1c966cb96ac71fee5cc0c4f17d3d57 /debug | |
parent | stpncpy: fix bug number [BZ #18795] (diff) | |
download | glibc-d5dff793af80b6534e9fb2e4f0301993bd209a4f.tar.gz glibc-d5dff793af80b6534e9fb2e4f0301993bd209a4f.tar.bz2 glibc-d5dff793af80b6534e9fb2e4f0301993bd209a4f.zip |
Fix BZ #18084 -- backtrace (..., 0) dumps core on x86.
Other architectures also had bugs, or did unnecessary work.
Diffstat (limited to 'debug')
-rw-r--r-- | debug/tst-backtrace2.c | 6 |
1 files changed, 6 insertions, 0 deletions
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; } |