* [gentoo-commits] gentoo-x86 commit in dev-libs/elfutils/files: elfutils-0.158-tests-backtrace-native-core.patch
@ 2014-02-03 12:32 Mike Frysinger (vapier)
0 siblings, 0 replies; only message in thread
From: Mike Frysinger (vapier) @ 2014-02-03 12:32 UTC (permalink / raw
To: gentoo-commits
vapier 14/02/03 12:32:52
Added: elfutils-0.158-tests-backtrace-native-core.patch
Log:
Fix from upstream for backtrace tests #497566 by eroen.
(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key D2E96200)
Revision Changes Path
1.1 dev-libs/elfutils/files/elfutils-0.158-tests-backtrace-native-core.patch
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/elfutils/files/elfutils-0.158-tests-backtrace-native-core.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/elfutils/files/elfutils-0.158-tests-backtrace-native-core.patch?rev=1.1&content-type=text/plain
Index: elfutils-0.158-tests-backtrace-native-core.patch
===================================================================
https://bugs.gentoo.org/497566
From 435808a681cc375f0907f2066c4cc062173a6c7e Mon Sep 17 00:00:00 2001
From: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Sat, 18 Jan 2014 21:56:13 +0100
Subject: [PATCH] Fix false FAILs on testsuite with ulimit -c unlimited.
Signed-off-by: Jan Kratochvil <jan.kratochvil@redhat.com>
---
tests/ChangeLog | 6 ++++++
tests/backtrace-child.c | 8 +++++---
2 files changed, 11 insertions(+), 3 deletions(-)
2014-01-18 Jan Kratochvil <jan.kratochvil@redhat.com>
Fix false FAILs on testsuite with ulimit -c unlimited.
* backtrace-child.c (sigusr2): Call pthread_exit.
(main): Return, do not call abort.
diff --git a/tests/backtrace-child.c b/tests/backtrace-child.c
index 0db1258..512aa23 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;
}
--
1.8.5.3
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2014-02-03 12:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-03 12:32 [gentoo-commits] gentoo-x86 commit in dev-libs/elfutils/files: elfutils-0.158-tests-backtrace-native-core.patch Mike Frysinger (vapier)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox