1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-28 00:21:52 +03:00

Fix BZ #18084 -- backtrace (..., 0) dumps core on x86.

Other architectures also had bugs, or did unnecessary work.
This commit is contained in:
Paul Pluzhnikov
2015-08-15 11:42:43 -07:00
parent 3cda1b6d56
commit d5dff793af
11 changed files with 57 additions and 16 deletions

View File

@ -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;
}