DragonFly BSD
DragonFly bugs List (threaded) for 2005-07
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: Minor headaches using pkgsrc daemons (samba)


From: Joerg Sonnenberger <joerg@xxxxxxxxxxxxxxxxx>
Date: Tue, 12 Jul 2005 20:20:08 +0200
Mail-followup-to: bugs@crater.dragonflybsd.org

On Tue, Jul 12, 2005 at 07:49:10PM +0200, Simon 'corecode' Schubert wrote:
> Lately YONETANI Tomokazu <qhwt+dfly@xxxxxxxxxx> said:
> > This is very weird; if I add `return False' BEFORE FD_ZERO() in
> > open_sockets_smbd(), it terminates with SIGTERM, but if I put the
> > `return False' AFTER FD_ZERO() and stack smash protector detects
> > the stack overflow and it catches SIGABRT.
> 
> okay, it seems that gcc with -fstack-protector (default) and -O2 places
> the variables wrongly on the stack. I can give more insight if desired.
> Basically listen_set is at -72(%ebp), whereas the canary is already at
> -40(%ebp). sizeoF(fd_set) == 128, so figure :)
> 
> this regression should be pushed upstream. joerg, do you handle this?

I'm looking at the source of this.

Joerg



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]