summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/syslog-ng/files/0001-syslog-ng-fix-segment-fault-during-service-start.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-support/syslog-ng/files/0001-syslog-ng-fix-segment-fault-during-service-start.patch')
-rw-r--r--meta-oe/recipes-support/syslog-ng/files/0001-syslog-ng-fix-segment-fault-during-service-start.patch27
1 files changed, 13 insertions, 14 deletions
diff --git a/meta-oe/recipes-support/syslog-ng/files/0001-syslog-ng-fix-segment-fault-during-service-start.patch b/meta-oe/recipes-support/syslog-ng/files/0001-syslog-ng-fix-segment-fault-during-service-start.patch
index 0fc40be4a9..b5bfcd025a 100644
--- a/meta-oe/recipes-support/syslog-ng/files/0001-syslog-ng-fix-segment-fault-during-service-start.patch
+++ b/meta-oe/recipes-support/syslog-ng/files/0001-syslog-ng-fix-segment-fault-during-service-start.patch
@@ -1,6 +1,3 @@
1From caeccb7bec45f65bc89efa8195b3853368328361 Mon Sep 17 00:00:00 2001
2From: Changqing Li <changqing.li@windriver.com>
3Date: Mon, 17 Sep 2018 12:49:36 +0800
4Subject: [PATCH] syslog-ng: fix segment fault during service start on arm64 1Subject: [PATCH] syslog-ng: fix segment fault during service start on arm64
5 2
6service start failed since segment fault on arch arm64, 3service start failed since segment fault on arch arm64,
@@ -17,12 +14,15 @@ https://github.com/buytenh/ivykis/issues/15
17Upstream-Status: Pending 14Upstream-Status: Pending
18 15
19Signed-off-by: Changqing Li <changqing.li@windriver.com> 16Signed-off-by: Changqing Li <changqing.li@windriver.com>
17
18Update for 3.24.1.
19Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>
20--- 20---
21 lib/ivykis/src/pthr.h | 24 ++++++++++++------------ 21 lib/ivykis/src/pthr.h | 23 ++++++++++++-----------
22 1 file changed, 12 insertions(+), 12 deletions(-) 22 1 file changed, 12 insertions(+), 11 deletions(-)
23 23
24diff --git a/lib/ivykis/src/pthr.h b/lib/ivykis/src/pthr.h 24diff --git a/lib/ivykis/src/pthr.h b/lib/ivykis/src/pthr.h
25index a41eaf3..72c5190 100644 25index 29e4be7..5d29096 100644
26--- a/lib/ivykis/src/pthr.h 26--- a/lib/ivykis/src/pthr.h
27+++ b/lib/ivykis/src/pthr.h 27+++ b/lib/ivykis/src/pthr.h
28@@ -24,6 +24,16 @@ 28@@ -24,6 +24,16 @@
@@ -47,12 +47,12 @@ index a41eaf3..72c5190 100644
47 #ifdef HAVE_PRAGMA_WEAK 47 #ifdef HAVE_PRAGMA_WEAK
48 48
49-/* 49-/*
50- * On Linux, pthread_atfork() is defined in libpthread_nonshared.a, 50- * On Linux, pthread_atfork() is defined in libc_nonshared.a (for
51- * a static library, and we want to avoid "#pragma weak" for that 51- * glibc >= 2.28) or libpthread_nonshared.a (for glibc <= 2.27), and
52- * symbol because that causes it to be undefined even if you link 52- * we want to avoid "#pragma weak" for that symbol because that causes
53- * libpthread_nonshared.a in explicitly. 53- * it to be undefined even if you link lib*_nonshared.a in explicitly.
54- */ 54- */
55-#ifndef HAVE_LIBPTHREAD_NONSHARED 55-#if !defined(HAVE_LIBC_NONSHARED) && !defined(HAVE_LIBPTHREAD_NONSHARED)
56-#pragma weak pthread_atfork 56-#pragma weak pthread_atfork
57-#endif 57-#endif
58- 58-
@@ -60,16 +60,15 @@ index a41eaf3..72c5190 100644
60 #pragma weak pthread_create 60 #pragma weak pthread_create
61 #pragma weak pthread_detach 61 #pragma weak pthread_detach
62 #pragma weak pthread_getspecific 62 #pragma weak pthread_getspecific
63@@ -73,8 +74,7 @@ static inline int 63@@ -73,7 +74,7 @@ static inline int
64 pthr_atfork(void (*prepare)(void), void (*parent)(void), void (*child)(void)) 64 pthr_atfork(void (*prepare)(void), void (*parent)(void), void (*child)(void))
65 { 65 {
66 if (pthreads_available()) 66 if (pthreads_available())
67- return pthread_atfork(prepare, parent, child); 67- return pthread_atfork(prepare, parent, child);
68-
69+ return __register_atfork(prepare, parent, child, __dso_handle); 68+ return __register_atfork(prepare, parent, child, __dso_handle);
69
70 return ENOSYS; 70 return ENOSYS;
71 } 71 }
72
73-- 72--
742.7.4 732.7.4
75 74