From owner-freebsd-amd64@FreeBSD.ORG Wed May 12 23:24:11 2004 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6ED0E16A4CE for ; Wed, 12 May 2004 23:24:11 -0700 (PDT) Received: from smtp01.syd.iprimus.net.au (smtp01.syd.iprimus.net.au [210.50.30.52]) by mx1.FreeBSD.org (Postfix) with ESMTP id 83C3E43D1D for ; Wed, 12 May 2004 23:24:10 -0700 (PDT) (envelope-from tim@robbins.dropbear.id.au) Received: from robbins.dropbear.id.au (210.50.200.17) by smtp01.syd.iprimus.net.au (7.0.024) id 409956B40026789D; Thu, 13 May 2004 16:24:09 +1000 Received: by robbins.dropbear.id.au (Postfix, from userid 1000) id A86D041E5; Thu, 13 May 2004 16:23:36 +1000 (EST) Date: Thu, 13 May 2004 16:23:36 +1000 From: Tim Robbins To: Joerg Micheel Message-ID: <20040513062336.GA44803@cat.robbins.dropbear.id.au> References: <20040513155735.A68241@nlanr.net> <20040513053838.GA44618@cat.robbins.dropbear.id.au> <20040513180620.A68952@nlanr.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040513180620.A68952@nlanr.net> User-Agent: Mutt/1.4.1i cc: freebsd-amd64@freebsd.org Subject: Re: ftpd in debug mode crashes in vsyslog X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 May 2004 06:24:11 -0000 On Thu, May 13, 2004 at 06:06:20PM +1200, Joerg Micheel wrote: > Hi Tim, > > On Thu, May 13, 2004 at 03:38:38PM +1000, Tim Robbins wrote: > > Thanks for the report - I've committed a fix to -current. > > Great! So .. without looking at -current, what was the issue ? It was passing a va_list to vprintf() then to vsyslog() without reinitializing it between calls, which results in "unspecified behiavour" according to the C standard; on i386 the behaviour happened to be right, but on amd64 it caused garbage to be passed to vsyslog(). Tim