package/syslog-ng: fix segfault on startup due to pthread_atfork
authorThomas De Schampheleire <thomas.de_schampheleire@nokia.com>
Wed, 10 Apr 2019 08:26:00 +0000 (10:26 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Wed, 10 Apr 2019 16:46:25 +0000 (18:46 +0200)
commitd1467eaa6bb951fafb0c1f3320a06635922f24ad
tree4f67f7be84dd338591544307f8654d88e288d331
parent6afc83b60f0a1d129c2ea691e7d298303eaa9dda
package/syslog-ng: fix segfault on startup due to pthread_atfork

syslog-ng may segfault at startup (during library initialization, before
reaching main) in newer toolchains. I have witnessed it on aarch64 (but with
32-bit arm userland) with glibc 2.28.

Problem is described in syslog-ng issue #2263 [1], which in turn leads to a
problem in 'ivykis' which is shipped with syslog-ng, see ivykis issue #15
[2].

Root cause is that 'pthread_atfork' is used by ivykis but searched by its
configure script in libpthread_nonshared only. In newer toolchains, it seems
this symbol is in libc_nonshared.

Apply a patch someone proposed via pullrequest [3] to the ivykis project,
but which is at this moment not yet merged upstream.

[1] https://github.com/balabit/syslog-ng/issues/2263
[2] https://github.com/buytenh/ivykis/issues/15
[3] https://github.com/buytenh/ivykis/pull/16

Signed-off-by: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/syslog-ng/0003-look-for-pthread-atfork-also-in-libc-nonshared.patch [new file with mode: 0644]