Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 May 2021 18:58:58 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 255339] logger(1): exited on signal 6 (core dumped): assertion in capability code (regression)
Message-ID:  <bug-255339-227-HGlQeYYxfD@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-255339-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-255339-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D255339

--- Comment #8 from Jung-uk Kim <jkim@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

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-255339-227-HGlQeYYxfD>