Date: Thu, 13 May 2004 16:23:36 +1000 From: Tim Robbins <tjr@freebsd.org> To: Joerg Micheel <joerg@nlanr.net> Cc: freebsd-amd64@freebsd.org Subject: Re: ftpd in debug mode crashes in vsyslog Message-ID: <20040513062336.GA44803@cat.robbins.dropbear.id.au> In-Reply-To: <20040513180620.A68952@nlanr.net> References: <20040513155735.A68241@nlanr.net> <20040513053838.GA44618@cat.robbins.dropbear.id.au> <20040513180620.A68952@nlanr.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040513062336.GA44803>