There seems to be a compiler bug that causes memory corruption in any
spawned threads. This used to materialize mostly in downloading files
when cURL spawned a thread to call the glibc resolver.
See: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81142
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
#include <pakfire/string.h>
#include <pakfire/util.h>
-static __thread char bpf_log_buffer[BPF_LOG_BUF_SIZE];
-
#define BUFFER_SIZE 64 * 1024
// Short form of mov, dst_reg = src_reg
}
static int pakfire_cgroup_setup_devices(struct pakfire_cgroup* cgroup) {
+ char bpf_log_buffer[BPF_LOG_BUF_SIZE];
+
LIBBPF_OPTS(bpf_prog_load_opts, opts,
// Log Buffer
.log_buf = bpf_log_buffer,