From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,4dbef82e5689cd70 X-Google-Attributes: gid111c93,public From: David.Mosberger@DONTSPAMacm.org Subject: Re: Wich Red Hat version should I Buy ??? Date: 1997/12/13 Message-ID: #1/1 X-Deja-AN: 297914601 References: <34911A14.7C95@noord.bart.nl> Organization: Home Newsgroups: comp.os.linux.alpha adisaacs@trurl.resnet.mtu.edu (Andy Isaacson) writes: > I'd strongly recommend installing 5.0. The libc is much less buggy, the > sh-utils actually log to utmp correctly, XEmacs might even link correctly, > new versions of the compiler (like egcs) will install without the user > going through contortions, and in general it's a better system. While I generally agree with this sentiment, there is one relatively serious glibc 2.x bug that bites rh5.0: the glibc version shipped with rh5.0 has an FDMASK macro that is broken. The effect is that if you try to use fd_sets with file descriptors >31 then things may go awfully wrong. E.g., XF86_TGA terminates with extreme prejudice when trying to open more than ~30 windows. More important, emacs seems to get stuck randomly due to this bug. The following two changes should be made to fix the problem: > : > > old: #define __FDMASK(d) (1 << ((d) % __NFDBITS)) > new: #define __FDMASK(d) ((__fd_mask) 1 << ((d) % __NFDBITS)) > > : > > old: #define __FD_ISSET(d, set) ((set)->fds_bits[__FDELT(d)] & __FDMASK(d)) > new: #define __FD_ISSET(d, set) (((set)->fds_bits[__FDELT(d)] & __FDMASK(d)) != 0) Of course, you'll need to rebuild packages that use select in order to get the correct behavior. I'd think rebuilding XFree86, [X]emacs, and the networking daemons (certainly inetd) should make the system quite stable. On a positive note, rh5.0 seems to be the first Linux/Alpha release where profiling (with -pg & gprof) works out of the box. Good work! --david