Zsh Mailing List Archive
Messages sorted by:
Re: Terminal problem with linux-2.0.34
- X-seq: zsh-users 2164
- From: Ville Herva <vherva@xxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxxxxxx
- Subject: Re: Terminal problem with linux-2.0.34
- Date: Wed, 17 Feb 1999 17:37:37 +0200
- Cc: sak@xxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxxxxxx; run by ezmlm
First off, I just noticed that although the problem appears with 3.1.5 and
zsh-3.1.5-pws-8, it is a bit different (better) compared to 3.0.5:
everything I type gets echoed just fine, but pressing backspace works only
once, after that, the edits won't be echoed. Also moving on the command
line with arrow keys loses the cursor. To execute the command line, two
returns are needed.
> Peter Stephenson <pws@xxxxxxxxxxxxxxxxx> wrote:
> "Larry P . Schrof" wrote:
> > - Any time the user runs a program that makes a stat() call, the
> > shell hangs forever, until the user breaks out of it. Even after sending
> > the process, say ls -l, a signal, it takes awhile to get the shell prompt
> > back.
>Something this weird suggests zsh is tickling something in Linux, and
>suggests the only way to find out what is just painfully to comment bits
>code out until it goes away; it's probably not just zle. (Does the
>problem go away if you run zsh without zle?)
Today, I came across a very interesting problem with tha same linux
machine: the clock() function would always return -1! A little
int main(int argc, char* argv)
int timer = clock();
for (i = 1000000; i; i--);
printf("timer: %i\nclock(): %i\nCLK_TCK: %i\n"
"CLOCKS_PER_SEC: %i\n%3.2f 3.2f secs.\n",
timer, clock(), CLK_TCK, CLOCKS_PER_SEC,
(float)(clock() - timer) / (float)CLK_TCK / 10000.0,
(float)(clock() - timer) / (float)CLOCKS_PER_SEC);
vherva@turing:/home/vherva/zsh-3.1.5-pws-8/Src>gcc ../../c.c -o ../../c
0.00 3.2f secs.
Now, making little heuristic guess I figured that
vherva@turing:/home/vherva/zsh-3.1.5-pws-8/Src>perl -e '$CLK_TCK = 100;
print 2**31 / $CLK_TCK / 60 / 60 / 24, " days\n"'
which is quite accurately the uptime, zsh became not to work.
This, of course won't explain why zsh messes the command line, while other
shells do not. Is clock() or any similar function used in zle? (There is a
possibility that other timing functions fail, also - it seems that a
counter in the kernel has wrapped around, and libc goes nuts, or something
Also, this might explain the other problems Larry Schrof had.
I'll be forwarding this problem to linux-kernel list.
>Also, it would be worth making sure it isn't in the latest development
>since the stuff that opens the terminal has changed a bit.
Zsh-3.1.5-pws-8 seems to behave exactly like zsh-3.1.5.
-- v --
Messages sorted by: