From owner-freebsd-ports-bugs@freebsd.org Sun Sep 6 16:51:41 2015 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 432469CCB75 for ; Sun, 6 Sep 2015 16:51:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 14CC192 for ; Sun, 6 Sep 2015 16:51:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id t86Gpe6w070874 for ; Sun, 6 Sep 2015 16:51:40 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 202932] sysutils/rsyslog8 endless loop on FreeBSD 10.2 Date: Sun, 06 Sep 2015 16:51:40 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: fbsd.bugzilla@fenyo.net X-Bugzilla-Status: New X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: brd@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Sep 2015 16:51:41 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=202932 Bug ID: 202932 Summary: sysutils/rsyslog8 endless loop on FreeBSD 10.2 Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: Individual Port(s) Assignee: brd@FreeBSD.org Reporter: fbsd.bugzilla@fenyo.net Flags: maintainer-feedback?(brd@FreeBSD.org) Assignee: brd@FreeBSD.org Created attachment 160781 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=160781&action=edit correcting the endless loop bug Hi, Bug ID 200429 (endless loop when started at boot time), that had been corrected on FreeBSD 10.1, came back with FreeBSD 10.2, due to kernel behaviour changes. When the /dev/console device is revoked, writing to the device sets errno to: - ENXIO with FreeBSD 10.1 kernel - EIO with FreeBSD 10.2 kernel The following program can be used to see this behaviour change: ------------------------------------------------------------------ #include #include #include #include extern int errno; int main() { int id = open("/dev/console", O_RDWR); revoke("/dev/console"); int ret = write(id, "X", 1); if (ret < 0) printf("errno=%d\n", errno); return 0; } ------------------------------------------------------------------ It returns 6 (ENXIO) on FreeBSD 10.1 and 5 (EIO) on FreeBSD 10.2. To make rsyslog8 work correctly, here is a new version of sysutils/rsyslog8/files/patch-runtime_stream.c, in which I've added modifications to correct the bug. Note that the bug had been previously corrected in the main stream, in the rsyslog8 original sources, not by a FreeBSD patch. But I've not sent a patch proposal to the main stream this time because I suspect that the new behaviour of the kernel is unwanted. So, I will open a bug report for this new behaviour, and depending on the result, I may, or not, send back a bug report to the main stream. Sincerely, -- You are receiving this mail because: You are the assignee for the bug.