This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: weird egcs bug
- To: gbacon at cs dot uah dot edu
- Subject: Re: weird egcs bug
- From: Alexandre Oliva <oliva at lsd dot ic dot unicamp dot br>
- Date: 16 Mar 2000 18:46:13 -0300
- Cc: egcs-bugs at egcs dot cygnus dot com
- References: <200003162137.PAA14956@ruby.itsc.uah.edu>
On Mar 16, 2000, Greg Bacon <gbacon@itsc.uah.edu> wrote:
> In message <oru2i6fxij.fsf@garnize.lsd.ic.unicamp.br>,
> Alexandre Oliva writes:
> : Isn't it wrong that maxfd is both incremented and added 1?
> Well, yes, but that shouldn't cause select() to hang, should it?
It might if one of fd[12] happens to be FD_SETSIZE-1. It would also
explain the stack corruption. And, with the call to printf, you may
get a different stack layout.
--
Alexandre Oliva Enjoy Guaranį, see http://www.ic.unicamp.br/~oliva/
Cygnus Solutions, a Red Hat company aoliva@{redhat, cygnus}.com
Free Software Developer and Evangelist CS PhD student at IC-Unicamp
oliva@{lsd.ic.unicamp.br, gnu.org} Write to mailing lists, not to me