|
From: Roberto D. <rd...@ti...> - 2006-03-01 07:52:08
|
Yes.. The problem was there.. I have fixed it.. sorry for the absurd error..=20 Thank you very much=20 Roberto. El mar, 28-02-2006 a las 12:21, Dirk Mueller escribi=F3: > On Tuesday, 28. February 2006 11:03, Roberto Diaz wrote: >=20 > > I have the following code: >=20 > can you please post a compileable example? >=20 > > int maxFd =3D ::sysconf (_SC_OPEN_MAX); > > rst =3D select (maxFd, &listeners, 0, 0, 0); > > /* ................... */ >=20 > I believe the problem is here. The first parameter should be the nu= mber of the=20 > most important set bit in the listeners bitfield, not some arbitrar= y large=20 > number you found somewhere else. Most likely maxFd for you is massi= vely=20 > bigger than the sizeof(listeners) (multiplied by 8). Therefore, you= cause the=20 > kernel to overrun a buffer, which it complains about.=20 >=20 >=20 > Dirk >=20 >=20 > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting = language > that extends applications into web and mobile media. Attend the liv= e webcast > and join the prime developer group breaking into this new coding te= rritory! > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D110944&bid=3D241720= &dat=3D121642 > _______________________________________________ > Valgrind-users mailing list > Val...@li... > https://lists.sourceforge.net/lists/listinfo/valgrind-users |