[Bug 255339] logger(1): exited on signal 6 (core dumped): assertion in capability code (regression)

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 27 May 2021 18:58:58 +0000
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=255339

--- Comment #8 from Jung-uk Kim <jkim_at_FreeBSD.org> ---
It seems it is possible to trigger this assertion if I just close stdout.

% cat test_logger.c
#include <unistd.h>

int
main(void)
{

        close(STDOUT_FILENO);
        return (execl("/usr/bin/logger", "-t", "program", "test", NULL));
}
% cc -o test_logger test_logger.c
% ./test_logger
Assertion failed: (procfd > STDERR_FILENO), function service_clean, file
/usr/home/jkim/src/head/lib/libcasper/libcasper/service.c, line 394.
Broken pipe

-- 
You are receiving this mail because:
You are the assignee for the bug.
Received on Thu May 27 2021 - 18:58:58 UTC

Original text of this message