From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 27300 invoked from network); 6 Nov 1998 07:23:10 -0000 Received: from mail.redhat.com (199.183.24.239) by mail2.redhat.com with SMTP; 6 Nov 1998 07:23:10 -0000 Received: from apoc.sacredsoulrecords.com (root@apoc.cysource.com [207.238.244.206]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id CAA17525 for ; Fri, 6 Nov 1998 02:09:25 -0500 Received: (from root@localhost) by apoc.sacredsoulrecords.com (8.8.7/8.8.7) id BAA23556 for axp-list@redhat.com; Fri, 6 Nov 1998 01:01:33 -0600 From: Pooh Message-Id: <199811060701.BAA23556@apoc.sacredsoulrecords.com> Subject: Re: RH 5.1, alpha and Pine To: axp-list@redhat.com Date: Fri, 6 Nov 1998 01:01:33 -0600 (CST) In-Reply-To: from "Bruce Ediger" at Nov 5, 98 11:44:07 pm X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit > > > What is it with Pine that makes it *so* hard to get right under Linux > on an alpha? it ain't just pine!! > Pine 4.05 compiles with a ton of "int cast to pointer of different size" > messages that (I think) shouldn't matter. But it's got an even weirder > problem: > > It only picks up characters 4 previous to what you've just typed. > > Weird, weird, weird: If I start pine, and I want to immediately quit > I have to type "q", followed by 4 other keystrokes. The "q" gets picked > up by pine, which exits, and the shell gets the next 3 characters. > > What the hell is going on here? Starting Pine 4.05 changed all my saved > mail files around so I can't revert to v3.96. I'm having the same problem (and it's probably 4 keystrokes total for you one for the 'q' you type and then 3 other keystrokes) with some BBS software that compiles with 0 warnings, links fine...it should work, right?... Nope...I have the SAME problem when people try to login to the BBS. A programmer friend of mine and I have narrowed it down to a few possibilities. 1) a bug in select(); 2) a bug in read(); 3) a bug in the alpha kernel source tree (select(); resides in the kernel source, libc just has a stub that references the kernel source) 4) a bug in glibc2 (either a bug that was in libc5 and corrected in libc6 or just a bug in libc6) 5) a bug in egcs A programmer at work and I are looking at select(); and read(); as our prime suspects. Our reasoning for targeting these two functions comes from the strace I did on the bbs executable running on both my intel x86 box (running libc5 and gcc 2.7.2.3) and my alpha (running egcs 1.1b and libc6) On the intel box, when someone types in their bbs username, this series of select(); and read();'s (and write();'s, one for each char typed) works correctly... for each character typed, the read's return 1 (and the char typed thusly: alarm(60) = 0 select(1, [0], NULL, NULL, {0, 0}) = 0 (Timeout) write(1, "\r\nWelcome to The Apocalypse BB"..., 523) = 523 select(1, [0], NULL, NULL, NULL) = 1 (in [0]) read(0, "p", 256) = 1 select(1, [0], NULL, NULL, {0, 0}) = 0 (Timeout) write(1, "p", 1) = 1 select(1, [0], NULL, NULL, NULL) = 1 (in [0]) read(0, "o", 256) = 1 select(1, [0], NULL, NULL, {0, 0}) = 0 (Timeout) write(1, "o", 1) = 1 select(1, [0], NULL, NULL, NULL) = 1 (in [0]) read(0, "o", 256) = 1 select(1, [0], NULL, NULL, {0, 0}) = 0 (Timeout) write(1, "o", 1) = 1 select(1, [0], NULL, NULL, NULL) = 1 (in [0]) read(0, "h", 256) = 1 select(1, [0], NULL, NULL, {0, 0}) = 0 (Timeout) write(1, "h", 1) = 1 select(1, [0], NULL, NULL, NULL) = 1 (in [0]) read(0, "\r", 256) = 1 write(1, "\r\n", 2) = 2 select(1, [0], NULL, NULL, {0, 0}) = 0 (Timeout) write(1, "Password: ", 10) = 10 Now obviously, the userid has been entered and the user gets Ok...same scenario on the alpha...except it takes 4 keystrokes for input to be processed....like so: setitimer(ITIMER_REAL, {it_interval={0, 0}, it_value={60, 0}}, {it_interval={0, 0}, it_value={0, 0}}) = 0 select(1, [0], NULL, NULL, {0, 0}) = 0 (Timeout) write(1, "\r\nWelcome to The Apocalypse BB"..., 523) = 523 select(1, [0], NULL, NULL, NULL) = 1 (in [0]) read(0, "pooh", 256) = 4 select(1, [0], NULL, NULL, {0, 0}) = 0 (Timeout) write(1, "pooh", 4) = 4 select(1, [0], NULL, NULL, NULL) = ? ERESTARTNOHAND (To be restarted) Ok...now...for SOME reason, read was waiting for 4 keystrokes (and returned 4) ... but WHY???? If this rings any bells with anyone out there...PLEASE let us know (also, if you have pppd working (with pap authentication) email me...I'm having trouble with that too!) -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Jeff Schoby is: | "May U live 2 see the dawn." Programmer/Analyst | -Prince City of Columbia, MO +------+-------------------------------- ----------------------------------+ | Owner/President of: email: | | Sacred Soul Records | pooh@sacredsoulrecords.com | | |____________________________| | ssr@sacredsoulrecords.com Home of the Apocalypse BBS |http://www.sacredsoulrecords.com finger bbs@bbs.sacredsoulrecords.com +-------------------------------- http://www.sacredsoulrecords.com/~bbs/index.html ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~