[Bug 229830] [truss] throws an assertion failure after the trussed process got killed

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Oct 13 09:19:51 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=229830

Jan Kokemüller <jan.kokemueller at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jan.kokemueller at gmail.com

--- Comment #2 from Jan Kokemüller <jan.kokemueller at gmail.com> ---
This bug can be reproduced by truss'ing  this process:


#include <sys/types.h>

#include <pthread.h>
#include <signal.h>
#include <unistd.h>

void *thread_fun(void *arg) {
        (void)arg;

        sleep(5);

        return NULL;
}

int main() {
        pthread_t thread;

        if (pthread_create(&thread, NULL, thread_fun, NULL) != 0) {
                return 1;
        }

        kill(getpid(), SIGKILL);

        sleep(1);
}


I suspect the reason is that threads killed by "thread_single()" in "exit1()"
don't send a ptrace notification.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list