We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tracee incorrectly reports the exit code after using the trigger program (attached), whereas it should simply report 1 and 77.
1
77
sudo ./dist/tracee -e sched_process_exit -s comm=trigger TIME UID COMM PID TID RET EVENT ARGS 12:08:14:542122 1000 trigger 3133042 3133042 0 sched_process_exit exit_code: 9, process_group_exit: true 12:08:14:542306 1000 trigger 3133041 3133041 0 sched_process_exit exit_code: 19712, process_group_exit: true
tracee version
Tracee version: main-7bd8324e9
uname -a
Linux vagrant 5.15.0-105-generic #115-Ubuntu SMP Mon Apr 15 09:52:04 UTC 2024 aarch64 aarch64 aarch64 GNU/Linux
Use the following code to trigger:
gcc -o trigger trigger.c
#include <unistd.h> #include <stdlib.h> #include <stdio.h> #include <sys/types.h> #include <sys/wait.h> #include <signal.h> int main() { printf("Forking process...\n"); pid_t pid = fork(); if (pid == 0) { printf("Child process running, PID: %d\n", getpid()); sleep(10); printf("Child process exiting normally\n"); exit(1); } else if (pid > 0) { // Parent process sleep(1); printf("Parent sending SIGKILL to child PID: %d\n", pid); kill(pid, SIGKILL); wait(NULL); } else { perror("fork"); return 1; } exit(77); }
The text was updated successfully, but these errors were encountered:
Fixed by #4564
Sorry, something went wrong.
rscampos
Successfully merging a pull request may close this issue.
Description
Tracee incorrectly reports the exit code after using the trigger program (attached), whereas it should simply report
1
and77
.Output of
tracee version
:Output of
uname -a
:Additional details
Use the following code to trigger:
The text was updated successfully, but these errors were encountered: