Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Pooh <pooh@apoc.sacredsoulrecords.com>
To: axp-list@redhat.com
Subject: Re: RH 5.1, alpha and Pine
Date: Fri, 6 Nov 1998 01:01:33 -0600 (CST)	[thread overview]
Message-ID: <199811060701.BAA23556@apoc.sacredsoulrecords.com> (raw)
In-Reply-To: <Pine.3.89.9811052353.A9934-0100000@teal.csn.net> from "Bruce Ediger" at Nov 5, 98 11:44:07 pm

> 
> 
> 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  
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



  reply	other threads:[~1998-11-06  7:23 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-11-04  3:16 Applixware! Paul Tomblin
1998-11-04  3:25 ` Applixware! Rich Payne
1998-11-04 12:40   ` Applixware! Paul Tomblin
1998-11-04 14:08     ` PCMCIA & AS200 Kazin
1998-11-04 21:30       ` Scott Lewis
1998-11-05  2:05         ` Arthur Shaffer
1998-11-04 15:31   ` Applixware! Eric Ding
1998-11-06  6:44     ` RH 5.1, alpha and Pine Bruce Ediger
1998-11-06  7:01       ` Pooh [this message]
1998-11-06  7:13         ` Pooh
1998-11-06 12:52         ` Peter Rye
1998-11-06  7:05       ` wade
1998-11-06  7:09       ` borho
1998-11-06  7:05         ` Pooh
1998-11-06  7:26         ` Wes Bauske
1998-11-06  8:33           ` Michal Jaegermann
1998-11-06 10:21             ` Bob McElrath
1998-11-06  7:24       ` Bob McElrath
1998-11-06  7:31         ` Pooh
1998-11-05  0:51   ` Applixware! borho
1998-11-05  1:44     ` Applixware! Kevin Brown
1998-11-04  4:44 ` Applixware! Peter Petrakis
1998-11-04 15:35 ` Applixware! Ken Hansen
1998-11-04 15:53   ` Applixware! Paul Tomblin
1998-11-04 16:22     ` Applixware! Ken Hansen
1998-11-04 16:24       ` Applixware! mgraffam
1998-11-04 16:40         ` Applixware! Paul Tomblin
1998-11-04 17:26         ` Applixware! Charles E. Taylor
1998-11-04 20:28         ` Applixware! Ken Hansen
1998-11-04 21:46           ` Applixware! Kevin.Brown
1998-11-04 16:37       ` Applixware! Paul Tomblin
     [not found] <Pine.LNX.3.96.981106002135.22352A-100000@gutter.ce.washington.edu>
1998-11-06  8:21 ` RH 5.1, alpha and Pine Wes Nakamura
1998-11-06 14:28   ` Yung Shing Gene
  -- strict thread matches above, loose matches on Subject: below --
1998-11-06 10:26 Roman Martonak
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox