Re: buffer overflow warning in /bin/sh

2016-02-28 Thread Dimitry Andric
On 28 Feb 2016, at 23:16, Jilles Tjoelker wrote: > > On Fri, Feb 26, 2016 at 06:21:20PM +0100, Dimitry Andric wrote: ... >> This frame has 3 object(s): >>[16, 20) 'bqlist' >>[32, 128) 'state_static' <== Memory access at offset 32 is inside this >> variable >>[160,

Re: buffer overflow warning in /bin/sh

2016-02-28 Thread Jilles Tjoelker
On Fri, Feb 26, 2016 at 06:21:20PM +0100, Dimitry Andric wrote: > On 26 Feb 2016, at 04:21, Howard Su wrote: > > I got the error when compiling GENERIC kernel with address sanitizer > > /bin/sh: > > --- vers.c --- > > MAKE=make sh

Re: buffer overflow warning in /bin/sh

2016-02-26 Thread Dimitry Andric
On 26 Feb 2016, at 04:21, Howard Su wrote: > > I got the error when compiling GENERIC kernel with address sanitizer > /bin/sh: > --- vers.c --- > MAKE=make sh /usr/home/howardsu/freebsd/sys/conf/newvers.sh >

Re: buffer overflow warning in /bin/sh

2016-02-25 Thread Conrad Meyer
I have /etc/src.conf: WITH_DEBUG_FILES=1 WITH_CTF=1 /etc/make.conf: CFLAGS=-fno-omit-frame-pointer WITH_CTF=1 WITH_DEBUG=yes Not sure which of those is relevant (or even correct), but I seem to get debuginfo in /usr/lib/debug/.debug. Best, Conrad On Thu, Feb 25, 2016 at 7:21 PM, Howard Su

buffer overflow warning in /bin/sh

2016-02-25 Thread Howard Su
I got the error when compiling GENERIC kernel with address sanitizer /bin/sh: --- vers.c --- MAKE=make sh /usr/home/howardsu/freebsd/sys/conf/newvers.sh GENERIC= ==4132==ERROR: AddressSanitizer: stack-buffer-overflow on address