From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Dec 9 16:10:16 2010 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 742CE106564A for ; Thu, 9 Dec 2010 16:10:16 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 639C88FC12 for ; Thu, 9 Dec 2010 16:10:16 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id oB9GAGHh072421 for ; Thu, 9 Dec 2010 16:10:16 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id oB9GAGYO072420; Thu, 9 Dec 2010 16:10:16 GMT (envelope-from gnats) Date: Thu, 9 Dec 2010 16:10:16 GMT Message-Id: <201012091610.oB9GAGYO072420@freefall.freebsd.org> To: freebsd-ports-bugs@FreeBSD.org From: Chris Calvey Cc: Subject: Re: ports/152304: sysutils/fcron: illegal instruction 4 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Chris Calvey List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Dec 2010 16:10:16 -0000 The following reply was made to PR ports/152304; it has been noted by GNATS. From: Chris Calvey To: bug-followup@FreeBSD.org Cc: Subject: Re: ports/152304: sysutils/fcron: illegal instruction 4 Date: Thu, 9 Dec 2010 15:39:16 +0000 I have found the cause of this bug. When subs.c is compiled the following warning message is generated: subs.c: In function 'open_as_user': subs.c:124: warning: 'mode_t' is promoted to 'int' when passed through '...' subs.c:124: warning: (so you should pass 'int' not 'mode_t' to 'va_arg') subs.c:124: note: if this code is reached, the program will abort gcc generates a ud2a instruction in the resulting subs.o object file and the program indeed aborts when it hits this instruction. This is a temporary patch that resolves this problem: --- subs.c.orig 2010-12-09 14:41:13.000000000 +0000 +++ subs.c 2010-12-09 14:41:46.000000000 +0000 @@ -121,7 +121,7 @@ if (flags & O_CREAT) { va_start(ap, flags); - mode = va_arg(ap, mode_t); + mode = va_arg(ap, int); va_end(ap); } @@ -179,7 +179,7 @@ if (flags & O_CREAT) { va_start(ap, flags); - mode = va_arg(ap, mode_t); + mode = va_arg(ap, int); va_end(ap); } I have reported the above to the fcron developer in addition. Regards Chris