Open rwhitworth opened 4 years ago
Same issue on my debian also seen on ubuntu 16.04.
The patch can fix the build error:
diff --git a/src/threads.c b/src/threads.c
index 38b633f..547f21e 100644
--- a/src/threads.c
+++ b/src/threads.c
@@ -38,7 +38,9 @@ static struct task_struct *next_tid(struct task_struct *start) {
void recover_threads_snapshot(struct task_data *data) {
- struct task_struct *t = get_task_struct(data->tsk->group_leader);
+ //struct task_struct *t = get_task_struct(data->tsk->group_leader);
+ struct task_struct *t = data->tsk->group_leader;
+ atomic_inc(&(data->tsk->group_leader)->usage);
while (t) {
if (t != data->tsk) send_sig(SIGKILL, t, 1);
4.19 seems too old, we tested on various 5.x builds of ubuntu and arch
@andreafioraldi I had no trouble compiling on Ubuntu 20.04.1 which is 5.4 based. Thank you for pointing me in the correct direction.
I'll leave this ticket open since @JoeyJiao has also reported the issue and looks to be interested in issuing a PR.
This looks like an issue with the Debian supplied kernel-headers package. Any ideas on what to do?
This is a fresh install of Debian Buster 10.5. I had to install packages
build-essential sudo linux-headers-amd64
to get to this point.uname -a output:
Linux deb-afl-kernel 4.19.0-10-amd64 #1 SMP Debian 4.19.132-1 (2020-07-24) x86_64 GNU/Linux