diff options
Diffstat (limited to 'tests/backtrace-child.c')
| -rw-r--r-- | tests/backtrace-child.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/backtrace-child.c b/tests/backtrace-child.c index 0db12589..512aa238 100644 --- a/tests/backtrace-child.c +++ b/tests/backtrace-child.c @@ -100,7 +100,10 @@ sigusr2 (int signo) if (! gencore) { raise (SIGUSR1); - /* It should not be reached. */ + /* Do not return as stack may be invalid due to ptrace-patched PC to the + jmp function. */ + pthread_exit (NULL); + /* Not reached. */ abort (); } /* Here we dump the core for --gencore. */ @@ -218,6 +221,5 @@ main (int argc UNUSED, char **argv) pthread_join (thread, NULL); else raise (SIGUSR2); - /* Not reached. */ - abort (); + return 0; } |
